Ctrl K
ComunidadGuías…

smithery.yaml

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
# Smithery configuration — https://smithery.ai/docs/build/publish
# Local stdio server: Smithery launches `crw-mcp` from npm and clients run it
# locally. The hosted remote endpoint (https://fastcrw.com/mcp, streamable HTTP
# + OAuth) is listed separately via Smithery's URL method, no repo file needed.
startCommand:
  type: stdio
  configSchema:
    # JSON Schema for the config Smithery collects from the user at install time.
    type: object
    properties:
      crwApiKey:
        type: string
        title: fastCRW API key
        description: >-
          API key from https://fastcrw.com for the hosted API. Optional — the
          free tier works without one. Self-hosters can leave it blank and set
          CRW_API_URL in their own environment.
  commandFunction:
    # Produces the CLI command Smithery runs to start the MCP server on stdio.
    |-
    (config) => ({
      command: 'npx',
      args: ['-y', 'crw-mcp'],
      // A key alone is inert: crw-mcp picks cloud vs embedded mode on an API
      // URL resolving, and a truthy CRW_LOCAL pins embedded whatever else is
      // set (crw-mcp/src/main.rs), so a key with no URL silently runs local
      // mode. Pair them, exactly as the canonical
      // installer does (mcp/crw-mcp/bin/install.js).
      env: config.crwApiKey
        ? { CRW_API_KEY: config.crwApiKey, CRW_API_URL: 'https://api.fastcrw.com' }
        : {}
    })
  exampleConfig:
    crwApiKey: crw_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx