mcp-access
Skill này làm gì
Skill này giải thích cách quản lý ai có thể kết nối tới máy chủ GBrain. Skill bao gồm bảng điều khiển chủ sở hữu, các ứng dụng khách đã kết nối và cách liên kết một công cụ AI tương thích.
Khi nào nên dùng
- ✓Khi bạn muốn mở bảng điều khiển chủ sở hữu của máy chủ GBrain.
- ✓Khi bạn cần thêm hoặc gỡ một ứng dụng kết nối đến kho tri thức của mình.
- ✓Khi bạn muốn kết nối một công cụ AI với kho tri thức qua OAuth.
Liên kết skill
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/mcp-access/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giúp tôi xem những ứng dụng nào có thể kết nối tới máy chủ GBrain của tôi, và hướng dẫn tôi thêm một ứng dụng mới.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra endpoint và cấu hình bạn cung cấp, rồi đưa ra đúng các bước dành cho chủ sở hữu. Nếu thiếu quyền chủ sở hữu, nó sẽ nói rõ điều cần có thay vì thử quyền rộng hơn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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-linkreturns 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 carriesoauth_request, pass that ID throughlogin-link --oauth-request ID. The native client retains its PKCE verifier. - Inspect:
clientsincludes revoked registrations;client IDgives live metadata and revision. List failure is not an empty list. - Create: machine access uses
mcp grant NAME --harness IDwith a private handoff. Native OAuth usesmcp admin register NAME --redirect-uri URI; choose the actual callback and authentication method, not a guessed vendor default. - Setup:
setup ID --harness IDreads the actual client method. For a mixed registration, explicitly select--flow authorization-codeor--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-runpreviews 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, anddelete IDpreview 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
Câu hỏi thường gặp
Một kết nối thông thường có thể cấp quyền quản trị không?
Không. Token kết nối thông thường không cho phép đăng nhập bảng điều khiển hoặc quản lý ứng dụng khách. Cần thông tin xác thực chủ sở hữu cho việc đó.
Tôi cần gì để bắt đầu?
Quyền truy cập máy chủ và thông tin xác thực chủ sở hữu. Nếu không có, agent sẽ đưa cho bạn đúng lệnh để tự chạy.
Tôi có cần cái này để bắt đầu một kho tri thức trên máy tính riêng không?
Không. Skill này chỉ dành cho việc quản lý một máy chủ đã có, và không cần thiết lập cục bộ cho việc đó.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 31k
- Vị trí xếp hạng
- #9262
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
gbrain
31kCho phép agent của bạn tìm trong kho tri thức dùng chung của công ty các thông tin về con người, dự án và quyết định, và lưu ghi chú bền vững vào đó.
brain-ingest-gate
31kKiểm tra nội dung mới với kho tri thức hiện có trước khi thêm vào, để tránh trùng lặp và xác định các thực thể được nêu tên trước.
brain-link-discipline
31kĐảm bảo agent của bạn kèm một liên kết hoạt động đến mỗi trang kho tri thức mà nó báo cáo, trong cùng một tin nhắn, để bạn mở được ngay.
brain-ops
31kCung cấp cho agent của bạn thói quen cốt lõi cho kho tri thức: kiểm tra ngữ cảnh có sẵn trước, lưu ghi chú rõ ràng kèm nguồn và liên kết các trang liên quan.
Skill tương tự
mcporter
394kGiúp agent của bạn liệt kê, gọi và kiểm tra các máy chủ MCP cùng công cụ của chúng qua HTTP hoặc stdio, và quản lý cài đặt đăng nhập.
fastmcp
260kGiúp bạn xây dựng, kiểm thử và triển khai một máy chủ MCP bằng Python, cấp cho trợ lý AI quyền truy cập API, cơ sở dữ liệu hoặc file của bạn dưới dạng công cụ.
mcp-oauth-remote-gateway
260kHướng dẫn bạn đăng nhập OAuth cho máy chủ MCP từ xa khi Hermes chạy trên máy chủ, nơi đăng nhập bằng trình duyệt thông thường không thể truy cập được.