testing/README.md
This directory contains a minimal stdio MCP server for local testing.
a (number), b (number).@modelcontextprotocol/sdk and zodVia Node:
node testing/fake-stdio-mcp-server.mjs
Via script (adds a stable entrypoint path):
testing/run-fake-stdio-mcp-server.sh
Environment variables provided when launching (either from your shell or by the app) will be visible to the print_envs tool.
export FOO=bar
export SECRET_TOKEN=example
testing/run-fake-stdio-mcp-server.sh
When adding a stdio MCP server in the app, use:
testing/run-fake-stdio-mcp-server.sh (absolute path recommended)stdioFOO=bar)Once connected, you should see the two tools listed:
calculator_addprint_envsThis directory contains a minimal HTTP MCP server for local testing.
a (number), b (number).http moduleVia Node:
node testing/fake-http-mcp-server.mjs
Via script:
testing/run-fake-http-mcp-server.sh
3002, configurable via PORT environment variableexport PORT=3002
node testing/fake-http-mcp-server.mjs
When adding an HTTP MCP server in the app, use:
testing-http-mcp-server (or any name)httphttp://localhost:3002/mcp (or your configured port)Authorization: Bearer token) if needed for testing.Once connected, you should see the tools listed:
calculator_addprint_envs