Tool-level rate limiting per role
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- redis, typescript
Direzione di ricerca
Start in packages/backend/src/mcp-server/mcp-endpoint.controller.ts, where planToolSet builds the handler each tool is registered with, and find the existing role tool whitelist model to see where a per-role, per-tool limit would be stored. The issue leaves the storage shape and the Redis versus in-process counting design open, so agree that with maintainers first. Done means an over-limit call returns a readable MCP error with the limit and retry time, and the in-process path documents that it is not shared across replicas.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
An MCP role can already be restricted to a set of tools. It cannot yet be restricted in how often it calls them, which matters most for the two cases where a runaway agent is expensive: metered upstream APIs, and database connectors.
Scope
- Per-role, per-tool limit (calls per minute / per hour), stored alongside the existing role tool whitelist.
- Enforced in the MCP tool handler, before the upstream call.
- Over-limit returns a proper MCP error the agent can read ("rate limit for this tool: N/min, retry in Xs"), not a generic failure.
- Counted in Redis when
REDIS_URLis set, in-process otherwise, and the in-process path must be honest about not being shared across replicas.
Where to look
packages/backend/src/mcp-server/mcp-endpoint.controller.ts—planToolSetbuilds the handler each tool is registered with.- The role/tool-whitelist model for where the limit belongs.
- Lingua principale
- TypeScript
- Stelle
- 856
- Fork
- 82
- Merge medio
- 8h 27m
- PR unite (30g)
- 104
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HelpCode-ai/anythingmcp
-
good first issue hacktoberfest
Difficoltà 2/5 Mezza giornata Idoneità per principianti 70/100
HelpCode-ai/anythingmcp#996 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue hacktoberfest
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
HelpCode-ai/anythingmcp#995 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue hacktoberfest help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
HelpCode-ai/anythingmcp#982 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue hacktoberfest
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
HelpCode-ai/anythingmcp#745 ·
I maintainer di solito rispondono entro 1 giorno
-
🐣 Good first issue: contribute a new MCP adapterForse di nuovo libera @7k777 l’ha presa 21 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement good first issue hacktoberfest help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
HelpCode-ai/anythingmcp#150 · 18 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di HelpCode-ai/anythingmcp