Merge remote-tracking branch 'origin/v2/main' into 1579-wave-1
# Conflicts: # AGENTS.md # clients/cli/README.md # clients/web/src/App.test.tsx # clients/web/src/App.tsx # clients/web/src/test/core/auth/utils.test.ts # core/mcp/node/transport.ts # test-servers/src/composable-test-server.ts
This commit is contained in:
commit
cfbdfdf2bd
1 changed files with 15921 additions and 1202 deletions
|
|
@ -169,6 +169,22 @@ export function createEchoTool(): ToolDefinition {
|
|||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a "get-env" tool matching @modelcontextprotocol/server-everything.
|
||||
* Returns the server process environment as pretty-printed JSON text.
|
||||
*/
|
||||
export function createGetEnvTool(): ToolDefinition {
|
||||
return {
|
||||
name: "get-env",
|
||||
description:
|
||||
"Returns all environment variables, helpful for debugging MCP server configuration",
|
||||
inputSchema: {},
|
||||
handler: async () => {
|
||||
return toToolResult(JSON.stringify(process.env, null, 2));
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a tool that writes a message to stderr. Used to test stderr capture/piping.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue