`computer-mcp doctor`: one command that says what is installed, granted and missing

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, macos, node.js

調査の方向性

Start with mcp-server/bin/cli.js to see how arguments reach the current server entry point, then read the existing helpers in mcp-server/helper.js, mcp-server/audit.js, and mcp-server/tilstede.js. Use .github/diagnose.sh and .github/ISSUE_TEMPLATE/bug.yml as references, and check the tests in test/ for the project's conventions. Done means doctor reports the requested checks in text and JSON, handles failures with guidance, preserves the no-argument server behavior, and its test confirms log contents are absent.

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue

Why

When something does not work, the first question is always the same: which Node version, is the helper there, are the permissions granted, and to which app, is the icon running, can the log be written? Today you have to ask an agent to call computer_permissions, or run .github/diagnose.sh from a clone. A single command anyone can paste into a bug report would make issues much faster to solve.

How it works today

  • mcp-server/bin/cli.js only does import '../index.js' - there are no subcommands.
  • The pieces already exist: helperPath() and callHelper(['permissions']) in mcp-server/helper.js, AUDIT_PATH / kaedenHolder / loggenKanSkrives in mcp-server/audit.js, ikonTilstand() in mcp-server/tilstede.js, and the version in package.json.
  • .github/diagnose.sh covers part of it, but only for people who cloned the repo.

Proposed approach

Add npx -y @agent360/computer-mcp doctor, which prints, without starting the MCP server:

  • computer-mcp version, Node version, macOS version, architecture
  • helper path and whether it runs
  • Accessibility and Screen Recording: granted / missing
  • menu bar icon: running / not running / version
  • state directory and audit log: writable, and whether the hash chain holds
  • current CMCP_MODE and CMCP_BACKGROUND

Plain text by default, --json for machines. It must not print anything secret (no log contents, only counts and paths).

Acceptance criteria

  • doctor exits 0 when everything is fine and non-zero when something is missing, with a line saying what to do.
  • Running with no arguments still starts the MCP server exactly as today (the MCP clients depend on it).
  • A test in test/ checks the argument handling and that the output contains no log contents.
  • The bug template (.github/ISSUE_TEMPLATE/bug.yml) asks for the doctor output.

Pointers

mcp-server/bin/cli.js, mcp-server/helper.js, mcp-server/audit.js, mcp-server/tilstede.js, .github/diagnose.sh, .github/ISSUE_TEMPLATE/bug.yml.

A nice first contribution: small, self-contained, and it will help everyone who files a bug after you. Comment here if you want it.

主要言語
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 を短くまとめたダイジェスト。