whoami
Who am I
Return the identity behind the configured GHE_TOKEN (login, type, and whether it is a user or an app). Use this first to confirm the token and base URL are wired correctly before anything else.
无需输入参数。

io.github.dockndevai由 GitHub 账号 dockndevai 发布v0.1.1更新于 Nov 7, 2026
Govern GitHub Enterprise orgs, repos, rulesets, security alerts & Actions for AI agents.
默认只读的 MCP 服务器,让 AI 助手管理 GitHub Enterprise(Cloud 与 Server)的组织、仓库、规则集、安全告警与 Actions。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
A safe-by-default Model Context Protocol server for administering GitHub Enterprise (Cloud & Server) from an AI agent — organizations, members, teams, repositories, rulesets, security alerts, and Actions — with a built-in security-posture baseline and governance controls so an agent can help run your enterprise without being able to wreck it.
Part of the dockndevai suite of governed infrastructure MCP servers. Read-only by default · org-scoped · audited · human-confirmed.
Handing an agent an admin token to GitHub is risky: one loose instruction can delete a repo, remove a member, or flip an org public. This server puts the agent behind the same controls you'd give a junior admin:
Plus the part that makes it useful, not just safe: it ships an opinionated security baseline — assess_org_posture scores a live org and harden_org_settings applies the fix — and two operator skills (secure setup + Actions optimization).
Add to Claude Code:
GitHub Enterprise Server: add -e GHE_API_URL="https://HOST/api/v3". Full client configs (Cursor, Windsurf, Codex, VS Code, Claude Desktop) in docs/CLIENTS.md.
First call to run: whoami — confirms the token and base URL are wired correctly.
See .env.example for the complete list.
Registered only up to the active mode: 23 in read-only, 32 in read-write, 38 in admin.
whoami · get_rate_limit · list_organizations · get_organization · list_members · list_teams · list_security_managers · list_repositories · get_repository · get_branch_protection · list_org_rulesets · list_webhooks · get_actions_permissions · list_self_hosted_runners · list_runner_groups · get_actions_cache_usage · list_workflows · list_secret_scanning_alerts · list_code_scanning_alerts · list_dependabot_alerts · get_audit_log · assess_org_posture · recommend_enterprise_setup
read-write+)harden_org_settings · update_org_settings · set_actions_permissions · create_team · set_member_role · create_org_ruleset · protect_branch · update_repo_security · create_webhook
admin, destructive ones also need GHE_ALLOW_DELETE)create_repository · delete_repository · remove_member · delete_team · delete_org_ruleset · delete_webhook
assess_org_posture { org } scores an organization against a built-in baseline and returns per-control findings with a grade:
Then harden_org_settings { org } applies the baseline (base read permission, secret scanning + push protection, Dependabot defaults, no public-repo creation, no private forks, commit sign-off) — preview-able with GHE_DRY_RUN=true. recommend_enterprise_setup returns the full enterprise → org → repo setup template.
2FA is reported by the assessor but must be enforced in the org/enterprise authentication UI — GitHub does not expose it as a REST toggle.
Two bundled Agent Skills in .claude/skills:
github-enterprise-admin — the operator playbook: least-privilege token setup, the secure-setup template, the org-policy baseline, and the guardrails for destructive work.github-actions-optimization — pipeline optimization strategy, a caching strategy (dependencies, Docker layers, cache limits), and self-hosted runners on Kubernetes with actions-runner-controller (ARC): GitHub App/PAT connection, autoscaling, caching across ephemeral pods, and runner isolation.A third, mcp-suite-maintenance, documents how to safely extend this server.
Architecture (shared across the suite): config.ts (env → typed config) · security.ts (pure policy engine, unit-tested) · github/client.ts (REST wrapper) · baseline.ts (pure posture assessor) · tools/{read,write,admin}.ts (capability-tagged). See SECURITY.md and PUBLISHING.md.
MIT © dockndevai
来源:README.md,提交 89ab430
Who am I
Return the identity behind the configured GHE_TOKEN (login, type, and whether it is a user or an app). Use this first to confirm the token and base URL are wired correctly before anything else.
无需输入参数。
Get API rate limit
Report the current REST API rate-limit budget (core, search, graphql) and reset times. Use to pace bulk reads.
无需输入参数。
List organizations
List the organizations the token can see (filtered by GHE_ORG_ALLOWLIST), each flagged if it is protected (readable but never mutated). Start here to discover valid org logins.
无需输入参数。
Get organization
Fetch an organization's full profile and security-relevant settings (2FA, base permission, secret scanning & Dependabot defaults).
org必填List organization members
List an organization's members, optionally filtered by role (admin = owners, member = everyone else).
org必填roleList teams
List an organization's teams with their slugs, privacy, and permissions. Use a team slug with the team tools.
org必填List security managers
List the teams granted the organization's security-manager role (least-privilege security triage).
org必填List repositories
List an organization's repositories (name, visibility, default branch, archived), optionally filtered by type.
org必填typeGet repository
Fetch a single repository including its security_and_analysis settings (secret scanning, push protection, advanced security).
org必填repo必填Get branch protection
Fetch the protection settings for a branch (required reviews, status checks, signatures, force-push rules).
org必填repo必填branch必填List organization rulesets
List the organization's rulesets (the modern, org-wide replacement for per-repo branch protection).
org必填List organization webhooks
List the organization's webhooks and their events. Webhook secrets are redacted and never returned.
org必填Get Actions permissions
Fetch the organization's GitHub Actions policy (which repos may run Actions, and which actions are allowed).
org必填List self-hosted runners
List the organization's self-hosted Actions runners (name, status, labels, busy). Use with runner groups to audit where CI executes — e.g. Kubernetes runners managed by actions-runner-controller.
org必填List runner groups
List the organization's self-hosted runner groups and which repositories may use them (runner isolation).
org必填Get Actions cache usage
Report GitHub Actions cache usage — org-wide, or for one repository. Use to spot caches near the 10 GB/repo limit and to size a caching strategy for faster pipelines.
org必填repoList workflows
List the Actions workflows defined in a repository (name, path, state). Starting point for pipeline optimization.
org必填repo必填List secret-scanning alerts
List the organization's secret-scanning alerts (type, state, repo, location). The matched secret value itself is dropped and never returned.
org必填stateList code-scanning alerts
List the organization's code-scanning (CodeQL/SARIF) alerts with rule, severity, state, and location.
org必填stateList Dependabot alerts
List the organization's Dependabot (vulnerable dependency) alerts with package, severity, state, and the fixing version.
org必填stateGet audit log
Fetch recent audit-log events for the organization (or the enterprise, when GHE_ENTERPRISE is set), optionally filtered by a search phrase like 'action:repo.destroy' or 'actor:octocat'.
org必填scopephraseperPageAssess org security posture
Score an organization against the built-in security baseline (2FA, base permission, secret scanning + push protection, Dependabot, Actions policy). Returns per-control findings (pass/fail/unknown with severity and the exact remediation tool) plus a summary grade. Read-only — it changes nothing; apply fixes with harden_org_settings.
org必填Recommend enterprise setup
Return the staged secure-setup template for a GitHub Enterprise — enterprise, organization, and repository level controls with the rationale for each, plus the exact org-settings baseline that harden_org_settings applies. Pure guidance; use assess_org_posture to measure a specific org against it.
无需输入参数。
已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
# Read-only, against GitHub Enterprise CloudGHE_TOKEN=your-token GHE_MODE=read-only npx -y @dockndevai/mcp-github-enterpriseclaude mcp add github-enterprise -e GHE_TOKEN="your-token" -e GHE_MODE="read-only" -- npx -y @dockndevai/mcp-github-enterprise{ "org": "acme", "summary": { "score": 60, "grade": "C", "passed": 6, "failed": 4, "high_failures": 2 }, "findings": [ { "id": "push-protection", "severity": "high", "status": "fail", "current": false, "recommended": true, "rationale": "Blocks secrets at push time — the only control that prevents the leak…", "remediation": "harden_org_settings, or update_org_settings { secret_scanning_push_protection_enabled_for_new_repositories: true }." } ]}npm installnpm run typecheck && npm test && npm run buildnpm run dev # watch mode