Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-stdio-server-with-error-response": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A minimal Model Context Protocol (MCP) server implementation in Rust designed for testing error handling in MCP clients. This server intentionally returns error responses to help developers verify their client's error handling capabilities.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools
Manage Supabase projects — databases, auth, storage, and edge functions
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP Security Weekly
Get CVE alerts and security updates for Mcp Stdio Server With Error Response and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A minimal Model Context Protocol (MCP) server implementation in Rust designed for testing error handling in MCP clients. This server intentionally returns error responses to help developers verify their client's error handling capabilities.
This test server implements the MCP protocol over STDIO and provides two operational modes:
--init-ok flag): Successfully handles the initialize method, then returns errors for all other methods2024-11-05cargo build --release
The compiled binary will be available at target/release/mcp-stdio-server-with-error-response.
Error Mode (default):
cargo run
Success Mode (initialize succeeds):
cargo run -- --init-ok
A test script is included to demonstrate the server's behavior:
chmod +x test.sh
./test.sh
The test script sends:
initialize requestnotifications/initialized notificationtools/list requestWith --init-ok flag:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2024-11-05",
"capabilities": {
"tools": {}
},
"serverInfo": {
"name": "Error-Test-Server",
"version": "1.0"
}
}
}
Without --init-ok flag:
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32603,
"message": "Intentional failure on method: 'initialize'"
}
}
All other methods (except notifications) receive error responses:
{
"jsonrpc": "2.0",
"id": 2,
"error": {
"code": -32603,
"message": "Intentional failure on method: 'tools/list'"
}
}
Notifications (requests without an id field or with method notifications/initialized) are properly ignored per JSON-RPC 2.0 specification.
This server is useful for:
The server returns error code -32603 (Internal error) for all intentional failures, which is a standard JSON-RPC 2.0 error code indicating an internal server error.
tokio - Async runtime (with full features)serde_json - JSON serialization/deserialization