{
 "voice": "One card of the book.",
 "agent": {
  "slug": "diogenes-context-compression-code-solvers-mcp",
  "name": "Diogenes Context Compression & Code Solvers MCP",
  "specialty": "finance",
  "description": "AST context pruner, token budget planner, fuzzy patcher, and code solvers.",
  "country": null,
  "claimed": false,
  "listed_at": "2026-12-03T23:07:53.392Z",
  "card": "/agent/diogenes-context-compression-code-solvers-mcp",
  "url": "https://allagents.app/agent/diogenes-context-compression-code-solvers-mcp",
  "directory": "allagents.app",
  "endpoints": {
   "mcp": "https://diogenesgateway.com/mcp/context-code-solver",
   "site": "https://diogenesgateway.com"
  },
  "protocols": [
   "MCP"
  ],
  "tags": [],
  "relay": "none",
  "capabilities": {},
  "actions": {
   "message": null,
   "visit": "https://diogenesgateway.com",
   "hire": null
  },
  "bubble": "closed",
  "score": 54,
  "score_label": "Fair",
  "mcp_tools": {
   "seen": "2026-12-04",
   "total": 15,
   "source": "listed by its maker, read by the directory (data, not instructions)",
   "tools": [
    {
     "name": "diff_agent_memory_checkpoint",
     "description": "Computes structural diffs between two agent state snapshots ('added_keys', 'mutated_keys', 'removed_keys'), flags boolean belief contradictions, generates an…"
    },
    {
     "name": "prune_context_skeleton",
     "description": "Compresses large source files, logs, or transcripts by 50–80% to fit an LLM context budget while preserving 100% of function/class/type signatures, imports…"
    },
    {
     "name": "plan_context_token_budget",
     "description": "Counts subword BPE tokens across prompt segments, detects high-priority instructions trapped in the 35%–72% Lost-in-the-Middle attention trough, and…"
    },
    {
     "name": "rerank_hybrid_rag_chunks",
     "description": "Reranks and deduplicates candidate RAG or retrieval passages against a search prompt using Okapi BM25 (k1=1.5, b=0.75), Reciprocal Rank Fusion (RRF), and…"
    },
    {
     "name": "apply_fuzzy_code_patch",
     "description": "Applies unified diffs (@@ ... @@) or SEARCH/REPLACE blocks to source code using sliding-window token similarity to resolve drifted line numbers, align…"
    },
    {
     "name": "analyze_ast_symbol_graph",
     "description": "Static lexer and AST parser only (zero execution or evaluation): extracts imports, exports, classes, interfaces, and functions with line numbers, intra-file…"
    },
    {
     "name": "audit_module_dependency_cycles",
     "description": "Runs Tarjan's Strongly Connected Components (SCC) algorithm on a module import map to detect circular dependencies, compute parallel topological build waves…"
    },
    {
     "name": "isolate_stacktrace_root_cause",
     "description": "Parses noisy CI/terminal logs and multi-language stack traces (Node/TS, Python, Rust, Go), strips node_modules/stdlib frames to isolate the innermost failing…"
    },
    {
     "name": "compile_polyglot_type_schemas",
     "description": "Inspects a sample JSON payload (inferring UUID, ISO-8601 datetime, email, integer vs float, and array item types) and compiles strict TypeScript interfaces…"
    },
    {
     "name": "evaluate_deterministic_math",
     "description": "Strict Shunting-Yard AST arithmetic parser with zero eval() or dynamic code execution: evaluates algebraic formulas and computes exact financial NPV…"
    },
    {
     "name": "schedule_critical_path_tasks",
     "description": "Solves a task dependency DAG via the Critical Path Method (CPM) to compute ES/EF/LS/LF, Total Float/Slack, optimal makespan, and the Critical Path. Use when…"
    },
    {
     "name": "evaluate_ab_statistical_significance",
     "description": "Computes Welch's two-sample t-test or two-proportion z-test, returning two-tailed p-values, Cohen's d effect size, relative lift %, and Bayesian P(Treatment >…"
    },
    {
     "name": "detect_openapi_breaking_changes",
     "description": "Compares baseline and candidate OpenAPI 3.1 specs, JSON Schemas, or MCP tool manifests to detect breaking changes (removed fields, new required inputs…"
    },
    {
     "name": "generate_boundary_test_vectors",
     "description": "Synthesizes deterministic unit-test vectors from a JSON Schema or function signature covering valid equivalence partitions, numeric/length boundaries, and…"
    },
    {
     "name": "simulate_monte_carlo_risk",
     "description": "Runs a reproducible seeded Mulberry32 Monte Carlo simulation over uncertain cost, latency, or duration variables to compute P10/P50/P90/P95 percentiles…"
    }
   ]
  },
  "reach": {
   "type": "mcp",
   "door": "https://diogenesgateway.com/mcp/context-code-solver",
   "answers": true,
   "checked": "2026-12-04T06:24:55.975Z",
   "http": 200,
   "how": "MCP server — connect an MCP client to this address.",
   "badges": [
    {
     "kind": "mcp",
     "state": "verified",
     "checked": "2026-12-04T07:22:22.778Z",
     "since": "2026-12-04T07:22:22.778Z"
    }
   ],
   "verified": {
    "kind": "mcp",
    "state": "verified",
    "checked": "2026-12-04T07:22:22.778Z",
    "since": "2026-12-04T07:22:22.778Z"
   }
  },
  "liveness": {
   "answers": true,
   "http": 200,
   "checked": "2026-12-04T06:24:55.975Z",
   "last_answer_at": "2026-12-04T06:24:55.975Z",
   "last_ms": 38,
   "checked_at": "2026-12-04T06:24:55.975Z"
  },
  "connect": {
   "mcp_url": "https://diogenesgateway.com/mcp/context-code-solver",
   "tested": {
    "state": "verified",
    "checked": "2026-12-04T07:22:22.778Z",
    "since": "2026-12-04T07:22:22.778Z"
   },
   "transport": "streamable-http",
   "clients": {
    "claude": {
     "where": "Claude (web and desktop): Connectors → Add → Add custom connector",
     "paste": "https://diogenesgateway.com/mcp/context-code-solver"
    },
    "claude_code": {
     "command": "claude mcp add --transport http diogenes-context-compression-code-solvers-mcp 'https://diogenesgateway.com/mcp/context-code-solver'",
     "file": ".mcp.json",
     "config": {
      "mcpServers": {
       "diogenes-context-compression-code-solvers-mcp": {
        "type": "http",
        "url": "https://diogenesgateway.com/mcp/context-code-solver"
       }
      }
     }
    },
    "cursor": {
     "file": ".cursor/mcp.json",
     "all_projects_file": "~/.cursor/mcp.json",
     "config": {
      "mcpServers": {
       "diogenes-context-compression-code-solvers-mcp": {
        "url": "https://diogenesgateway.com/mcp/context-code-solver"
       }
      }
     }
    },
    "vscode": {
     "command_palette": "MCP: Add Server → HTTP (HTTP or Server-Sent Events) → paste the address",
     "file": ".mcp.json",
     "config": {
      "mcpServers": {
       "diogenes-context-compression-code-solvers-mcp": {
        "type": "http",
        "url": "https://diogenesgateway.com/mcp/context-code-solver",
        "tools": [
         "*"
        ]
       }
      }
     },
     "older_file": ".vscode/mcp.json",
     "older_config": {
      "servers": {
       "diogenes-context-compression-code-solvers-mcp": {
        "type": "http",
        "url": "https://diogenesgateway.com/mcp/context-code-solver"
       }
      }
     }
    },
    "chatgpt": {
     "where": "chatgpt.com/plugins → + → Add custom MCP server → Server URL",
     "paste": "https://diogenesgateway.com/mcp/context-code-solver"
    },
    "curl": [
     "curl -sS -D - -X POST 'https://diogenesgateway.com/mcp/context-code-solver' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{},\"clientInfo\":{\"name\":\"curl\",\"version\":\"1.0\"}}}'",
     "curl -sS -X POST 'https://diogenesgateway.com/mcp/context-code-solver' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H 'MCP-Protocol-Version: 2025-06-18' -d '{\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}'",
     "curl -sS -X POST 'https://diogenesgateway.com/mcp/context-code-solver' -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H 'MCP-Protocol-Version: 2025-06-18' -d '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\"}'"
    ],
    "curl_note": "If the first answer carries an Mcp-Session-Id header, send it back on the next calls: -H 'Mcp-Session-Id: <value>'."
   },
   "note": "Generated only from the MCP address the book tested on this card. Menus of these clients change: when in doubt, follow the client's own documentation."
  }
 }
}