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

未关闭
#24 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
50/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
JavaScript
星标
1
派生
0
平均合并
1 天 21 小时
30 天内合并 PR
9

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Agent360dk/computerMCP 的其他 Issue

查看 Agent360dk/computerMCP 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。