Tools and integrations
MCP setup
Connect Claude Code, Claude Desktop, Copilot, OpenCode or Codex to Lynxby over the Model Context Protocol, with a scoped token and an exposure profile.
Lynxby exposes one Model Context Protocol endpoint. What it answers, and why it is safe to turn on, is on MCP: let your own agent use your knowledge.
https://lynxby.com/mcp
It is JSON-RPC 2.0 over streamable HTTP: one message per POST. An MCP-capable client points at it with a Lynxby token, then asks tools/list and calls a tool. The endpoint carries tool calls, not model traffic.
The longer setup guide, with every client block, is at github.com/LynxbyAI/lynxby-sdk/blob/main/docs/mcp.md.
Get a token
- Sign in to your organisation.
- Open Settings → API tokens.
- Create a token with
knowledge.read, plusconnector.readfor read-only connector actions,task.executeto run tasks,assistant.executeto message assistants andrun.read/run.executeto list and decide parked runs. - Copy the value; it is shown once.
The token's owner also needs the permission behind each scope — document.read for knowledge, task.execute for tasks, assistant.execute for assistants, run.view to list runs and task.execute to decide them. A token never does more than its owner.
Choose the tools
Open Settings → MCP exposure and enable the tools the token should see. The default profile offers the knowledge tools and the four that run work. A tool that is not in the profile is absent from tools/list; it is not refused later.
The available tools are:
ask_lynxby(question, project_id?)answers from indexed documents and returns citations, the answering model and the read-only connector actions it used.search_knowledge(query, limit)returns up to ten matching passages instead of an answer.get_document(document_id, offset, limit)reads one document a page at a time, with redaction applied and at most 8,000 characters per page.run_task(task_id, inputs)runs one task with its form inputs and returns the run, its status and its answer.ask_assistant(assistant_id, message, session_id?)sends one message to an assistant and returns the reply; pass thesession_idback to continue the conversation.list_parked_runs()lists the runs waiting for a decision, with the task, the reason and how long they waited.decide_run(run_id, decision, note?)approves or rejects a parked run, with an optional note.<connector>_<tool>runs a read-only connector action that is bound and enabled.
Write, send and delete actions are not exposed. A tool that fails returns a normal result with isError: true; the protocol error is for a malformed message, not for the work.
Test with curl
curl -s https://lynxby.com/mcp \
-H "Authorization: Bearer $LYNXBY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'
curl -s https://lynxby.com/mcp \
-H "Authorization: Bearer $LYNXBY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"ask_lynxby","arguments":{"question":"What is the notice period in the supplier contract?"}}}'
initialize returns the protocol version, the server name and the caller's own capability skill as instructions. The skill names the rule sets, tools, collections and connectors that person can reach. It is a description of what is possible, not an authorisation check; every call is checked again.
Supported protocol revisions are 2025-06-18, 2025-11-25 and 2026-07-28. A client that asks for one of them gets it back; anything else is offered the newest.
Connect a client
Claude Code:
claude mcp add --transport http lynxby https://lynxby.com/mcp \
--header "Authorization: Bearer $LYNXBY_TOKEN"
Claude.ai and Claude Desktop use Settings → Connectors → Add custom connector with the same URL. That sign-in is OAuth, so there is no token to paste, and the address must be publicly reachable.
Copilot in VS Code reads ~/.copilot/mcp-config.json, or .mcp.json at the workspace root:
{
"mcpServers": {
"lynxby": {
"type": "http",
"url": "https://lynxby.com/mcp",
"headers": { "Authorization": "Bearer ${LYNXBY_TOKEN}" },
"tools": ["*"]
}
}
}
Copilot CLI:
copilot mcp add --transport http \
--header "Authorization: Bearer $LYNXBY_TOKEN" \
lynxby https://lynxby.com/mcp
OpenCode, in opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"lynxby": {
"type": "remote",
"url": "https://lynxby.com/mcp",
"oauth": false,
"headers": { "Authorization": "Bearer {env:LYNXBY_TOKEN}" }
}
}
}
}
Codex, in ~/.codex/config.toml:
[mcp_servers.lynxby]
url = "https://lynxby.com/mcp"
bearer_token_env_var = "LYNXBY_TOKEN"
Any other streamable-HTTP client uses the URL with a bearer header. A client that speaks OAuth 2.1 can follow https://lynxby.com/.well-known/oauth-protected-resource; the access token is opaque, lives thirty minutes and is bound to /mcp.
Limits and the ledger
- One JSON-RPC message per request; a batch is refused.
- The body cap is 1 MB by default; JSON nesting deeper than 64 levels is a parse error.
- 60 requests per minute per token and 600 per minute per organisation by default. Both answer
429withRetry-After. - The endpoint is stateless. A session id is issued at
initializeand echoed later, but nothing depends on it, so a redeploy does not break a client. - Every call writes an audit event: the tool, status, duration, client name and version, and a hash of the body. The body and the answer are never stored.
- Connector output is fenced as untrusted data, never as instructions.
- There are no MCP resources, prompts or sampling;
tools/listis the whole surface.
The capability skill is also served as Markdown at GET /skill.md, with an ETag and X-Lynxby-Skill-Version. It needs the skill.read scope. Each task you may run is a skill of its own at GET /skills/{task}, and all of them arrive as one archive at GET /skills.zip, which needs the same scope. Install the archive into Claude Code's ~/.claude/skills or Codex's ~/.agents/skills; a task you may not run is not in it.
What MCP does not cover
MCP does not carry model traffic. A harness that keeps its own provider key never sends its prompts through Lynxby, so they never reach the ledger. To account for the harness's own reasoning as well, point it at the model gateway (POST /api/v1/chat/completions or the Anthropic Messages endpoint) with a token that carries gateway.invoke.
Want to see this on your own documents?
Contact us