examples/: runnable examples - chat prompts, a 50-line agent of your own, and a zero-risk read-only demo

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

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
72/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, macos, node.js

调研方向

Read the main README sections on Tools, Modes, and Without taking over your screen, then inspect mcp-server/tools.js and docs/use-cases/ to confirm the available tools and safe examples. Add one self-contained example under examples/ and list it in examples/README.md; link the examples from the main README. For the Node example, run it on macOS with permissions granted and document the expected output; done means the example follows the acceptance criteria.

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

描述

documentation good first issue

Why

The best way to get people building on computer-mcp is to show what it can do, end to end, in a form they can copy. The README explains the gates well, but there is no folder of runnable examples - neither prompts for chat clients nor code for people writing their own agent.

What to do

Add an examples/ folder with a few small, self-contained examples. Each one is a short README plus whatever it needs:

  1. Prompts for chat clients - tasks that show the background mode, for example: "fill in this form in the window behind me", "rename the screenshots on my Desktop in Finder", "draft a reply in Mail and wait for my yes". Say what the agent should do, which tools it ends up using, and what the person sees (box, icon, questions).
  2. Your own agent, in code - a minimal Node script using the client side of @modelcontextprotocol/sdk that starts npx -y @agent360/computer-mcp over stdio, lists the tools and calls computer_permissions and computer_screenshot. About 50 lines, so anyone can start from it.
  3. A read-only example with CMCP_MODE=readonly, for people who want to try it with zero risk.

Acceptance criteria

  • examples/README.md lists every example with one line each.
  • The code example runs with node on a Mac with the permissions granted, and its README says what output to expect.
  • Linked from the main README.
  • No example asks for anything the gates would refuse (password managers, etc.) - or if it does, it shows the refusal on purpose.

Pointers

README.md (Tools, Modes, Without taking over your screen), mcp-server/tools.js (tool definitions and descriptions), docs/use-cases/.

Good first issue: pick one example and send it on its own - several small PRs are better than one big one. If you have built something cool with computer-mcp, an example of it is very welcome too.

主要语言
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 摘要。