From a285a5a3389d9979f6f7b36a46808c7d70c40dd4 Mon Sep 17 00:00:00 2001 From: leemour Date: Sat, 28 Nov 2026 14:10:59 +0100 Subject: [PATCH] feat(manifest): declare the MCP port for Desktop WireCat Desktop now reads what a tool needs from the tool's own manifest (owner NEED-2918 B) and keeps its compiled catalog only as a fallback. - cli-base 1.0.0 -> 1.2.0, which adds ManifestIdentity.mcpPort (cli-base #739). - mcpPort 8756, from Desktop's catalog entry for wordpress. The sign-in methods were already declared and match the catalog. - contracts/wirecat.json regenerated: only desktop.mcpServer.port is new. Co-Authored-By: Claude Opus 5.5 --- changes/feat-mcp-port.md | 5 +++++ contracts/wirecat.json | 1 + package.json | 2 +- pnpm-lock.yaml | 16 ++++++++-------- src/identity.ts | 1 + 5 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 changes/feat-mcp-port.md diff --git a/changes/feat-mcp-port.md b/changes/feat-mcp-port.md new file mode 100644 index 0000000..895b96d --- /dev/null +++ b/changes/feat-mcp-port.md @@ -0,0 +1,5 @@ +### Added + +- **WireCat Desktop reads the MCP port from wordpress itself.** The manifest (`wordpress --wcat-describe`) now names + the fixed MCP port 8756. Desktop reads it from the tool and keeps its own list only as a fallback. Built on cli-base + 1.2.0. diff --git a/contracts/wirecat.json b/contracts/wirecat.json index 3b419f8..2a3e130 100644 --- a/contracts/wirecat.json +++ b/contracts/wirecat.json @@ -2424,6 +2424,7 @@ ] }, "mcpServer": { + "port": 8756, "start": [ "mcp", "server", diff --git a/package.json b/package.json index 815fa76..a3f20c1 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "source:check": "node --experimental-strip-types scripts/source-check.ts" }, "dependencies": { - "@wirecat/cli-base": "1.0.0", + "@wirecat/cli-base": "1.2.0", "@wirecat/cli-core": "2.0.0", "commander": "15.0.0", "valibot": "1.5.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5ff4081..7f87d1c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 1.0.0 - version: 1.0.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + specifier: 1.2.0 + version: 1.2.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': specifier: 2.0.0 - version: 2.0.0(@wirecat/cli-base@1.0.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) + version: 2.0.0(@wirecat/cli-base@1.2.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) commander: specifier: 15.0.0 version: 15.0.0 @@ -1185,8 +1185,8 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@1.0.0': - resolution: {integrity: sha512-PJ61d6z0CsWOmoWgf7uvlEo3EstpL2DplXiORPIqgmh0bn/ZGMOhRpDqN43Kh7WickaFSmeX74YQigHXkRO6rA==} + '@wirecat/cli-base@1.2.0': + resolution: {integrity: sha512-mqag3tBzoimOn3ntRZ5v1KhICrClAPQa4Pi9VHDyx5o+2S7Zkhb7KWn43TdZj5TAHStMYy5ezt8CBW0iqR+4Fw==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: @@ -3340,7 +3340,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@1.0.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.2.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5)': dependencies: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) cli-table3: 0.6.5 @@ -3361,7 +3361,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@2.0.0(@wirecat/cli-base@1.0.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': + '@wirecat/cli-core@2.0.0(@wirecat/cli-base@1.2.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': dependencies: '@anthropic-ai/sdk': 1.3.0(zod@4.6.7) '@bomb.sh/tab': 0.0.22(commander@15.0.0) @@ -3371,7 +3371,7 @@ snapshots: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) '@wasm-audio-decoders/flac': 0.2.11 '@wasm-audio-decoders/ogg-vorbis': 0.1.20 - '@wirecat/cli-base': 1.0.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.2.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core-onnx': 1.2.0 '@wirecat/cli-core-sqlite': 1.1.0 '@xmldom/xmldom': 0.9.12 diff --git a/src/identity.ts b/src/identity.ts index 7b53343..86c8c1f 100644 --- a/src/identity.ts +++ b/src/identity.ts @@ -25,6 +25,7 @@ export const DESKTOP = { hosts: [], tagline: "Your WordPress posts and pages for your agent", syncs: "your posts, pages and tags", + mcpPort: 8756, signIn: { gives: "Lets your agent read your WordPress posts and pages, write drafts, and publish when you allow it.", asks: