[Story] Let the model discover MCP resources
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend-api-design
Direzione di ricerca
Start by reading McpHub and the native tool implementations for access_mcp_resource, then trace how allowed and disabled MCP servers are handled. Add list_mcp_resources with the specified paging, query ranking, and metadata fields, and update resource discovery to follow cursors with a page limit. Done means the acceptance criteria pass, including template-only servers and stable offsets.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Zoo Code gets resource and resource template lists from each MCP server. The model does not see them. The model has access_mcp_resource, but it has no source of URIs. A server with many resources (for example, 305) is thus difficult to use.
Part of #584. Starts after #578 merges (#2323). Does not depend on #579.
Related designs: the MCP resources spec leaves this decision to the host application. Codex and Claude Code give the model a tool that lists resources.
Developer Notes
- Add a native tool
list_mcp_resourceswith these optional parameters:query,server_name,offset. - Return a maximum of 20 entries, the total count, and the next offset.
- For each entry, return
server_name,urioruriTemplate,name, and a shortened description. - With
query, rank the entries withBm25Ranker. Include the URI in the ranked text. - If
querymatches nothing, return the first page and say that nothing matched. - Without
query, return the entries in a stable order. - Apply the
allowedMcpServerslist of the mode. Exclude disabled servers. - Offer this tool and
access_mcp_resourcewhen an allowed server has a resource or a template. Today, a server with only templates enables neither. - Follow
nextCursorforresources/listandresources/templates/list. Today,McpHubreads only the first page. Set a page limit. Log a warning at the limit. - Do not put resource entries in the system prompt or the tool definitions.
- Listing needs no approval, because it returns only cached metadata. Reading still needs approval.
Acceptance Criteria
- With 305 resources, one call returns a maximum of 20 entries and the total count.
- A query returns the matching resource, and
access_mcp_resourcecan read its URI. - A query with no match returns the first page.
- The offsets reach each entry exactly one time.
- A server with only templates enables both tools.
- Disallowed servers and disabled servers do not appear.
- A server response with two pages gives all entries.
- The size of the tool definitions does not change with the resource count.
Out of Scope
@mentions for resourcesresources/subscribeandlist_changednotifications- Embeddings ranking
- Filtering by annotations
- Pagination for
tools/list
- Lingua principale
- TypeScript
- Stelle
- 2k
- Fork
- 301
- Merge medio
- 3g 14h
- PR unite (30g)
- 103
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
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 Zoo-Code-Org/Zoo-Code
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
I maintainer di solito rispondono entro 3 giorni
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsForse già presa @easonLiangWorldedtech l’ha presa 15 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
I maintainer di solito rispondono entro 3 giorni
-
[BUG] search_files hides matching text on long linesForse già presa @DananjayaNadun l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di Zoo-Code-Org/Zoo-Code
Issue simili
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
EPPIcenter/sampledb3#162 ·
-
Particle-1 modelAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
tashfeenahmed/freellmapi#2169 ·
I maintainer di solito rispondono entro 1 giorno
-
via-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
🎙️ task - feat(mechanic): pave git.pull.close, a close of a superseded pull with its why on recordAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ehmpathy/rhachet-roles-ehmpathy#1576 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
vercel-labs/ui#1563 ·
I maintainer di solito rispondono entro 1 giorno