This directory contains a minimal MCP server and test CLI for local smoke testing. It is intentionally small, uses only the Python standard library, and supports two transports:
stdio: useful for local MCP process experimentshttp: useful for validating the current AgentSight-friendly network path
This is a test fixture, not the production AgentSight MCP implementation.
test_mcp_server.py: minimal MCP server withinitialize,ping,tools/list, andtools/calltest_mcp_cli.py: test client that exercises the server end-to-endfixture_note.txt: local file read by theread_fixturetest tool
echo: returns the provided textsum_numbers: returns the numeric sum of a listread_fixture: readsfixture_note.txt
Run the CLI. It will spawn the server automatically:
python3 docs/mcp-test/test_mcp_cli.py --transport stdioExpected output includes:
initializetools/listtools/call echotools/call sum_numberstools/call read_fixture
Start the server in one terminal:
python3 docs/mcp-test/test_mcp_server.py --transport http --host 127.0.0.1 --port 8765Then run the CLI in another terminal:
python3 docs/mcp-test/test_mcp_cli.py --transport http --url http://127.0.0.1:8765/messagesThe HTTP server also exposes a simple health endpoint:
curl http://127.0.0.1:8765/health- HTTP mode is the useful baseline for current MCP-over-network experiments.
- Stdio mode is the useful baseline for local MCP testing where the client and server communicate via pipes instead of HTTP/TLS.
- The fixture content is intentionally predictable so it is easier to recognize in
captured logs, for example:
echo:stdio-helloecho:http-hellosum:10.5fixture:AgentSight MCP fixture payload for stdio and HTTP smoke tests.