TypedDecisionMCP
This MCP server exposes a single decidir tool for typed local decisions over a given state, returning a structured decision and an action recommendation.
Takes a
state(string, object, or array) plus optionalpresetandquestions; no extra fields allowed.Supports presets:
comando,subagente,diff,ficheiro,commit,pacote(Portuguese aliases for command, subagent, diff, file, commit, bundle).ficheiroandpacoterequirestate.candidates(2–20 paths).Returns one of
yesno/choice/scoreplus an action:auto,review, orstop.Uses a local default engine (head-mlp + MiniLM) with opt-in
DECIDE_ENGINE=logits+ Qwen; aims for 10× fewer generated tokens and faster decisions while maintaining accuracy.Forbids task execution and must not invent probabilities in text.
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., "@TypedDecisionMCP Use decidir to choose between refactoring or rewriting this module."
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.
TypedDecisionMCP
Repositório: hectorlutero/TypedDecisionMCP.
MCP de uma tool (decide, formerly decidir) para o Cursor. Motor local default: head-mlp + MiniLM (embedding curto + probe). Opt-in: DECIDE_ENGINE=logits + Qwen. Sem TypeSafe. Sem JSON gerado no caminho de 10×.
Alvo v1 em PLAN.md: ≥ 10× menos tokens gerados e ≥ 10× menos tempo no hop de decisão, com accuracy ≥ 0,75 no ouro authored. Implementação do alvo seguinte (authored 0,85 e 15×) em PLAN-melhorias.md.
Uso
npm install
npm test
npm run fetch-model
npm run buildexamples/cursor.mcp.json aponta para dist/index.js. A rule está em cursor/rule.mdc.
npm run bench:logits
npm run bench:reportbench:report separa qualidade de 10×. Qualidade: authored ≥ 0,75 e generated_tokens === 0. 10× tokens exige bench/baseline.json com source: measured e method: cursor-ui (Composer) ou cursor-subagent (DECIDE_ACCEPT_PROXY=1, text em todos os hops). Os hops são cmd-01 sub-01 diff-02 file-01 commit-01. Prompts em bench/hop-prompts.md. Mesma régua chars/4 nos dois lados quando há text. 10× de tempo só com relógio da UI ou spawn de três hops ok.
Ship actual nesta VM (head-mlp + all-MiniLM-L6-v2 Q8): authored 40/40, held-out 19/20, generated_tokens === 0, p50 ~16 ms, 0 destructive false auto (miss só h-diff-01). Baseline logits (Qwen3-0.6B Q8) no mesmo commit: authored 33/40, held-out 15/20, p50 ~381 ms. Tempo 10× tipicamente 3–4/5 (UI cursor-ui). Aceite dual: held-out ≥ max(0,75, logits) e p50 ≤ 200 ms ou ≤ logits — MiniLM passa. Detalhe: models/README.md, snapshot bench/out/quality-minilm-ship.md.
Related MCP server: ContextBridge
Presets
command · subagent · diff · file · commit · bundle
file e bundle exigem state.candidates (2–20 caminhos). Portuguese aliases still parse: comando, subagente, ficheiro, pacote.
Available Tools
1 tooldecidirC
Typed local decision over state. Presets: comando, subagente, diff, ficheiro, commit, pacote. Returns yesno/choice/score plus action auto|review|stop. Do not invent probabilities in text.
Inputs: state (required), preset, questions.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or misselection between tools. The single tool 'decidir' is unique, so disambiguation is trivially perfect.
The tool name 'decidir' is a clear, single verb, and since there is only one tool, there is no naming pattern to violate. It is slightly inconsistent with typical verb_noun conventions, but internally consistent and readable.
The server has only one tool that handles a wide range of presets (comando, subagente, diff, etc.), making it a monolith. This is too few tools for the apparent scope, as an agent would need to parse presets and cannot use distinct tools for different decision types.
The single tool covers only a generic 'decide' operation with presets, but lacks any other operations like listing available presets, getting metadata, or handling workflow-specific actions. There are significant gaps that would limit an agent's ability to perform complex tasks without workarounds.
Maintenance
Related MCP Connectors
Up to 90% fewer tokens: deterministic, declared tool calls, each with a receipt and an audit trail.
AI agent skills marketplace — token-efficient skill search & execution
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProcesses large files, error logs, and codebase searches locally via Ollama to reduce token consumption in Cursor by up to 80%.2MIT
- FlicenseNot gradedqualityCmaintenanceLocal-first code retrieval for AI agents — cuts codebase context from thousands of tokens to a few hundred, with zero hallucinated file paths.3-
- AlicenseAqualityBmaintenanceEnables routing tasks across Cursor agents and external LLM backends through chat, while managing local models, write allowlists, and asynchronous workflows.351MIT
- AlicenseNot gradedqualityCmaintenanceEnables autonomous context window management, prompt caching, token optimization, and real-time observability for AI coding agents across multiple IDEs, reducing token costs and improving performance.Apache 2.0