diff --git a/.changeset/fix-incur-mcp-server.md b/.changeset/fix-incur-mcp-server.md new file mode 100644 index 0000000..66d7308 --- /dev/null +++ b/.changeset/fix-incur-mcp-server.md @@ -0,0 +1,5 @@ +--- +'curl.md': patch +--- + +Bumped `incur` to `0.4.11` to fix a startup crash (`SyntaxError: ... does not provide an export named 'StdioServerTransport'`) caused by `incur@0.4.5`'s static root import of `StdioServerTransport` from `@modelcontextprotocol/server`, which moved that export to the `./stdio` subpath in `2.0.0-alpha.4` and later. diff --git a/cli/package.json b/cli/package.json index 474226d..6a0b810 100644 --- a/cli/package.json +++ b/cli/package.json @@ -82,7 +82,7 @@ }, "dependencies": { "hono": "catalog:", - "incur": "0.4.5", + "incur": "0.4.11", "picocolors": "1.1.1" }, "devDependencies": { diff --git a/cli/src/cli.test.ts b/cli/src/cli.test.ts index c0d58ec..6215276 100644 --- a/cli/src/cli.test.ts +++ b/cli/src/cli.test.ts @@ -87,7 +87,7 @@ test('help', async () => { Integrations: completions Generate shell completion script - mcp add Register as MCP server + mcp Register as MCP server (add, doctor) skills Sync skill files to agents (add, list) Global Options: diff --git a/docs/guide/cli.mdx b/docs/guide/cli.mdx index 265cb8d..a4e289d 100644 --- a/docs/guide/cli.mdx +++ b/docs/guide/cli.mdx @@ -648,8 +648,18 @@ $ curl.md completions | -------- | -------------------------- | --------------------------------- | | `shell` | `bash\|fish\|nushell\|zsh` | Shell to generate completions for | + +### `mcp` + +Register as MCP server (add, doctor) + +| Command | Description | +| ----------------------- | -------------------------------------------- | +| [`add`](#mcp-add) | Register as MCP server | +| [`doctor`](#mcp-doctor) | Validate MCP server startup and tool listing | + -### `mcp add` +#### `add` Register as MCP server @@ -663,6 +673,15 @@ $ curl.md mcp add [options] | `--command, -c` | `string` | Override the command agents will run (e.g. "pnpm my-cli --mcp") | | `--no-global` | `boolean` | Install to project instead of globally | + +#### `doctor` + +Validate MCP server startup and tool listing + +```sh +$ curl.md mcp doctor +``` + ### `skills` diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 86c187f..a60517a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -283,8 +283,8 @@ importers: specifier: 'catalog:' version: 4.12.28 incur: - specifier: 0.4.5 - version: 0.4.5 + specifier: 0.4.11 + version: 0.4.11 picocolors: specifier: 1.1.1 version: 1.1.1 @@ -2552,6 +2552,10 @@ packages: cpu: [x64] os: [win32] + '@scalar/openapi-types@0.8.0': + resolution: {integrity: sha512-WmaxVSfvY5K/TwcG2B2TU1WOe1As1uc2s7myswtP6dBlcjU3hM08SApxv/jmyGaCE8t4gO5BBhmHY4pDUfmr2g==} + engines: {node: '>=22'} + '@sentry-internal/browser-utils@10.51.0': resolution: {integrity: sha512-lNKBS4P7RUvf1niojXQWe9bU3gnBUCbST4Dj0pSiyat1N96cXVyHkeE+uGxowD0RrVWhs+kGHiVX3FcmRWF6sA==} engines: {node: '>=18'} @@ -4504,8 +4508,8 @@ packages: resolution: {integrity: sha512-pYkiyXVL2Mf3pozdlDGV6NAObxQx13Ae8knZk1UJRJ6uRW/ZRmTGHlQYtrsSl7ubuE5F8CD1z+s1n4RHNuTtuA==} engines: {node: '>=18'} - incur@0.4.5: - resolution: {integrity: sha512-4WFlqm5e+IKNoX+lDIjjpebO8ResPx3vPUBChxNfnNo3oGp0ooo6piiiTspOMub2dq2mcG/AmlUq0ejuGfKobg==} + incur@0.4.11: + resolution: {integrity: sha512-3mAuuiaA1YaSFm5Ydz76kYZpJAkICPjN/Ep4AyldwTm4x9IsBvKhrOPH8FkzU7T/XSGu+qSN/Av4zc2n5bwYjQ==} engines: {node: '>=22'} hasBin: true @@ -8441,6 +8445,8 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.60.1': optional: true + '@scalar/openapi-types@0.8.0': {} + '@sentry-internal/browser-utils@10.51.0': dependencies: '@sentry/core': 10.51.0 @@ -10617,10 +10623,11 @@ snapshots: cjs-module-lexer: 2.2.0 module-details-from-path: 1.0.4 - incur@0.4.5: + incur@0.4.11: dependencies: '@cfworker/json-schema': 4.1.1 '@modelcontextprotocol/server': 2.0.0-alpha.2(@cfworker/json-schema@4.1.1) + '@scalar/openapi-types': 0.8.0 '@toon-format/toon': 2.1.0 tokenx: 1.3.0 yaml: 2.8.3