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

Đang mở
#23 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, macos, node.js
Lĩnh vực
devtools, documentation

Hướng nghiên cứu

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.

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

Mô tả

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.

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.