[Story] Let the model discover MCP resources
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- backend-api-design
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- TypeScript
- Étoiles
- 2k
- Forks
- 301
- Merge moyen
- 3 j 14 h
- PR mergées (30 j)
- 103
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Zoo-Code-Org/Zoo-Code
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Les mainteneurs répondent en général sous 3 jours
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsPeut-être pris @easonLiangWorldedtech l’a pris il y a 15 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Les mainteneurs répondent en général sous 3 jours
-
[BUG] search_files hides matching text on long linesPeut-être pris @DananjayaNadun l’a pris il y a 9 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de Zoo-Code-Org/Zoo-Code
Issues similaires
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
ci
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ClickHouse/clickhouse-js#1248 ·
Les mainteneurs répondent en général sous 1 jour
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltOuvertetechnik
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
AhmedNAgy25/analysor#25 ·
Les mainteneurs répondent en général sous 1 jour