mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
88a2d82e1a
@copilotkit/runtime@1.59.5 declares @ai-sdk/mcp ^1.0.21; fresh installs resolve 1.0.47, whose MCP client assigns transport.protocolVersion after the server's initialize response — a getter-only property on @modelcontextprotocol/sdk@1.29.0's StreamableHTTPClientTransport. Every MCP-enabled run then fails with: TypeError: Cannot set property protocolVersion of #<StreamableHTTPClientTransport> which has only a getter The workspace-tested resolution was 1.0.21 (no such assignment — verified by source diff of the published tarballs). Pin it via pnpm.overrides until @copilotkit/runtime supports the newer client line. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
42 lines
1.2 KiB
JSON
42 lines
1.2 KiB
JSON
{
|
|
"name": "slack-example",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "Runnable demo for @copilotkit/bot-slack \u2014 an on-call triage Slack bot backed by Linear + Notion MCP (query/file issues, find/write Notion pages), with a confirm-before-write HITL gate and a live-Slack e2e harness.",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch app/index.ts",
|
|
"start": "tsx app/index.ts",
|
|
"runtime": "tsx runtime.ts",
|
|
"notion-mcp": "tsx scripts/start-notion-mcp.ts",
|
|
"check-types": "tsc --noEmit -p tsconfig.json",
|
|
"test": "vitest run",
|
|
"e2e": "tsx e2e/run.ts",
|
|
"e2e:restart": "tsx e2e/restart-recovery.ts"
|
|
},
|
|
"dependencies": {
|
|
"@copilotkit/bot": "~0.0.1",
|
|
"@copilotkit/bot-slack": "~0.0.1",
|
|
"@copilotkit/bot-ui": "~0.0.1",
|
|
"@copilotkit/runtime": "^1.59.5",
|
|
"@slack/bolt": "^4.2.0",
|
|
"@slack/types": "^2.21.1",
|
|
"playwright": "^1.49.0",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"devDependencies": {
|
|
"@notionhq/notion-mcp-server": "^2.2.1",
|
|
"@types/node": "^22.10.0",
|
|
"dotenv": "^16.4.5",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.6.3",
|
|
"vitest": "^4.1.3"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"@ai-sdk/mcp": "1.0.21"
|
|
}
|
|
}
|
|
}
|