Motivation
The Anthropic Code Execution with MCP post shows agents importing each MCP tool as a typed TS function (./servers/<server>/<tool>.ts). Providing an official mirror for MCPToolkit makes onboarding trivial for Code-Mode agent hosts (Claude Code, Cloudflare Workers, Foundry, Copilot Studio, etc.).
Proposal
New folder client/code-mode-ts/:
client/code-mode-ts/
package.json
tsconfig.json
src/
client.ts // callMCPTool() wrapper (fetch + bearer auth)
servers/cosmos-db/
index.ts
listDatabases.ts
listCollections.ts
getApproximateSchema.ts
getRecentDocuments.ts
findDocumentById.ts
textSearch.ts
vectorSearch.ts
hybridSearch.ts
README.md // usage + link to CODE-MODE.md
Each file exports one typed async function that calls the corresponding MCP tool.
Acceptance criteria
Related
Mirrors the existing Python client under client/. Part of the "Code Mode" support umbrella.
Motivation
The Anthropic Code Execution with MCP post shows agents importing each MCP tool as a typed TS function (
./servers/<server>/<tool>.ts). Providing an official mirror for MCPToolkit makes onboarding trivial for Code-Mode agent hosts (Claude Code, Cloudflare Workers, Foundry, Copilot Studio, etc.).Proposal
New folder
client/code-mode-ts/:Each file exports one typed async function that calls the corresponding MCP tool.
Acceptance criteria
tsc --strictlist_databasesagainst the deployed sampleRelated
Mirrors the existing Python client under
client/. Part of the "Code Mode" support umbrella.