mcp-governance
Skill0 starsChanged 3 months agoMITView on GitHub
Use when considering adding an MCP server, when context feels bloated with tool definitions, when auditing which servers consume the most context budget, before committing mcp_config.json changes, or when deciding which servers to keep active per task. Estimates per-server tool-definition token cost and guides lazy enablement.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- frankxai/starlight-automation-agent-skillstheir own version, first seen Aug 19, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- frankxai/starlight-automation-agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository110 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/project-bootstrap/templates/agents.mdAGENTS.md
- a11y-auditSkill
- agentic-ragSkill
- agent-reachSkill
- ai3d-genSkill
- ai-coding-dictionarySkill
- ai-toolsSkill
- animation-directionSkill
- api-specSkill
- architecture-diagramsSkill
- architectureSkill
- ascii-artSkill
- ask-bundleSkill
- binary-triageSkill
- bragSkill
- brag-slimSkill
- career-opsSkill
- code-reviewSkill
- computer-useSkill
- context7Skill
- context-hygieneSkill
- creative-engineeringSkill
- cu-realtimeSkill
- data-analystSkill
- databaseSkill
- dead-wireSkill
- debuggingSkill
- deploySkill
- devin-configSkill
- dispatching-parallel-agentsSkill
- dmaSkill
- dockerSkill
- drift-reportSkill
- e2e-testingSkill
- edge-casesSkill
- executionSkill
- fact-checkSkill
- finishing-a-development-branchSkill
- firmware-probeSkill
- frontend-designSkill
- gatesSkill
- ghidraSkill
- ghSkill
- github-actionsSkill
- git-workflowsSkill
- grillingSkill
- handoffSkill
- humanizerSkill
- hyperframesSkill
- i18nSkill
- image-forensicsSkill
- impeccableSkill
- implement-layaSkill
- intakeSkill
- jiraSkill
- knowledge-modelingSkill
- laya-orchestratorSkill
- learn-modeSkill
- media-toolsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Every MCP server injects all its tool definitions into the system prompt of every conversation — even when unused.
- Distinctive: line 15
Default state: minimal or zero MCP servers.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP Governance
Every MCP server injects all its tool definitions into the system prompt of every conversation — even when unused. Two "plug-and-play" servers can eat a third of a 200k window before the first user message. Audit before adding; keep only what earns its tokens.
Principle: MCP servers should be active only when a task needs them. Default state: minimal or zero MCP servers. Enable on demand; disable when done.
Rule of thumb: tool count per server under 10-15 keeps tool-selection accuracy above 90% (arXiv:2606.30317). A 5-tool server with huge descriptions can still cost more than a 15-tool terse one — measure token cost, not just count.
Audit workflow
- List configured servers:
python3 "{{APPDATA}}/devin/skills/mcp-governance/scripts/mcp-context-audit.py" --config mcp_config.jsonReports transport, command/url, static bloat risk. No tool calls made. - Measure real tool counts:
mcp_list_tools server_name="<srv>", then pipe the tool list to the estimator:python3 ".../scripts/mcp-context-audit.py" --tools tools_<srv>.jsonEstimates token cost (chars/4) and flags >10-15 tools. Decide:
Signal Action Server unused in N sessions Remove from mcp_config.jsonTool count > 15 Prefer narrower server or scope tools Token cost > 5% of window Justify with concrete usage; else remove Untrusted server Review code/permissions first; sandbox - Verify after removal: re-run step 1; confirm budget dropped
(
context-budget.py --full).
Lazy enablement workflow
Classify each server:
Classification Criteria Action Always-on Used in >50% of sessions, cost <3% of window Keep On-demand Specific task types (Jira, database, deploy) Enable only for those tasks Rarely used <10% of sessions Remove; re-add when needed Never used Configured but never invoked Remove immediately - Disable temporarily: move the server entry from
mcp_config.jsontomcp_config.disabled.json, restart session; move back when needed. - Plugin installs:
devin plugins info <name>shows which MCP servers a plugin provides — factor that cost into keeping the plugin. - Verify savings: re-run
context-budget.py --full.
Decision heuristic: task starts → needs MCP tools? NO → minimal servers active. YES → enable only what's needed → audit cost → work → disable.
Anti-patterns
- Keeping all servers always-on "just in case" — the #1 cause of MCP bloat.
- Auditing once and never again — servers grow tools over time.
- Adding servers without measuring before/after.
- Trusting tool count alone — check token cost.
- Skipping the trust review — MCP servers run with user permissions; evaluate architecture patterns/anti-patterns before adding.
- Treating MCP config as immutable — it's a living config.
Source
Tool-count accuracy threshold: arXiv:2606.30317. Context tax framing: Matt Pocock, "Context Windows Explained for Coding Agents".
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

