mcp-control-plane-integrate
Skill0 starsChanged 24 days agoMITView on GitHub
Integrates a hosted or trusted service with MCP control-plane auth, entitlements, and usage consume. Use when wiring quotas, API keys, billable operations, or adding a product ID to the control plane.
Files
Integrate with Control Plane
Prerequisites
- Control plane running (
ADMIN_TOKEN≥32 chars, SQLite path, bind127.0.0.1locally) - Product ID already in
productsinsrc/store.js(or add it + tests + README in the same change)
Note: mcp-security-guard paid Team/threat-feed today uses mcp-security-cloud (cloud.ts / team.ts), not this consume API. Use this skill for family-wide quota backends or a deliberate future unification — do not redirect security-guard cloud traffic here by accident.
Admin bootstrap
POST /v1/admin/accounts
Authorization: Bearer <ADMIN_TOKEN>
{ "accountId": "customer-1" }
POST /v1/admin/keys
{ "accountId": "customer-1" }
→ { "key": "mcp_…", "keyId": "<sha256>" } # raw key shown once
PUT /v1/admin/plan
{ "accountId": "customer-1", "plan": "paid" } # admin only — not payment proofCustomer billable path
GET /v1/entitlements
Authorization: Bearer mcp_…
POST /v1/usage/consume
{ "product": "api-guardian", "requestId": "scan-123", "units": 1 }| Status | Meaning | Action |
| 200 | allowed (or duplicate same units) | Proceed |
| 429 | over quota | Do not run billable work |
| 409 | requestId reused with different units | New requestId or fix units |
| 401 | bad/revoked key | Fail closed |
Checklist when adding a product ID
- Append ID to
productsinstore.js - Extend tests for consume/entitlements
- Update control-plane README product list
- Document consume call site in the hosted service (not in bypassable local MVP unless hosted)
Do not
- Send report bodies, source, or DB credentials to control-plane
- Implement refunds/Stripe in ad-hoc form without webhook verification
- Share SQLite over NFS or expose admin routes publicly
In this repository6 other files it gives its agents.
- .cursor/rules/mcp-family.mdcCursor rule
- .cursor/rules/mcp-privacy-security.mdcCursor rule
- .cursor/rules/mcp-tool-server.mdcCursor rule
- mcp-add-toolSkill
- mcp-family-architectureSkill
- mcp-ship-checklistSkill
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.

