home / mcp / mcp testing sensei mcp server
Provides an MCP stdio server that lints code, exposes testing principles, and guides tool behavior.
Configuration
View docs{
"mcpServers": {
"kourtni-mcp-testing-sensei": {
"command": "./result/bin/mcp-testing-sensei",
"args": []
}
}
}MCP Testing Sensei provides an MCP stdio server that guides agentic coding tools to follow language-agnostic unit testing principles. It runs in stdio mode and communicates via JSON-RPC over standard input and output, enabling integration with MCP clients to enforce and demonstrate clear, declarative testing practices.
You run the MCP stdio server and connect an MCP client to it. The server listens for JSON-RPC messages on standard input and writes responses to standard output, enabling tools to request guidance, lint code, and retrieve testing principles. Use this to ensure your tools generate pre-implementation tests that document behavior, stay deterministic, and avoid branching logic.
Start by choosing how you want to run the server. You can run a prebuilt standalone executable or start the server from your development environment. Once the server is running, configure your MCP client to point at the server and begin issuing requests to lint code snippets and fetch the core testing principles.
Prerequisites: you should have a compatible runtime installed on your system. You can run the server as a standalone executable, install it via Python, or run it in a container. Follow the option that matches your workflow.
Option 1 – Standalone Executable (no Python required) Download the pre-built executable for your platform from the latest release.
Linux: mcp-testing-sensei-linux
macOS: mcp-testing-sensei-macos
Windows: mcp-testing-sensei-windows.exe
Make the file executable (Linux/macOS):
chmod +x mcp-testing-sensei-linux
./mcp-testing-sensei-linuxIf you have Python installed, you can install the MCP server globally using pip.
pip install mcp-testing-senseiIf you prefer npm, you can install the MCP server globally via npm. Note that Python must be installed on your system.
npm install -g @kourtni/mcp-testing-senseiRun the MCP server inside a Docker container.
docker pull kourtni/mcp-testing-senseiFor development or building from source, use a reproducible Nix environment.
Prerequisites: Nix
nix developIf you are using Nix for development, you can build the standalone executable.
nix build
This creates a result symlink in your project root pointing to the built executable.Option A – Run the standalone executable after building.
./result/bin/mcp-testing-senseiIf you are in a development environment, you can run the server directly with Python.
python mcp_server.pyAnalyzes provided code snippets for violations of the defined unit testing standards.
Provides the core unit testing principles to guide LLMs in generating better tests.
Exposes testing principles as an MCP resource.