Serve recipes as MCP resources, so every agent reads the right recipe before it drives an app

Ouverte
#24 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
50/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
javascript

Piste de recherche

Start with mcp-server/index.js to see how the server registers capabilities and handles requests, then check mcp-server/package.json and the existing tests in test/server-e2e.mjs and test/pakke-filer.mjs. The issue proposes serving recipe Markdown through MCP resources and including recipes in the package; prompts and bundle ID routing are optional. Done means the required resource operations and package contents pass tests, a compatible client is documented in the PR, and the README explains how contributed recipes reach agents.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

enhancement help wanted

Why

The knowledge about how to drive specific apps - recipes/ and what agents write with computer_learning - is currently only useful to someone who reads the repo. The agent doing the work never sees it. MCP has a mechanism for exactly this: resources. If the server offered the recipes as resources, an agent about to drive Slack or Finder could read the right recipe first, and every recipe a contributor writes would make every user's agent better, automatically.

How it works today

  • mcp-server/index.js declares only { capabilities: { tools: { listChanged: true } } } and handles ListToolsRequestSchema / CallToolRequestSchema. No resources or prompts.
  • recipes/ is not part of the npm package (files in mcp-server/package.json).
  • The server instructions (VEJLEDNING in index.js) already tell the agent to write down working routes with computer_learning.

Proposed approach

  1. Ship recipes/*.md in the package and declare the resources capability.
  2. resources/list returns one resource per recipe (computermcp://recipes/electron-apps, ...) with a description naming the apps it covers; resources/read returns the markdown.
  3. Optional: a front-matter line in each recipe listing bundle IDs, so the server can point to the right recipe in a tool reply when the agent targets that app (resolveBundleId in helper.js already resolves names to bundle IDs).
  4. Optional, larger: MCP prompts for common tasks.

Things to keep in mind: resources are read-only and contain only what is in the repo - no user data and no log contents. Clients differ in how they surface resources; please note which you tested.

Acceptance criteria

  • resources/list and resources/read work, with a test in test/ (like test/server-e2e.mjs).
  • The tarball includes the recipes (test/pakke-filer.mjs checks package contents).
  • Tested in at least one client that supports resources, noted in the PR.
  • README explains how a contributed recipe reaches every agent.

Pointers

mcp-server/index.js (server setup, VEJLEDNING), mcp-server/package.json (files), recipes/, mcp-server/helper.js (resolveBundleId), test/server-e2e.mjs, test/pakke-filer.mjs.

This turns every recipe into something every agent can use, which is exactly the kind of compounding we want. A bigger piece of work - comment here to talk through the design first, and we will review quickly.

Langage dominant
JavaScript
Étoiles
1
Forks
0
Merge moyen
1 j 21 h
PR mergées (30 j)
9

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Agent360dk/computerMCP

Toutes les issues de Agent360dk/computerMCP

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.