Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
CORTEX_CANONICAL_URI, OAUTH_ISSUER, CORTEX_BACKENDS, CORTEX_TECHNICAL_TOKENค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
ใช้ได้ทั้ง Claude บนเว็บ แอปคอมพิวเตอร์ และมือถือ:
https://mcp.cortex-gateway.dev/mcpเปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"cortex-gateway": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"CORTEX_CANONICAL_URI",
"-e",
"OAUTH_ISSUER",
"-e",
"CORTEX_BACKENDS",
"-e",
"CORTEX_TECHNICAL_TOKEN",
"ghcr.io/wellknownmcp/cortex-gateway:v0.2.0"
],
"env": {
"CORTEX_CANONICAL_URI": "ใส่ค่าของคุณ",
"OAUTH_ISSUER": "ใส่ค่าของคุณ",
"CORTEX_BACKENDS": "ใส่ค่าของคุณ",
"CORTEX_TECHNICAL_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add --transport http cortex-gateway https://mcp.cortex-gateway.dev/mcpclaude mcp add cortex-gateway --env CORTEX_CANONICAL_URI='ใส่ค่าของคุณ' --env OAUTH_ISSUER='ใส่ค่าของคุณ' --env CORTEX_BACKENDS='ใส่ค่าของคุณ' --env CORTEX_TECHNICAL_TOKEN='ใส่ค่าของคุณ' -- docker run -i --rm -e CORTEX_CANONICAL_URI -e OAUTH_ISSUER -e CORTEX_BACKENDS -e CORTEX_TECHNICAL_TOKEN ghcr.io/wellknownmcp/cortex-gateway:v0.2.0เติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"cortex-gateway": {
"url": "https://mcp.cortex-gateway.dev/mcp"
}
}
}วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"cortex-gateway": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"CORTEX_CANONICAL_URI",
"-e",
"OAUTH_ISSUER",
"-e",
"CORTEX_BACKENDS",
"-e",
"CORTEX_TECHNICAL_TOKEN",
"ghcr.io/wellknownmcp/cortex-gateway:v0.2.0"
],
"env": {
"CORTEX_CANONICAL_URI": "ใส่ค่าของคุณ",
"OAUTH_ISSUER": "ใส่ค่าของคุณ",
"CORTEX_BACKENDS": "ใส่ค่าของคุณ",
"CORTEX_TECHNICAL_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"cortex-gateway": {
"type": "http",
"url": "https://mcp.cortex-gateway.dev/mcp"
}
}
}วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"cortex-gateway": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"CORTEX_CANONICAL_URI",
"-e",
"OAUTH_ISSUER",
"-e",
"CORTEX_BACKENDS",
"-e",
"CORTEX_TECHNICAL_TOKEN",
"ghcr.io/wellknownmcp/cortex-gateway:v0.2.0"
],
"env": {
"CORTEX_CANONICAL_URI": "ใส่ค่าของคุณ",
"OAUTH_ISSUER": "ใส่ค่าของคุณ",
"CORTEX_BACKENDS": "ใส่ค่าของคุณ",
"CORTEX_TECHNICAL_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ChatGPT ต่อได้เฉพาะ server ที่อยู่บนอินเทอร์เน็ต:
https://mcp.cortex-gateway.dev/mcpชื่อเมนูอาจต่างกันเล็กน้อยตามแพ็กเกจและรุ่นของแอป
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ยังไม่ได้อ่านรายการเครื่องมือของตัวนี้ เราตรวจ endpoint ทีละชุดวนไป
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub wellknownmcp ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้ตรวจ เราตรวจ endpoint ทีละชุดวนไป
ยังไม่ได้ตรวจ เราตรวจ endpoint ทีละชุดวนไป
ยังไม่ได้ตรวจ เราอ่านรายการเครื่องมือตอนตรวจ endpoint
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: CORTEX_CANONICAL_URI, OAUTH_ISSUER, CORTEX_BACKENDS, CORTEX_TECHNICAL_TOKEN
ได้ทั้งสองแบบ จะลงในเครื่องหรือต่อผ่านคลาวด์ก็ได้
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.0) เข้า registry 4 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT ที่เปิดโหมดนักพัฒนา
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Zoo MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
An MCP server that provides access to the Zoo API for various CAD operations and tools.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A federated MCP gateway: one spec-compliant, OAuth-protected MCP server in front of N plain-HTTP backends.
Your business apps stay ordinary web services. Each one exposes a single POST /api/cortex/backend endpoint (a ~120-line contract, no MCP library, no stdio). The gateway discovers their tools, merges them into one MCP catalog, enforces OAuth 2.1 + scopes, routes tools/call to the owning backend, and keeps a pseudonymized audit trail.
Built for one requirement: everyone in a company should be able to hand their own agent the keys — with exactly that person's rights, nothing more, nothing less. And when agents become autonomous assistants, the answer stays the same: the agent borrows the person's identity, the apps keep enforcing that person's rights. The gateway decides nothing, so there is nothing new to trust.
Put another way: zero-trust principles for AI agents — the missing link between your IAM (who your users are, what they may do) and the MCP ecosystem (how agents call tools). Not a full ZTNA product; the identity-and-access layer for agents.
A backend is a dedicated MCP reduced to its essence: a tool catalog plus tool invocation (and optional prompts/resources) over bare HTTP JSON-RPC — the transport and lifecycle machinery (initialize, sessions, SSE, version negotiation) lives once, in the gateway. Because the contract is a semantic subset of MCP, a native MCP server can also be federated through the built-in MCP→backend proxy adapter (docs/mcp-adapter.md).
[MCP agent: Claude Desktop / claude.ai Custom Connector / any MCP client]
│ HTTPS + OAuth 2.1 JWT (Bearer) ▼ [cortex-gateway] ←— thin gateway, no business logic │ HTTPS + the same JWT propagated (RFC 8707) ▼ [your backends] ←— domain owners, plain HTTP, own their ACLs
tools/list; the rest keeps working.report_missing_capability tickets when a tool is missing or insufficient — deduplicated, triaged, optionally pushed to a webhook when blocking.Company-wide agent surface. An organization runs N internal apps (CRM, quality docs, billing, analytics...). Each app adds the ~120-line backend endpoint; the gateway exposes them as ONE MCP connector protected by the company's SSO. Employees plug a single URL into Claude Desktop / claude.ai and get exactly the tools their token scopes allow, with a central audit trail. This is the setup the gateway was born in.
Product builder. You ship several products and want agents (yours or your customers') to operate them. Instead of maintaining one MCP server per product, every product implements the backend contract and the gateway is your single, versioned, OAuth-protected agent API. Adding a product to the agent surface is one env var.
Thematic hub / curated registry. Run a gateway as a *topic* endpoint — e.g. "all open-data tools for domain X" — that federates several providers behind one URL with one token. The scope model gives you per-provider opt-in, get_help/get_snapshot give agents self-describing discovery, and the audit trail tells you what is actually used. Providers either speak the (deliberately tiny) backend contract natively, or — for off-the-shelf MCP servers — get fronted by the built-in MCP→backend proxy adapter (docs/mcp-adapter.md).
Free / paid tool tiers. Scopes are entitlements. Let your authorization server grant mcp:yourapp:basic to free users and mcp:yourapp:pro to paying ones (your billing webhook updates the grant): the gateway then shows and allows each caller exactly the tools of their plan — no paywall logic in the gateway or the backends, tools just declare their scope. Revocation and downgrades propagate through the normal OAuth chain.
The built-in MCP→backend proxy adapter lets a bundle mix contract backends and off-the-shelf native MCP servers (Canva, Figma, ...): the adapter is an MCP client downstream (initialize, sessions, SSE framing) and a plain backend upstream, so the gateway core does not change. Per-user downstream OAuth is handled by a token vault (AES-256-GCM at rest) and a linking flow (RFC 9728 discovery, Dynamic Client Registration, PKCE): each user consents once per provider, then agents are identified on the whole bundle with a single Cortex token. See docs/mcp-adapter.md for a worked "design bundle" example (Canva + Figma + your own backend).
readOnlyHint / destructiveHint from the backend contract into tools/list, mark results with their origin, and confirm writes.subscriptions/listen for list-change notifications to stateless clients; backends are still called over the backend contract, unaffected by the client's protocol generation.client_credentials flow once your AS supports it.server/discover, no session, Mcp-Method / Mcp-Name headers validated against the body, cache hints) and 2025-11-25 / 2025-06-18 (Streamable HTTP: initialize, GET SSE for listChanged notifications, DELETE session termination) on the same endpoint, chosen per requestscopes_supported in discovery is derived live from the federated catalogtools/list_changed pushwhoami (aggregated identity across backends), find_tools, report_missing_capability, list_cortex_tickets, list_cortex_resources, read_cortex_resource, plus a self-describing cortex://architecture resource generated livegit clone https://github.com/wellknownmcp/cortex-gateway
cd cortex-gateway npm install
node examples/demo-backend/server.mjs &
cat > .env.local <<'EOF' OAUTH_ISSUER=https://auth.example.com CORTEX_BACKENDS=demo CORTEX_BACKEND_DEMO_URL=http://127.0.0.1:4820 CORTEX_TECHNICAL_TOKEN=demo-technical-token CORTEX_DEV_BYPASS_TOKEN=dev-secret CORTEX_DEV_BYPASS_SCOPES=mcp:demo:read EOF
npm run dev
curl -s http://localhost:3213/mcp \ -H 'Content-Type: application/json' \ -H 'X-Dev-Mode: dev-secret' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq '.result.tools[].name'
curl -s http://localhost:3213/mcp \ -H 'Content-Type: application/json' \ -H 'X-Dev-Mode: dev-secret' \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"demo_echo","arguments":{"message":"hello"}}}' | jq
In production you point OAUTH_ISSUER at your OAuth 2.1 authorization server (any server that issues RS256 JWTs with a JWKS endpoint and supports the scope claim), and MCP clients connect to https://your-host/mcp with a Bearer token whose aud is the gateway's canonical URI.
The gateway is a remote Streamable HTTP server, but some MCP clients — and the Docker inspection harnesses of directories like Glama — only speak the stdio transport. scripts/stdio-bridge.mjs bridges the two: it boots the production build against an ephemeral local OAuth issuer (the real JWT verification path, no bypass), mints itself a short-lived token, and relays newline-delimited JSON-RPC between stdin/stdout and POST /mcp.
npm run build
npm run start:stdio # stdio MCP server on stdin/stdout
Self-granted scopes come from BRIDGE_SCOPES (gateway builtins need none); the gateway port from BRIDGE_GATEWAY_PORT (default 3213). Design notes and the gotchas (stdout purity, protocol-version negotiation, session echo): https://cortex-gateway.dev/guides/expose-http-mcp-server-over-stdio/.
list_tools + your tools (docs/backend-contract.md, reference implementation in examples/demo-backend/). CORTEX_BACKENDS=demo,docs
CORTEX_BACKEND_DOCS_URL=http://127.0.0.1:4001
3. Done. The gateway discovers `docs_*` tools within 60s and pushes
tools/list_changed to connected clients.
ตัดมาแค่ช่วงต้น อ่านต่อใน repo