Tier 1 — first-class clients
These clients ship MCP support out of the box. Pick the matching tab and follow the snippet — no extra packages, no local server, no JSON hand-editing.- Claude Code
- Claude Desktop
- Claude.ai
- Cursor
- VS Code
Run once from a terminal:That’s it.
claude mcp list should now show closient and the tools
become available to any Claude Code session in this workspace.To remove later: claude mcp remove closient.Tier 2 — Windsurf
Windsurf reads amcp_config.json file in the project root (or the
global ~/.codeium/windsurf/mcp_config.json). Add:
Tier 3 — generic JSON config
Any MCP-compatible client (Cline, Zed, Trae, Continue, custom agents built on the MCP Python or TypeScript SDKs, etc.) can connect with the generic Streamable HTTP entry below. Paste it into whatever configuration format the client uses for MCP servers.What you get
Once installed, the client discovers the following tools (no auth required for discovery):
Full input/output schemas and examples are in the
Tool Reference.
Authentication
The first eight tools above work immediately — no token, no setup.generate_qr_url requires an OAuth 2.1 bearer token with the
qr:generate scope. When you (or your agent) call it without a
token, Closient returns 403 Forbidden with a WWW-Authenticate
header that tells the MCP client where to start the OAuth flow. Most
first-class MCP hosts (Claude Desktop, Cursor, VS Code) handle the
prompt-and-retry transparently — see
Authentication for the full flow.
Verifying the connection
After installing, ask your AI tool something like:Use the Closient MCP server to validate GTIN 00614141123452.The agent should call
validate_gtin and report the GTIN is valid
(it’s a real GS1 test code). If you get a “no MCP server named
closient” error, restart the client — most hosts only pick up new
server configs on launch.
A direct sanity check from a terminal:
200 OK response means the hosted server is reachable from your
network.
Troubleshooting
Reference
- Tool Reference — input/output schemas for every tool.
- Authentication — OAuth 2.1 step-up flow.
- MCP Error Contract — how failures surface over JSON-RPC.
- MCP Identity Propagation — agent vs. end-user actor in audit logs.
- MCP Tool Annotations —
readOnlyHint/destructiveHintsemantics. - Model Context Protocol spec — the underlying open standard.