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

Đang mở
#24 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
50/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
backend-api-design

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
1
Fork
0
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Agent360dk/computerMCP

Tất cả issue của Agent360dk/computerMCP

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.