Skip to content

Commit b1a0e60

Browse files
chore(mcp)!: remove deprecated tool schemes
This removes all tool schemes except for "code mode" tools. Specifically, this removes "all tools" and "dynamic tools" schemes. Additionally, this removes support for resource filtering, tags, jq filtering, and compatibility controls in MCP servers, as they are no longer necessary when using code mode. # Migration To migrate, simply modify the command used to invoke the MCP server. Currently, the only supported tool scheme is code mode. Now, starting the server with just `node /path/to/mcp/server` or `npx package-name` will invoke code tools: changing your command to one of these is likely all you will need to do. Specifically, you must remove all flags including things like --resources, --tags, --client, --tools=dynamic, etc from your invocation command. The only supported flags are now `--port`, `--transport`, `--socket`, and `--tools=docs` (specifically for "docs"). These are also the only options available for http servers. migration-effort: small
1 parent 908fa87 commit b1a0e60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+51
-7701
lines changed

packages/mcp-server/README.md

Lines changed: 13 additions & 296 deletions
Large diffs are not rendered by default.

packages/mcp-server/src/code-tool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import { Metadata, ToolCallResult, asTextContentResult } from './tools/types';
3+
import { McpTool, Metadata, ToolCallResult, asTextContentResult } from './types';
44
import { Tool } from '@modelcontextprotocol/sdk/types.js';
55
import { readEnv } from './server';
66
import { WorkerSuccess } from './code-tool-types';
@@ -13,7 +13,7 @@ import { WorkerSuccess } from './code-tool-types';
1313
*
1414
* @param endpoints - The endpoints to include in the list.
1515
*/
16-
export async function codeTool() {
16+
export function codeTool(): McpTool {
1717
const metadata: Metadata = { resource: 'all', operation: 'write', tags: [] };
1818
const tool: Tool = {
1919
name: 'execute',

0 commit comments

Comments
 (0)