Logo Mcp Connections

Mcp Connections

Tổ chức
vstorm-co
mcp-connections

Work with MCP servers — connect one, add an entry to the server catalog, debug "the agent cannot see my MCP tools" or a failing OAuth flow, or change how connections are probed, prefixed or filtered. Use when the ask involves an external SaaS tool (GitHub, Linear, Notion, Slack, Stripe, Postgres…) and before writing a capability that would just be an API client for one.

Add to TypingMind

Tổng quan

Nhà phát hànhvstorm-co
Kho mãagenticos
Tên kỹ năngmcp-connections
Sao
137
Bản fork
27
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được vstorm-co công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Mcp Connections trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/vstorm-co/agenticos/tree/main/.claude/skills/mcp-connections
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vstorm-co/agenticos.git /tmp/agenticos
mkdir -p .claude/skills
cp -r /tmp/agenticos/.claude/skills/mcp-connections .claude/skills/mcp-connections
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Mcp Connections trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Mcp Connections ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Mcp Connections với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

MCP connections

Read docs/mcp.md for the model and docs/howto/add-mcp-server.md for adding a catalog entry. Code: app/agents/mcp.py, app/agents/mcp_oauth.py, app/services/mcp_connection.py, app/services/mcp_catalog.py.

Reach for this before writing a capability

If the ask is "let the agent read our Linear issues", the answer is usually a connection, not code. A capability is right for something the platform must guarantee — a budget guard, a sandbox, retrieval that cites sources. MCP is right for the forty SaaS products a company happens to use.

Adding a catalog entry is one object in app/core/catalog/mcp_servers.json. No code. And nothing needs to be in the catalog for a URL to work — the Custom server entry introspects any reachable server.

Personal vs organization

Two kinds, differing in exactly two places and both are the point:

PersonalOrganization
Reached byIts owner, through a binding to each person's own accountAny agent whose spec names it
GateOwner onlymcp:manage
Credential sealed toThe memberThe organization
A spec may name itNo - a spec names the service (account: personal, catalog_key) and the owner's connection is found at run timeYes, account: organization, connection_id

A spec binds a service one of two ways (McpServerRef in app/agents/spec.py). OrgMcpServerRef is the organization's connection, answering for everybody. PersonalMcpServerRef names a catalog key: build_toolsets_for_agent looks up the sender's own connection by that key on every turn - the message's author, never the thread's - and where there is none (an API key, the widget, a schedule, an unlinked chat sender) reports the gap instead of skipping the server, and _with_personal_service_gaps in the runner tells the model what is missing and where the person connects it. A member's connection is never named by id: a published agent that reached different tools depending on who built it could not be reviewed.

A personal connection is sealed to the member rather than an organization because it has none, and its owner may belong to several: binding it to whichever was active would make the token unreadable the moment they switched.

The four behaviours that surprise people

A dead server is skipped, not raised. Each server gets a 3-second tools/list probe before the turn; failures log a warning and the turn proceeds without those tools. Pydantic AI enters every toolset when a run starts, so raising would let one expired token abort every agent that names the connection. The trade is real: a skipped server means the model answers without the tools. It is briefed, though: UnavailableUnreachableServer for a failed probe, and AnsweredRecently for a server that answered within two minutes and fails on connect, both through unreachable_briefing in app/agents/mcp.py. /test and last_status are how you find out.

Tools are prefixed with the connection name. github-work → github_work_*. Two servers exposing the same tool name make Pydantic AI raise on duplicates, which aborts the turn.

Two connections reducing to the same prefix are deduplicated, first one wins, with a warning naming the loser. Deployment-managed servers are ordered first.

An allowlist filters before prefixing, so it compares unprefixed names.

OAuth

Five steps in mcp_oauth.py: discover (RFC 9728 → RFC 8414) → dynamic client registration (RFC 7591) → consent URL (PKCE + state + RFC 8707 resource indicator) → exchange → refresh. Split across two HTTP requests because this is a web app, not a CLI.

A server with no registration endpoint (HubSpot) refuses at step two, and the only way past is a client the operator registered at the provider by hand. McpOAuthStart takes client_id / client_secret for that (#1620); the connect dialog collects them in McpOAuthClientFields, with the redirect URL the provider has to hold - {FRONTEND_URL}/api/me/mcp-connections/oauth/callback, exactly.

Every URL in that flow is SSRF-checked and pinned, not just the one somebody typed — discovery means the remote server picks most of the addresses we call. The flow's only client is mcp_oauth._client(), a PinnedAsyncClient (app/core/pinned_http.py): it checks each request's URL with sanitize.resolve_pinned_url and then dials that address, with the original host in Host and in TLS SNI. Nothing resolves the name twice, so there is no window to rebind (#860). Do not add a request path that builds a plain httpx.AsyncClient — _send takes a PinnedAsyncClient so that mistake does not type-check.

A refused hop crosses httpx out of the transport as a UrlRefusedError, and _send answers it with a fixed OAuthError sentence. Catch the narrow type, never ValueError: only the narrow one is a refusal written here, and every other ValueError reported as "this server pointed us at a blocked address" is a confident lie about whose fault a failure was (#861).

Behind HTTP_PROXY/HTTPS_PROXY the proxy does the connecting, so there the pinned address is what the proxy is asked to reach. Honoured deliberately — a proxy-only deployment would otherwise lose OAuth entirely, and the proxy is its own egress control. Do not "fix" that by naming a transport on the client: an explicit transport turns httpx's environment-proxy mounting off, which is how it was broken once already.

Two things the pin does not cover, and neither is an oversight. The consent URL is checked with validate_mcp_url and then handed to a browser that resolves it itself. The connection's own URL is checked at save and resolved again at run time — a point-in-time check (#840), bearable only because an operator typed it. A URL a model chose belongs in neither; it needs safe_download.

MCP_ALLOWED_HOSTS exempts a listed host from the address half of the check on a connection's own URL: _checked_url (save, update, the sign-in probe and the OAuth start) always passes honour_allowlist=True. The OAuth requests after it get mcp.trusted_hosts_for(server_url), which is every listed host when the connection's own host is listed and none otherwise. resolve_pinned_url still resolves and pins a trusted host and refuses loopback, link-local and metadata answers for it. The catalog audit stays strict. Never compute the trusted set from a URL a remote server named: that is how a public server would aim its token endpoint at a listed host.

An organization's OAuth connection is still the consenting person's grant at the provider. Revoking their access there breaks the organization's server.

MCP approvals

approval_required_tools covers capability tools; MCP tools are marked separately by ApprovalMarked and enforced by the same ApprovalGate. A binding's writes policy trusts only readOnlyHint: true; missing or false hints require approval. all also gates reads, and none waives the binding's gate. The platform server always enforces at least writes, with deliberate exceptions in HELD and UNGATED in services/platform_mcp/_tools.py.

Channel runs, including delegates and resumptions, enforce at least writes on all MCP bindings. Read-only calls no longer acquire an extra approval merely by running in a chat app for a linked member. Unlinked room participants still require approval for every MCP call, including organization reads. Personal connections resolve for each message's linked sender, never the publisher or a different participant.

Cost is the same story: what a server does on its own side is outside this platform's budget. Only model tokens are counted.

Routes

GET  /api/v1/me/mcp-connections            personal
GET  /api/v1/mcp-connections               organization  (mcp:manage)
POST /api/v1/mcp-connections/{id}/test     probe, list tools, persist last_status
POST /api/v1/mcp-connections/oauth/start   declared above /{id} — that route parses
                                           its segment as a UUID and would 422

PATCH with auth_token: "" clears a stored credential.

Test

frontend/e2e/mcp-servers.spec.ts covers the UI. For the backend, the interesting assertions are the refusals: a personal connection is not bindable by a spec, a connection from another organization is unreachable, and a prefix collision drops the second server rather than aborting the turn.

Câu hỏi thường gặp

Kỹ năng AI Mcp Connections làm được gì?

Work with MCP servers — connect one, add an entry to the server catalog, debug "the agent cannot see my MCP tools" or a failing OAuth flow, or change how connections are probed, prefixed or filtered. Use when the ask involves an external SaaS tool (GitHub, Linear, Notion, Slack, Stripe, Postgres…) and before writing a capability that would just be an API client for one.

Vì sao nên dùng Mcp Connections trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Mcp Connections là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Mcp Connections trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/vstorm-co/agenticos/tree/main/.claude/skills/mcp-connections. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Mcp Connections?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Mcp Connections với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Mcp Connections với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Mcp Connections có miễn phí không?

Có. Kỹ năng này được vstorm-co phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇