Pisama MCP Server
OfficialProvides heuristic detectors for failure detection in LangGraph agents, identifying issues such as loop patterns, coordination problems, and task deviation.
Provides heuristic detectors for failure detection in n8n workflows, catching issues like infinite loops, coordination deadlocks, and state corruption.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pisama MCP Serveranalyze trace.json for failures"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pisama
Find and fix failures in AI agent systems. No LLM calls required.
Pisama ships 32 core heuristic detectors plus framework-specific detectors for n8n, LangGraph, Dify, and OpenClaw. They run locally with zero LLM cost on the heuristic tier. An archived run on the TRAIL benchmark reports 59.9% joint accuracy (span and category), compared with 11.9% for the best general-purpose LLM judge tested. The public confusion counts reproduce the reported macro-F1 and micro-F1. See the benchmark evidence and its reproducibility boundary.
Install
pip install pisamaUsage
from pisama import analyze
result = analyze("trace.json") # also accepts dicts and JSON strings
for issue in result.issues:
print(f"[{issue.type}] {issue.summary} (severity: {issue.severity})")
print(f" Fix: {issue.recommendation}")CLI
pisama analyze trace.json # Analyze a trace
pisama watch python my_agent.py # Watch a live agent (pip install pisama[auto])
pisama replay <trace-id> # Re-run detection on stored traces
pisama smoke-test --last 50 # Batch test recent traces
pisama detectors # List all 32 core detectors
pisama mcp-server # Start MCP server (pip install pisama[mcp])MCP Server
Works in Cursor, Claude Desktop, and Windsurf. No API key is needed:
{
"mcpServers": {
"pisama": { "command": "pisama", "args": ["mcp-server"] }
}
}Detectors
32 core detectors plus framework-specific detectors for n8n, LangGraph, Dify, and OpenClaw. A representative selection:
Detector | What It Catches |
| Infinite loops, retry storms, stuck patterns |
| Deadlocked handoffs, message storms |
| Factual errors, fabricated tool results |
| Prompt injection, jailbreak attempts |
| State corruption, type drift |
| Persona drift, role confusion |
| Task deviation, goal drift |
| Context neglect, ignored instructions |
| Output vs. requirement mismatch |
| Inter-agent message breakdown |
| Poor task breakdown, circular dependencies |
| Unreachable nodes, missing error handling |
| Premature completion, unfinished work |
| Suppressed findings, hidden errors |
| Metric plateau, regression, thrashing |
| Context window exhaustion |
| Delegation quality and task handoff failures |
| Claims not supported by source documents |
| Poor retrieval relevance or coverage |
| Information loss during context compaction |
Benchmark Results
TRAIL (trace-level failure detection, 148 traces):
Method | Joint Accuracy |
GPT-5.4 | 11.9% |
Gemini 3.1 Pro | 6.8% |
Pisama archived run | 59.9% |
Who&When (ICML 2025, multi-agent attribution, 58 hand-crafted cases):
Method | Agent Accuracy | Step Accuracy |
GPT-5.4 Mini | 60.3% | 22.4% |
Pisama + Sonnet 4 | 60.3% | 24.1% |
Links
License
MIT
Source boundary
This repository is the public source for the MIT-licensed pisama Python
package. It does not contain the Pisama Cloud backend, dashboard, calibration
data, managed detection tiers, or paid automation.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pisama-AI/pisama-python'
If you have feedback or need assistance with the MCP directory API, please join our Discord server