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:
cliffhall 2026-07-03 17:39:07 -04:00
commit cfbdfdf2bd

View file

@ -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.
*/