About failshare
failshare is a local bridge to FailEcho’s hosted MCP server, giving agents shared knowledge about tool, API, and MCP failures. Agents can check known failure patterns before retrying and report failures, successes, and recovery outcomes to inform later recommendations.
Key features
- 01Check shared failure status
- 02View recovery actions and success rates
- 03Report tool failures and successes
- 04Record recovery outcomes
- 05Send failure metadata only
Use cases
- 01Check an API timeout before retrying
- 02Report a failing tool call
- 03Compare recovery actions
- 04Record whether a retry worked
MCP support
Exposes FailEcho’s hosted tools through a local stdio MCP server and forwards calls upstream. Results pass through unchanged.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
4Saved tool list · updated 1w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| service | string | Yes | The MCP server's own name (serverInfo.name) or the API host, e.g. 'api.github.com'. Not your client's local alias. |
| verbose | boolean | No | Full record (timestamps, rates, effective counts, every action). Default: the compact answer. |
| version | string | No | Service/tool version, if known. |
| operation | string | Yes | The tool or endpoint as the server names it, e.g. 'create_issue', not 'mcp__github__create_issue'. |
| error_code | string | No | Code, e.g. '422', 'ECONNRESET'. |
| error_type | string | No | Failure class, e.g. 'validation_error', 'timeout', 'rate_limit', 'auth_error'. |
| reporter_id | string | No | Optional stable agent id; hashed, never stored raw. Lets from_other_agents be answered. |
| schema_hash | string | No | Short hash of the tool schema you used (separates 'API broke' from 'schema stale'). |
| error_message | string | No | The error text only; normalized server-side, not stored by this call. |
Details
From the project READMEfailshare
failshare is a small local bridge to FailEcho's hosted MCP server, a shared failure-knowledge base for agents. When a tool, API or MCP call fails, agents check what the network already knows about that exact failure before retrying blindly, and they report their own failures, successes and recovery outcomes so the next agent gets a better answer.
The bridge keeps no failure data and computes nothing of its own. It serves the upstream server's tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning the result untouched.
Tools
check_tool_failure- ask what the network knows about a failure before retrying. Returns a status (HEALTHY / DEGRADED / MAJOR / INSUFFICIENT_DATA), counts, the recovery actions that worked with their success rates, and one recommendation. Required:service(the server's own name or API host) andoperation(the tool or endpoint as the server names it). Optional context:error_type,error_message,error_code,version,schema_hash,reporter_id, andverbosefor the full record instead of the compact answer.report_tool_failure- report a failed call so others can recognise it. Required:service,operation. Optional:error_type,error_message,error_code,version,schema_hash,latency_msandreporter_id. Send failure metadata only - never prompts, arguments, results, headers or keys; error text is normalised server-side.report_tool_success- report that a call succeeded. Failure rates need the denominator: a network that only hears failures cannot tell broken from busy. Required:service,operation. Optional:version,schema_hash,latency_ms,reporter_id.report_recovery_outcome- after acting on a failure (retry, wait, refresh_schema, reconnect, use_fallback, reauthenticate), report whether it worked; every recommendation is built from these. Required:fingerprint(fromcheck_tool_failureorreport_tool_failure),action, andsuccessful. Optional:reporter_id.
Configuration
FAILECHO_MCP_URL(optional) - override the upstream endpoint. Defaults tohttps://failecho.com/mcp. (The override hook is this rebuild's own labelled reconstruction.)FAILECHO_REPORTER_ID(optional) - when set, every upstream request carries anX-Reporter-Id: <value>header carrying the value. When it is not set, no such header is sent. (This forwarding is also a labelled reconstruction; the original surface was captured keyless.)
Forwarding mechanics
On the first tool call the client opens a streamable
HTTP session with the upstream: a JSON-RPC initialize
request (protocolVersion 2025-03-26, clientInfo name
failshare), then a notifications/initialized
notification, then the tools/call request carrying
the caller's arguments unchanged. When the upstream
answers initialize with an Mcp-Session-Id header,
that value rides on every later request of the session,
which is reused for the life of the process. Replies
may arrive as plain JSON or as server-sent events;
both are read.
Successful upstream results pass through verbatim,
including any isError flag the upstream sets.
Failures - a JSON-RPC error, a non-2xx status, an
unreadable response, or a request that cannot be
completed - come back as an isError result whose
text starts with failshare error: (this rendering
is this rebuild's own labelled reconstruction).
CLI
Each tool is also a subcommand taking one JSON argument string:
npx @reneturcios/failshare check_tool_failure '{"service":"api.github.com","operation":"create_issue","error_type":"timeout"}'
npx @reneturcios/failshare report_tool_failure '{"service":"api.github.com","operation":"create_issue","error_type":"validation_error"}'
npx @reneturcios/failshare report_tool_success '{"service":"api.github.com","operation":"create_issue","latency_ms":42}'
npx @reneturcios/failshare report_recovery_outcome '{"fingerprint":"0123456789abcdef0123456789abcdef","action":"refresh_schema","successful":true}'
npx @reneturcios/failshare --version
Exit codes: 0 on success, 1 on an isError
result, 2 on a usage error.
MCP server
npx -y @reneturcios/failshare mcp
MCP client config:
{
"mcpServers": {
"failshare": {
"command": "npx",
"args": ["-y", "@reneturcios/failshare", "mcp"]
}
}
}
Docker
docker run -i ghcr.io/cloudcorprecords/failshare
docker run --rm ghcr.io/cloudcorprecords/failshare --version
The container's default command is mcp, so the first
form is a stdio MCP server; any other arguments reach
the CLI normally.
Development
npm install
npm run build
npm test
npm run dev
The test suite runs entirely against a stubbed JSON-RPC upstream - no live network calls.
License
MIT - see LICENSE.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.