GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Multi-account tool broker for AI agents — CLI and MCP.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"janusmcp": {
"command": "npx",
"args": [
"-y",
"@bayway/janusmcp"
]
}
}
}在终端中运行这条命令
claude mcp add janusmcp -- npx -y @bayway/janusmcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"janusmcp": {
"command": "npx",
"args": [
"-y",
"@bayway/janusmcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"janusmcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@bayway/janusmcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 bayway 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.6.2)于42天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
One credential broker. Every account. From the CLI or MCP. Multi-account tool access for AI agents, with credentials kept local.
One-click buttons require the npm package to be published. See RELEASING.md .
If you work with more than one company, you use the *same* MCP server (Supabase, GitHub, Slack…) with different identities — a different account, email and token per client. Today most LLM clients hold one account at a time per connector: to switch client you disconnect, reconnect, and redo the OAuth login. Every time.
The MCP protocol has no notion of "account": one session = one identity = one set of credentials. JanusMCP fills that gap.
JanusMCP is a local multi-account tool broker for AI agents. It can be used directly from the CLI or as an MCP server in front of the real upstream servers:
janusmcp tools / schema / call invoke tools on demand, with no bulk tool definitions loaded upfront. ┌─────────────────────────────┐ ┌─ Supabase (Client A)
LLM client ─MCP─▶│ JanusMCP broker │─▶ ├─ Supabase (Client B) (Claude/GPT/ │ active-account · vault · │ ├─ GitHub (Client A) Gemini/…) │ per-session scoping │ └─ … └─────────────────────────────┘
You drive it with three control tools that appear in any client: janus_list_accounts, janus_use_account, janus_whoami.
npm install -g @bayway/janusmcp
janusmcp tools janusmcp schema list_tables janusmcp call list_tables --args '{"schemas":["public"]}' --json --timeout 30s
The CLI discovers schemas only when needed, accepts JSON through --args or stdin, supports explicit accounts/profiles, and provides stable exit codes. See the CLI guide and copyable agent instructions.
npx @bayway/janusmcp serve
janusmcp install claude-desktop
Both modes share the same config, OS-keychain vault, OAuth tokens and persisted active account. Use janusmcp daemon start to keep upstream sessions warm across repeated CLI calls.
Once released, install via your favorite channel (all published automatically on each tag — see RELEASING.md):
npx @bayway/janusmcp serve # npm / MCP mode
brew install bayway/janusmcp/janusmcp # Homebrew (macOS/Linux) scoop install janusmcp # Windows docker run --rm -p 7332:7332 ghcr.io/bayway/janusmcp:latest
…or download a prebuilt binary from Releases.
git clone https://github.com/bayway/janusmcp
cd janusmcp/go make build # produces ./bin/janusmcp cp config.example.json config.json # edit with your accounts ./bin/janusmcp serve # stdio, for Claude Desktop/Code
Two Supabase clients, PATs kept in your OS keychain (never in the config):
./bin/janusmcp vault set supabase_client_a # paste the PAT
./bin/janusmcp vault set supabase_client_b
// config.json
{ "bindingMode": "session", "accounts": [ { "id": "client_a", "service": "supabase", "command": "npx", "args": ["-y", "@supabase/mcp-server-supabase@latest", "--read-only", "--project-ref=REF_A"], "env": { "SUPABASE_ACCESS_TOKEN": "vault:supabase_client_a" } }, { "id": "client_b", "service": "supabase", "command": "npx", "args": ["-y", "@supabase/mcp-server-supabase@latest", "--read-only", "--project-ref=REF_B"], "env": { "SUPABASE_ACCESS_TOKEN": "vault:supabase_client_b" } } ] }
Add it to Claude Desktop:
{ "mcpServers": { "janusmcp": {
"command": "/abs/path/janusmcp/go/bin/janusmcp", "args": ["serve"], "env": { "JANUS_CONFIG": "/abs/path/janusmcp/go/config.json" } } } }
For ChatGPT / Gemini / Cursor / Copilot, run HTTP and point them at the URL:
JANUS_TRANSPORT=http JANUS_HTTP_PORT=7332 ./bin/janusmcp serve
Run janusmcp help for the full reference. The essentials:
| Command | What it does | |||
|---|---|---|---|---|
janusmcp serve | Run the broker (default). Transports via env: `JANUS_TRANSPORT=stdio\ | http\ | both, JANUS_HTTP_HOST, JANUS_HTTP_PORT`. | |
janusmcp tools [selector] | Compact tool list for the active (or given) account/profile. --json for full definitions; optional --timeout. | |||
janusmcp schema | Full JSON definition of one tool. --account disambiguates; optional --timeout. | |||
janusmcp call | Invoke a tool. Supports --account, --args, stdin, stable --json, and optional --timeout. | |||
janusmcp use | Persist the active selector for future CLI commands and new MCP sessions. | |||
| `janusmcp daemon start\ | stop\ | restart\ | status` | Manage the optional loopback-only daemon that reuses upstream sessions. |
janusmcp ui | Open the local control panel — add accounts, log in, set secrets. | |||
janusmcp add [id] | Add an account from a template (janusmcp catalog lists them). | |||
janusmcp catalog | List the built-in account templates. | |||
janusmcp connect | Connect an account; for remote OAuth, opens the browser. | |||
janusmcp status | Show each account's login/secret status (no secret values). | |||
janusmcp vault set / delete | Store / remove a secret in the OS keychain. | |||
janusmcp login | OAuth loopback login; token referenced as oauth: . | |||
janusmcp providers | List built-in OAuth providers. | |||
janusmcp install | Configure an LLM client to launch JanusMCP. | |||
janusmcp uninstall | Remove JanusMCP from an LLM client's config. | |||
janusmcp version · janusmcp help | Version · this reference. |
Supported values for install / uninstall: claude-desktop, claude-code, cursor, vscode, gemini, codex, chatgpt, print. Run janusmcp install list (or uninstall list) to see each target and whether it's already configured.
janusmcp install claude-desktop # one-command setup
janusmcp uninstall claude-desktop # clean removal (restart the client afterwards)
Inside any connected client you also get the control tools janus_list_accounts, janus_use_account, janus_whoami, janus_login, janus_use_profile, and janus_with_account.
A profile groups accounts of the same client across different services. Activating it exposes the tools of *all* its accounts together, and each call is routed to the right upstream:
// config.json
{ "accounts": [ { "id": "supabase_a", "service": "supabase", "transport": "http", "url": "https://mcp.supabase.com/mcp", "auth": "oauth" }, { "id": "github_a", "service": "github", "transport": "http", "url": "https://api.githubcopilot.com/mcp/", "auth": "oauth" } ], "profiles": { "client_a": ["supabase_a", "github_a"] } }
Then in chat: janus_use_profile with { "profile": "client_a" } → Supabase and GitHub tools for Client A are available simultaneously. Colliding tool names across accounts are namespaced ( _ ).
janus_with_account runs a single call on another account without changing the active one — e.g. { "account_id": "client_b", "tool": "list_tables" }. Omit tool to list that account's available tools first.
Loading every MCP tool definition into an LLM context is expensive. In code-execution mode an agent (or you) invokes tools on demand from the shell instead — à la "code execution with MCP" — so the context holds only the results it actually asked for:
janusmcp tools # compact list for the active account/profile
janusmcp tools client_a # ...or any account/profile explicitly janusmcp schema list_tables # full input schema of ONE tool, only when needed janusmcp call list_tables --args '{"schemas":["public"]}' janusmcp call ping --account azienda_b # cross-account without switching echo '{"sql":"select 1"}' | janusmcp call db_query # JSON args via stdin too janusmcp call ping --json --timeout 30s # stable envelope for agents
call prints the tool's text content to stdout and exits non-zero on a tool error, so it composes with pipes and scripts. Selectors resolve exactly like in the broker: the persisted active account by default, or any account id / profile name; a name that collides across a profile's accounts must be disambiguated with --account. Secrets resolve through the same vault/OAuth stack as serve — nothing extra to configure.
This makes JanusMCP a first-class citizen for CLI-driven agents (Claude Code, Codex, Cursor agents, or any agent with shell access): instead of registering it as an MCP server, just tell the agent that janusmcp tools / schema / call exist. Discovery, schemas and invocation happen on demand, credentials stay in the keychain, and multi-account switching works the same as over MCP. Both modes share the config and the persisted active account, so you can mix them freely.
For repeated calls, janusmcp daemon start launches an authenticated loopback-only broker. tools, schema, and call auto-detect it and reuse its upstream sessions; --direct bypasses it and --daemon requires it. Set JANUS_DAEMON=auto|require|off to choose a default policy.
| Multi-account, one endpoint | N identities for the same service, no reconnecting | ||
| Identity scoping | per-call → per-session → global, via `bindingMode: global \ | session \ | locked. Session scope needs a real connection: stdio and legacy HTTP have one; MCP 2026-07-28 removed sessions, so there it is per-call (janus_with_account`) or global |
| **Dual transport*
只显示了开头部分;其余内容请在仓库中阅读