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

オープン
#24 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Agent360dk/computerMCP のほかの issue

Agent360dk/computerMCP の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。