Diogenes Context Compression, Code Patching & Deterministic Solver MCP
This server provides 15 MCP tools for context/token optimization, code analysis and patching, schema/API contract validation, test generation, and deterministic math/statistics/project-risk solving.
Compress source files, logs, or transcripts while preserving signatures, imports, error frames, and focus-matched lines.
Count BPE tokens, detect lost-in-the-middle prompt risks, reorder prompt segments, and estimate multi-model costs.
Rerank and deduplicate RAG/search chunks using BM25, RRF, and MMR.
Apply fuzzy unified diffs or SEARCH/REPLACE patches despite line drift or whitespace differences.
Analyze AST symbols, call edges, cyclomatic complexity, and Halstead metrics across TS/Python/Rust/Go/Move.
Detect circular module dependencies with Tarjan SCC, compute build waves, and trace blast radius.
Isolate stack-trace root causes and deduplicate repetitive logs.
Compile sample JSON into TypeScript interfaces, Zod schemas, Pydantic v2 models, and JSON Schema.
Evaluate algebraic formulas, NPV/IRR/Kelly analysis, and descriptive statistics deterministically.
Schedule task DAGs with Critical Path Method metrics, slack, makespan, and critical path.
Judge A/B tests with Welch t-test/z-test, p-values, effect size, relative lift, and Bayesian probability.
Detect OpenAPI/JSON Schema/MCP manifest breaking changes and recommend semver bumps.
Generate boundary, equivalence-partition, and adversarial fuzz test vectors from schemas/signatures.
Run seeded Monte Carlo simulations for percentiles, VaR, and CVaR tail risk.
Diff agent memory checkpoints, flag belief conflicts, produce RFC 7396 merge deltas, and hash state.
Generates Python Pydantic v2 BaseModel definitions from JSON objects or API responses.
Generates Python Pydantic v2 BaseModel definitions from JSON/API responses and performs AST symbol, dependency, and complexity analysis on Python code.
Analyzes Rust source code with AST symbol extraction, call edges, and cyclomatic/Halstead complexity metrics.
Supports Sui Move code in AST symbol graph extraction and dependency/cycle (Tarjan SCC) analysis.
Compiles JSON payloads into strict TypeScript interfaces and performs AST symbol graph, import, call-edge, and complexity analysis (McCabe/Halstead) on TypeScript source code.
Generates Zod runtime validation schemas from JSON objects or API responses.
Click on "Deploy 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., "@Diogenes Context Compression, Code Patching & Deterministic Solver MCP prune this 10k-line log file for context"
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.
Diogenes Context Compression, Code Patching & Deterministic Solver MCP (diogenes-context-code-solver-mcp)
Diogenes Context Compression, Code Patching & Deterministic Solver MCP is a focused, zero-bloat Model Context Protocol (streamable-http) package powered by the Diogenes Microservice Gateway.
Instead of loading all 121 gateway endpoints into your LLM's context window, installing this package exposes only the 15 specialized context-code-solver tools needed for Context, Code & Deterministic Solvers:
100% Free Developer Tier (zero API keys, zero wallet required): 15 deterministic AI agent & developer tools: AST context skeleton pruner, BPE token budget planner, BM25+RRF+MMR hybrid reranker, self-healing fuzzy diff patcher, polyglot AST symbol & complexity analyzer, Tarjan circular dependency detector, stack-trace root-cause isolator, polyglot TypeScript/Zod/Pydantic compiler, Shunting-Yard math & IRR/NPV solver, Critical Path (CPM) scheduler, Welch/Bayesian A/B judge, RFC 7396 memory differ, OpenAPI breaking-change detector, boundary test-vector generator, and seeded Monte Carlo VaR/CVaR simulator.
⚡ 1-Click Install for Cursor & Claude Desktop
No API keys, user accounts, or local dependencies required. Zero setup — paste directly into your client config:
🖱️ Cursor IDE (.cursor/mcp.json)
Add to .cursor/mcp.json in your project root or global Cursor settings:
{
"mcpServers": {
"diogenes-context-code-solver": {
"transport": "streamable-http",
"url": "https://diogenesgateway.com/mcp/context-code-solver"
}
}
}🧠 Claude Desktop (claude_desktop_config.json)
Add to claude_desktop_config.json (Mac: ~/Library/Application Support/Claude/claude_desktop_config.json | Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"diogenes-context-code-solver": {
"transport": "streamable-http",
"url": "https://diogenesgateway.com/mcp/context-code-solver"
}
}
}Prefer local stdio? Run via npx:
npx -y @stand-out-of-my-sun/diogenes-context-code-solver-mcp
Related MCP server: mcp-micro-tools
Included Tools in context-code-solver (15 Tools)
MCP Tool Name | Underlying REST Route | Settlement | Capability |
|
| Free Developer Tier (0 sats) | 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, error frames, and query-matched lines. Use when shrinking oversized source files or logs before feeding them into an LLM prompt; for counting BPE tokens across prompt segments and calculating multi-model inference costs without altering text, use plan_context_token_budget instead. Read-only edge call (32 KB, 60 RPM): accepts 'content' (with enum defaults), 100% Free Developer Tier: zero API keys, zero wallet required; HTTP 400 if invalid. |
|
| Free Developer Tier (0 sats) | Counts subword BPE tokens across prompt segments, detects high-priority instructions trapped in the 35%–72% Lost-in-the-Middle attention trough, and calculates USD/satoshi costs across frontier LLMs. Use when auditing prompt token budgets, reordering prompt sections for primacy/recency attention, or comparing model API costs; for actively compressing and stripping low-salience lines from a single large file, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'segments_json' (with enum defaults), 100% Free Developer Tier: zero API keys, zero wallet required; HTTP 400 if invalid. |
|
| 50 sats (L402) | 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 Maximal Marginal Relevance (MMR) Jaccard diversity filtering. Use when selecting the top-K highest-signal, non-redundant passages from vector search or grep results; for compressing a single contiguous source file while keeping its original line order, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'search_prompt' ('documents_json' defaults to 'standard'), uses '?demo=true' or L402 (50 sats); HTTP 400 if invalid. |
|
| Free Developer Tier (0 sats) | Applies unified diffs (@@ ... @@) or SEARCH/REPLACE blocks to source code using sliding-window token similarity to resolve drifted line numbers, align indentation, and verify bracket balance. Use when healing and applying a code edit or diff that failed exact line matching due to line-number drift or whitespace differences; for inspecting function signatures, call trees, and cyclomatic complexity without modifying code, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'original_code' (with enum defaults), 100% Free Developer Tier: zero API keys, zero wallet required; HTTP 400 if invalid. |
|
| Free Developer Tier (0 sats) | Static lexer and AST parser only (zero execution or evaluation): extracts imports, exports, classes, interfaces, and functions with line numbers, intra-file call edges, McCabe cyclomatic complexity, and Halstead volume across TypeScript, Python, Rust, Go, and Move. Use when mapping internal functions, call graphs, and complexity hotspots of a source file before refactoring; for analyzing cross-file import DAGs and circular dependencies, use audit_module_dependency_cycles instead. Read-only call (32 KB, 60 RPM): accepts 'source_text' (with enum defaults), 100% Free Developer Tier: zero API keys, zero wallet required; HTTP 400 if invalid. |
|
| 75 sats (L402) | Runs Tarjan's Strongly Connected Components (SCC) algorithm on a module import map to detect circular dependencies, compute parallel topological build waves, and trace downstream change blast radius. Use when auditing multi-file import graphs for circular cycles or determining which downstream files must be re-tested after an edit; for extracting function-level symbols and cyclomatic complexity inside a single source file, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'modules_json' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid. |
|
| Free Developer Tier (0 sats) | 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 user-code frame, and clusters repetitive logs into Drain templates. Use when triage-debugging test failures, crash dumps, or repetitive server error logs; for compressing general source code files or prose transcripts, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'raw_log' ('runtime_hint' defaults to 'auto_detect'), supports '?demo=true' or L402 (50 sats), and returns HTTP 400 if invalid. |
|
| 60 sats (L402) | Inspects a sample JSON payload (inferring UUID, ISO-8601 datetime, email, integer vs float, and array item types) and compiles strict TypeScript interfaces, Zod schemas, Python Pydantic v2 models, and JSON Schema Draft 2020-12. Use when generating static type definitions and runtime validators in TypeScript and Python from a sample JSON response; for extracting existing function/class symbols and complexity metrics from source code, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'sample_json' (with enum defaults), uses '?demo=true' or L402 (60 sats); HTTP 400 if invalid. |
|
| Free Developer Tier (0 sats) | Strict Shunting-Yard AST arithmetic parser with zero eval() or dynamic code execution: evaluates algebraic formulas and computes exact financial NPV, Newton-Raphson IRR, Kelly criterion, and dataset stats. Use when computing exact arithmetic formulas, cashflow NPV/IRR, or descriptive statistics without LLM floating-point guesswork; for running two-sample A/B hypothesis tests, use evaluate_ab_statistical_significance instead. Read-only edge call (32 KB, 60 RPM): accepts 'math_formula' ('precision_digits' defaults to '2_decimals'), 100% Free Developer Tier: zero API keys, zero wallet required; HTTP 400 if invalid. |
|
| 80 sats (L402) | 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 scheduling dependent engineering milestones or workflow steps to find the minimum project duration and zero-slack bottleneck path; for detecting circular code imports and file blast radius without task durations, use audit_module_dependency_cycles instead. Read-only edge call (32 KB, 60 RPM): accepts 'tasks_json' ('time_unit' defaults to 'minutes'), supports '?demo=true' or L402 (80 sats), and returns HTTP 400 if invalid. |
|
| 60 sats (L402) | 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 > Control). Use when determining whether a prompt change, model benchmark, or A/B experiment produced a statistically significant improvement; for evaluating single algebraic formulas or NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'control_json' ('treatment_json' defaults to 'standard'), supports '?demo=true' or L402 (60 sats), and returns HTTP 400 if invalid. |
|
| 75 sats (L402) | Compares baseline and candidate OpenAPI 3.1 specs, JSON Schemas, or MCP tool manifests to detect breaking changes (removed fields, new required inputs, narrowed enums, type mutations). Use when auditing API, JSON Schema, or MCP contract revisions for backward compatibility before deployment; for compiling new TypeScript, Zod, and Pydantic schemas from a single sample JSON payload, use compile_polyglot_type_schemas instead. Read-only edge call (32 KB, 60 RPM): accepts 'baseline_schema_json' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid. |
|
| 65 sats (L402) | Synthesizes deterministic unit-test vectors from a JSON Schema or function signature covering valid equivalence partitions, numeric/length boundaries, and adversarial Unicode/null inputs. Use when generating exhaustive edge-case unit test payloads and fuzz vectors for an API endpoint or function; for healing and applying unified diffs or search/replace edits to source code, use apply_fuzzy_code_patch instead. Read-only edge call (32 KB, 60 RPM): accepts 'schema_or_signature_json' (with enum defaults), uses '?demo=true' or L402 (65 sats); HTTP 400 if invalid. |
|
| 70 sats (L402) | Runs a reproducible seeded Mulberry32 Monte Carlo simulation over uncertain cost, latency, or duration variables to compute P10/P50/P90/P95 percentiles, Value-at-Risk (VaR), and CVaR. Use when modeling stochastic uncertainty, tail risk (VaR/CVaR), and probability of meeting a budget or SLA target; for evaluating deterministic single-point algebraic formulas or exact NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'variables_json' (with enum defaults), uses '?demo=true' or L402 (70 sats); HTTP 400 if invalid. |
|
| 50 sats (L402) | Computes structural diffs between two agent state snapshots ('added_keys', 'mutated_keys', 'removed_keys'), flags boolean belief contradictions, generates an RFC 7396 JSON Merge Patch delta, and computes a canonical checkpoint hash. Use when checkpointing agent state or transmitting minimal RFC 7396 state deltas across multi-agent handoffs; for counting BPE tokens and auditing Lost-in-the-Middle prompt attention, use plan_context_token_budget instead. Read-only call (32 KB, 60 RPM): accepts 'previous_state_json' (with enum defaults), uses '?demo=true' or L402 (50 sats); HTTP 400 if invalid. |
Free Account-Less Demo Mode: Append
?demo=trueto any REST endpoint above for an instant HTTP 200 schema preview at zero cost.
🚀 Upgrade to Frontier AI Models & Autonomous Agent Pipelines
Looking for multi-model reasoning or live web retrieval? Pair context-code-solver with our paid Gemini Suite & Frontier Reasoning packages (45 models including Gemini 2.5 Pro, Antigravity Agent, Deep Research Pro, and Web Scraping) starting at only 10 sats / 1 GRLC / $0.01 with account-less pay-per-call micropayments:
👉 Explore Full Gateway & Frontier AI Suite
Other Modular Diogenes MCP Packages
Install only the domain packages relevant to your workflow:
Package | Scoped MCP Endpoint | Spoke Repository |
1. EVE: Frontier Sui Move Suite (14 Tools) |
| |
2. Agent Guardrails & Sandbox (12 Tools) |
| |
3. Web3, DeFi & 402 Security (15 Tools) |
| |
4. Gemini Suite & AI Agents (15 Tools) |
| |
5. Context, Code & Solvers (15 Tools) |
| |
6. Dev, Data & Workflow Utilities (14 Tools) |
| |
7. Web Extraction, Readability & Markdown Engine (12 Tools) |
| |
8. Neural Search, Grounded Research & Deep Intelligence (12 Tools) |
| |
9. Database Intelligence, SQL Engine & Schema Guard (12 Tools) |
| |
10. Full Master Gateway (All 121 Services) |
|
TensorBlock & MCP Index Profile Metadata
Field | Value |
Category |
|
Transport |
|
Endpoint |
|
Manifest |
|
Health Check |
|
Auth |
|
Install Confidence |
|
License |
|
Verification |
|
Maintainer |
|
Docs |
|
Support |
|
Available Tools
15 toolsanalyze_ast_symbol_graphPolyglot AST Symbol Extractor, Call Graph & Complexity AnalyzerARead-onlyIdempotent
Extracts imports, exports, classes, interfaces, and functions with line numbers, intra-file call edges, McCabe cyclomatic complexity, and Halstead volume across TypeScript, Python, Rust, Go, and Move. Use when mapping the internal functions, call graph, and complexity hotspots of a source file before refactoring; for analyzing cross-file import DAGs, circular dependencies, and topological build order across multiple modules, use audit_module_dependency_cycles instead. Read-only call (32 KB, 60 RPM): accepts 'code' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid.
Inputs: code (required), language. Returns: Deterministic response schema for analyze_ast_symbol_graph.
apply_fuzzy_code_patchSelf-Healing Fuzzy Unified Diff & Search/Replace Code PatcherARead-onlyIdempotent
Applies unified diffs (@@ ... @@) or SEARCH/REPLACE blocks to source code using sliding-window token similarity to resolve drifted line numbers, align indentation, and verify bracket balance. Use when healing and applying a code edit or diff that failed exact line matching due to line-number drift or whitespace differences; for inspecting function signatures, call trees, and cyclomatic complexity without modifying code, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'original_code' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid.
Inputs: patch (required), original_code (required), fuzz_strategy. Returns: Deterministic response schema for apply_fuzzy_code_patch.
audit_module_dependency_cyclesTarjan SCC Circular Import Detector & Topological Blast-Radius SolverARead-onlyIdempotent
Runs Tarjan's Strongly Connected Components (SCC) algorithm on a module import map to detect circular dependencies, compute parallel topological build waves, and trace downstream change blast radius. Use when auditing multi-file import graphs for circular cycles or determining which downstream files must be re-tested after an edit; for extracting function-level symbols and cyclomatic complexity inside a single source file, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'modules_json' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid.
Inputs: modules_json (required), analysis_scope. Returns: Deterministic response schema for audit_module_dependency_cycles.
compile_polyglot_type_schemasPolyglot JSON -> TypeScript, Zod, Pydantic v2 & JSON Schema CompilerARead-onlyIdempotent
Inspects a sample JSON payload (inferring UUID, ISO-8601 datetime, email, integer vs float, and array item types) and compiles strict TypeScript interfaces, Zod schemas, Python Pydantic v2 models, and JSON Schema Draft 2020-12. Use when generating static type definitions and runtime validators in TypeScript and Python from a sample JSON response; for extracting existing function/class symbols and complexity metrics from source code, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'sample_json' (with enum defaults), uses '?demo=true' or L402 (60 sats); HTTP 400 if invalid.
Inputs: sample_json (required), root_name, strictness. Returns: Deterministic response schema for compile_polyglot_type_schemas.
detect_openapi_breaking_changesOpenAPI 3.1, JSON Schema & MCP Contract Breaking-Change DetectorARead-onlyIdempotent
Compares baseline and candidate OpenAPI 3.1 specs, JSON Schemas, or MCP tool manifests to detect breaking changes (removed fields, new required inputs, narrowed enums, type mutations). Use when auditing API, JSON Schema, or MCP contract revisions for backward compatibility before deployment; for compiling new TypeScript, Zod, and Pydantic schemas from a single sample JSON payload, use compile_polyglot_type_schemas instead. Read-only edge call (32 KB, 60 RPM): accepts 'baseline_schema_json' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid.
Inputs: baseline_schema_json (required), candidate_schema_json (required), contract_format. Returns: Deterministic response schema for detect_openapi_breaking_changes.
diff_agent_memory_checkpointAgent State Graph Differ, Belief Conflict Resolver & SHA-256 HasherARead-onlyIdempotent
Computes structural diffs between two agent state snapshots ('added_keys', 'mutated_keys', 'removed_keys'), flags boolean belief contradictions, generates an RFC 7396 JSON Merge Patch delta, and computes a canonical checkpoint hash. Use when checkpointing agent state or transmitting minimal RFC 7396 state deltas across multi-agent handoffs; for counting BPE tokens and auditing Lost-in-the-Middle prompt attention, use plan_context_token_budget instead. Read-only call (32 KB, 60 RPM): accepts 'previous_state_json' (with enum defaults), uses '?demo=true' or L402 (50 sats); HTTP 400 if invalid.
Inputs: current_state_json (required), previous_state_json (required), conflict_strategy. Returns: Deterministic response schema for diff_agent_memory_checkpoint.
evaluate_ab_statistical_significanceWelch's t-Test, Two-Proportion z-Test & Bayesian A/B Eval JudgeARead-onlyIdempotent
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 > Control). Use when determining whether a prompt change, model benchmark, or A/B experiment produced a statistically significant improvement; for evaluating single algebraic formulas or NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'control_json' ('treatment_json' defaults to 'standard'), supports '?demo=true' or L402 (60 sats), and returns HTTP 400 if invalid.
Inputs: control_json (required), treatment_json (required), significance_level. Returns: Deterministic response schema for evaluate_ab_statistical_significance.
evaluate_deterministic_mathShunting-Yard Algebraic Math, Financial IRR/NPV & Descriptive Stats SolverARead-onlyIdempotent
Evaluates algebraic and scientific formulas via a Shunting-Yard AST parser and computes exact financial NPV, Newton-Raphson IRR, Kelly criterion, and dataset stats. Use when computing exact arithmetic formulas, cashflow NPV/IRR, or descriptive statistics without LLM floating-point guesswork; for running two-sample A/B hypothesis tests between control and treatment arms, use evaluate_ab_statistical_significance instead. Read-only edge call (32 KB, 60 RPM): accepts 'expression' ('precision_digits' defaults to '2_decimals'), uses '?demo=true' or L402 (40 sats); HTTP 400 if invalid.
Inputs: expression (required), precision_digits. Returns: Deterministic response schema for evaluate_deterministic_math.
generate_boundary_test_vectorsJSON Schema & Function Signature Boundary-Value Test Vector GeneratorARead-onlyIdempotent
Synthesizes deterministic unit-test vectors from a JSON Schema or function signature covering valid equivalence partitions, numeric/length boundaries, and adversarial Unicode/null inputs. Use when generating exhaustive edge-case unit test payloads and fuzz vectors for an API endpoint or function; for healing and applying unified diffs or search/replace edits to source code, use apply_fuzzy_code_patch instead. Read-only edge call (32 KB, 60 RPM): accepts 'schema_or_signature_json' (with enum defaults), uses '?demo=true' or L402 (65 sats); HTTP 400 if invalid.
Inputs: schema_or_signature_json (required), vector_suite_profile. Returns: Deterministic response schema for generate_boundary_test_vectors.
isolate_stacktrace_root_causeStack-Trace Root-Cause Frame Isolator & Drain Log DeduplicatorARead-onlyIdempotent
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 user-code frame, and clusters repetitive logs into Drain templates. Use when triage-debugging test failures, crash dumps, or repetitive server error logs; for compressing general source code files or prose transcripts, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'raw_log' ('runtime_hint' defaults to 'auto_detect'), supports '?demo=true' or L402 (50 sats), and returns HTTP 400 if invalid.
Inputs: raw_log (required), runtime_hint. Returns: Deterministic response schema for isolate_stacktrace_root_cause.
plan_context_token_budgetBPE Token Budget, Attention Trough & Multi-Model Cost PlannerARead-onlyIdempotent
Counts subword BPE tokens across prompt segments, detects high-priority instructions trapped in the 35%–72% Lost-in-the-Middle attention trough, and calculates USD/satoshi costs across frontier LLMs. Use when auditing prompt token budgets, reordering prompt sections for primacy/recency attention, or comparing model API costs; for actively compressing and stripping low-salience lines from a single large file, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'segments_json' (with enum defaults), uses '?demo=true' or L402 (30 sats); HTTP 400 if invalid.
Inputs: segments_json (required), max_context_tokens, target_model_family. Returns: Deterministic response schema for plan_context_token_budget.
prune_context_skeletonAST-Aware Context Window & Source Code Skeleton PrunerARead-onlyIdempotent
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, error frames, and query-matched lines. Use when shrinking oversized source files or logs before feeding them into an LLM prompt; for counting BPE tokens across prompt segments and calculating multi-model inference costs without altering text, use plan_context_token_budget instead. Read-only edge call (32 KB, 60 RPM): accepts 'content' (with enum defaults), uses '?demo=true' or L402 (50 sats); HTTP 400 if invalid.
Inputs: content (required), focus_query, pruning_mode, target_ratio. Returns: Deterministic response schema for prune_context_skeleton.
rerank_hybrid_rag_chunksOkapi BM25 + Reciprocal Rank Fusion (RRF) + MMR Chunk RerankerARead-onlyIdempotent
Reranks and deduplicates candidate RAG or search chunks against a query using Okapi BM25 (k1=1.5, b=0.75), Reciprocal Rank Fusion (RRF), and Maximal Marginal Relevance (MMR) Jaccard diversity filtering. Use when selecting the top-K highest-signal, non-redundant passages from vector search or grep results; for compressing a single contiguous source file while keeping its original line order, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'query' ('documents_json' defaults to 'standard'), uses '?demo=true' or L402 (50 sats); HTTP 400 if invalid.
Inputs: query (required), documents_json (required), top_k, ranking_mode. Returns: Deterministic response schema for rerank_hybrid_rag_chunks.
schedule_critical_path_tasksCritical Path Method (CPM) DAG & Resource Constraint SchedulerARead-onlyIdempotent
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 scheduling dependent engineering milestones or workflow steps to find the minimum project duration and zero-slack bottleneck path; for detecting circular code imports and file blast radius without task durations, use audit_module_dependency_cycles instead. Read-only edge call (32 KB, 60 RPM): accepts 'tasks_json' ('time_unit' defaults to 'minutes'), supports '?demo=true' or L402 (80 sats), and returns HTTP 400 if invalid.
Inputs: tasks_json (required), time_unit. Returns: Deterministic response schema for schedule_critical_path_tasks.
simulate_monte_carlo_riskSeeded Mulberry32 Monte Carlo Percentile, VaR & Tail-Risk SimulatorARead-onlyIdempotent
Runs a reproducible seeded Mulberry32 Monte Carlo simulation over uncertain cost, latency, or duration variables to compute P10/P50/P90/P95 percentiles, Value-at-Risk (VaR), and CVaR. Use when modeling stochastic uncertainty, tail risk (VaR/CVaR), and probability of meeting a budget or SLA target; for evaluating deterministic single-point algebraic formulas or exact NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'variables_json' (with enum defaults), uses '?demo=true' or L402 (70 sats); HTTP 400 if invalid.
Inputs: variables_json (required), distribution_model. Returns: Deterministic response schema for simulate_monte_carlo_risk.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a clearly distinct operation (compression, token budgeting, reranking, patching, AST analysis, dependency cycles, stacktrace triage, type generation, math, scheduling, A/B stats, schema diffing, test vectors, Monte Carlo, state diffing). Descriptions explicitly cross-reference the nearest neighbor ('for X, use Y instead'), resolving the only potential overlaps like prune_context_skeleton vs rerank_hybrid_rag_chunks or analyze_ast_symbol_graph vs audit_module_dependency_cycles.
All 15 tools follow a consistent snake_case verb_noun (or verb_qualifier_noun) pattern: prune_context_skeleton, compile_polyglot_type_schemas, simulate_monte_carlo_risk, diff_agent_memory_checkpoint. No camelCase mixing or vague single-word verbs; names fully describe the action and target.
15 tools sits at the upper end of the well-scoped 3-15 range, and each tool maps to a genuinely distinct, non-redundant capability. No filler tools or near-duplicates inflate the surface.
The 'context engineering / code analysis' domain is well covered across compression, budgeting, patching, static analysis, stats, and scheduling with no obvious dead ends. Minor gaps exist (e.g. no embedding/search or sandboxed execution step), but core workflows are workable end-to-end.
Maintenance
Related MCP Connectors
JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
13 micro-tools for agents: read pages, verify email, convert, validate, diff, extract. AI-operated.
135 pay-per-call agent tools: agent intelligence, token risk, developer and AI data tools. x402
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with 28 developer tools across file, git, code analysis, HTTP, and system domains, enabling tasks like file editing, repository management, code analysis, and shell command execution.13 npm2MIT
- AlicenseNot gradedqualityDmaintenanceProvides a set of micro-tools (time calculation, regex, encoding, JSON diff, etc.) for LLM agents to handle deterministic, precision tasks that models often get wrong.MIT
- AlicenseNot gradedqualityDmaintenanceCortex is a local-first MCP server that provides persistent, shared, semantically searchable memory for AI agents across all MCP clients using a single SQLite file.1MIT
- AlicenseAqualityBmaintenanceCortex is an MCP server that helps build and maintain a project Memory Bank for AI assistants, enabling reproducible, high-quality AI-driven development with a plan-do-commit loop.103MIT