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

Abierto
#24 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
50/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
JavaScript
Estrellas
1
Forks
0
Merge medio
1 d 21 h
PR fusionados (30 d)
9

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Agent360dk/computerMCP

Todos los issues de Agent360dk/computerMCP

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.