{"version":3,"file":"mcp-DpPZkP0-.mjs","names":[],"sources":["../src/commands/mcp.ts"],"sourcesContent":["import { defineCommand } from \"citty\";\n\nexport default defineCommand({\n  meta: {\n    name: \"mcp\",\n    description: \"Run the @agntn/web MCP server over stdio\",\n  },\n  /**\n   * The server, the SDK and consola load here, because citty resolves every\n   * subcommand to print `web --help`.\n   *\n   * stdout carries the JSON-RPC frames. consola's default reporter sends\n   * anything at log level or below to that same descriptor, and `DEBUG` in the\n   * environment raises the level on import, so one stray line would corrupt\n   * the stream. Warnings and errors still reach stderr.\n   */\n  async run() {\n    const [{ createMcpServer }, { StdioServerTransport }, { consola, LogLevels }] =\n      await Promise.all([\n        import(\"../mcp.ts\"),\n        import(\"@modelcontextprotocol/sdk/server/stdio.js\"),\n        import(\"consola\"),\n      ]);\n    consola.level = LogLevels.warn;\n\n    await createMcpServer().connect(new StdioServerTransport());\n  },\n});\n"],"mappings":";;AAEA,IAAA,cAAe,cAAc;CAC3B,MAAM;EACJ,MAAM;EACN,aAAa;CACf;;;;;;;;;;CAUA,MAAM,MAAM;EACV,MAAM,CAAC,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,SAAS,eAC/D,MAAM,QAAQ,IAAI;GAChB,OAAO;GACP,OAAO;GACP,OAAO;EACT,CAAC;EACH,QAAQ,QAAQ,UAAU;EAE1B,MAAM,gBAAgB,CAAC,CAAC,QAAQ,IAAI,qBAAqB,CAAC;CAC5D;AACF,CAAC"}