跳到正文
Skillpedia
连接器(MCP)31k · #9262

mcp-access

它能做什么

这项技能说明如何管理谁可以连接 GBrain 服务器。内容包括所有者仪表板、已连接的客户端应用,以及如何通过 OAuth 连接兼容的 AI 工具。

适用场景

  • ✓当你想打开 GBrain 服务器的所有者仪表板时。
  • ✓当你需要添加或移除连接到你知识库的应用时。
  • ✓当你想通过 OAuth 把 AI 工具连接到你的知识库时。

技能链接

https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/mcp-access/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/mcp-access/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我查看哪些应用可以连接我的 GBrain 服务器,并一步步指导我添加一个新应用。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查你提供的端点和配置,然后给出所有者需要执行的确切步骤。如果缺少所有者权限,它会告诉你需要什么,而不是尝试获取更宽泛的权限。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

MCP access and administration

Use MCP administration for the exact commands and recovery table, hosted setup for client installation, and deployment for the running service. If this skill is loaded remotely without those files, use https://raw.githubusercontent.com/garrytan/gbrain/master/docs/mcp/ADMIN.md. No local brain initialization or personal-agent bootstrap is required to administer an existing server.

Contract

Inspect the user's supplied endpoint and available configuration. A hosting harness may administer its own server only when it has that server's owner credential. A remote administrator needs the same separately supplied authority. An ordinary MCP OAuth token, client secret, admin scope, or full tool surface does not authorize dashboard login or client management.

Use gbrain://capabilities for effective MCP access and administration guidance when available. Its admin URL is orientation, not a login. Without owner authority, provide the exact owner-side command and prerequisite instead of trying successively broader OAuth scopes. Name the server-hosting or authorized administrator harness in the handoff, rather than asking an arbitrary agent.

Owner actions

Commands run against the existing server with gbrain mcp admin … --url URL. Use --admin-token-file PRIVATE_FILE, or the protected GBRAIN_ADMIN_BOOTSTRAP_TOKEN environment variable. Do not print their values. This HTTP path uses the live database connection; do not open a second PGLite process, delete its lock, or start another server to obtain administration.

  • Login: login-link returns a sensitive, single-use URL for private delivery to the requesting owner. Explain in the handoff that the plain /admin/ URL requires an authenticated owner session; the owner signs in by opening the returned login link. Do not GET/fetch/open it for verification. If the pending OAuth browser URL carries oauth_request, pass that ID through login-link --oauth-request ID. The native client retains its PKCE verifier.
  • Inspect: clients includes revoked registrations; client ID gives live metadata and revision. List failure is not an empty list.
  • Create: machine access uses mcp grant NAME --harness ID with a private handoff. Native OAuth uses mcp admin register NAME --redirect-uri URI; choose the actual callback and authentication method, not a guessed vendor default.
  • Setup: setup ID --harness ID reads the actual client method. For a mixed registration, explicitly select --flow authorization-code or --flow client-credentials. Ordinary output contains no secret; confidential delivery/recovery requires --credentials-out PRIVATE_FILE.
  • Permissions: mcp grant NAME --client ID --if-version N --dry-run previews before/after. Omitted restrictions remain unchanged. Repeat without dry-run when the reviewed action is within the user's authorization. In the receipt, explain both consequences: removed authority applies immediately; expanded scopes require fresh native authorization or a newly issued machine token. Refresh cannot expand the original scope grant.
  • End access: invalidate-tokens ID, revoke ID, and delete ID preview consequences by default; apply an authorized reviewed action with --yes --if-version N. Explain that invalidation removes access/refresh tokens and authorization codes and invalidates pending approvals; it retains the active client and secret, so machine credentials can obtain new tokens. Revocation disables access; deletion removes its registration while audit history remains. Never substitute one for another silently.

A failed transport after a mutation was sent can mean unknown outcome. Inspect the existing client before retrying. Recover a committed secret delivery instead of creating a duplicate. Journal recovery is preferred to secret rotation. The legacy local agent register --reissue path has specific limits; consult ADMIN.md rather than inventing a remote rotation command. When handing recovered native setup back to a client, include both remaining connection steps: the native client starts PKCE authorization and the owner reviews and approves consent. Secret recovery alone establishes neither st

常见问题

普通连接能获得管理员权限吗?

不能。普通连接令牌无法登录仪表板或管理客户端。这些操作需要所有者凭据。

开始之前我需要什么?

服务器的访问权限和所有者凭据。没有这些,智能体会给你需要自己运行的确切命令。

要在自己的电脑上搭建知识库,也需要这个吗?

不需要。这项技能只用于管理现有的服务器,本地不需要任何设置。

详情

作者的原始描述

Open the GBrain owner dashboard, manage MCP clients and permissions, or connect a native OAuth harness. Distinguishes owner administration from ordinary MCP access.

repo: garrytan/gbrain

热度

GitHub 星标
31k
排名
#9262
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能