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

Ouverte
#23 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
72/100
Type d'issue
Documentation
Clarté
Clairement spécifiée
Activité
Active
Stack technique
javascript, macos, node.js

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
JavaScript
Étoiles
1
Forks
0
Merge moyen
1 j 21 h
PR mergées (30 j)
9

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Agent360dk/computerMCP

Toutes les issues de Agent360dk/computerMCP

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.