MCP Integration Guide
Schemas: MCP
tools/listmirrors the customer OpenAPI catalog (see API Reference Integration Guide). Related: Agent API Integration Guide · SSO Integration Guide
Use Cursor, Claude Desktop, or another MCP client to talk to your Lincoln Cannon LLC agent over HTTPS. This guide covers the MCP service generally — URL, headers, tools/list, and tools/call. tools/list returns the customer integration tool schemas (browser chat, transcript, and streaming /agent/stream tools are omitted). Listing a tool does not grant call access — tools/call and upstream HTTP still need the credentials each route requires.
For the browser API Reference over the same schemas, see API Reference Integration Guide (https://api.lincolncannon.co/docs).
You need credentials your integration provider supplies: typically an API key enabled for agent access, and either an allowed origin, or an agent id (UUID) in the X-Agent-Key header or tool body.agentKey, to identify which agent to run. Examples below use common agent tools; your catalog also includes knowledge, assets, biometric, workflow, trigger, and other integration tools.
What your integration provider supplies
| Item | Example |
|---|---|
| MCP URL | https://mcp.lincolncannon.co/ |
| API key | Sent once; store securely |
| Allowed origin | https://yourcompany.com — send in the Origin header when you use origin-based routing |
| Agent id | UUID for each agent — send in the X-Agent-Key header or tool body.agentKey when you omit Origin |
| Production | Development | |
|---|---|---|
| MCP URL | https://mcp.lincolncannon.co/ | https://mcp-dev.lincolncannon.co/ |
Use the environment your integration provider configured for your API key and agent.
Authentication
Send these headers on MCP requests as needed:
| Header | Required | Notes |
|---|---|---|
x-api-key | For tools/call | Your API key. Wrong or missing key → access denied on live calls (for example agent.request). tools/list still returns schemas without a key; listing a tool does not grant call access. |
Origin | One of Origin, X-Agent-Key, or body agentKey (for agent tools) | Your registered site origin. Use this or identify the agent with X-Agent-Key or agentKey in the tool body (below). If both origin and agent id are sent, they must refer to the same agent. |
X-Agent-Key | One of Origin, X-Agent-Key, or body agentKey (for agent tools) | Agent UUID. Same as HTTP — forwarded to the API. Prefer this for multi-agent setups when you do not want agentKey in every tool call body. Body agentKey wins when both body and header are present. |
Optional:
| Header | When |
|---|---|
Authorization: Bearer … | Optional ID token from single sign-on so the agent treats the turn as that user (per-user memory; the server assigns that person's thread). Obtain tokens per SSO Integration Guide. Without Bearer, API-key-only rules apply — see Agent API Integration Guide. |
Keep API keys and Bearer tokens in headers only — never put them in tool arguments. agentKey in the tool body and X-Agent-Key are agent ids (UUIDs), not secrets.
Tools available to you
tools/list returns the customer integration catalog (schemas): agent, assets, biometric, integration, knowledge, trigger, and workflow (browser chat, transcript, and SSE stream tools are omitted). Listing a tool does not grant call access — tools/call still requires the same API key, Bearer, origin, and plan rules as the matching HTTP route.
Use non-streaming agent.request over MCP. Browser widget POST /agent/chat, GET /agent/transcript, and SSE POST /agent/stream stay on direct HTTP (Agent API Integration Guide / API Reference Integration Guide). Each tool includes an inputSchema: for agent tools, properties.body lists JSON fields (same shapes as Agent API Integration Guide for /request).
Common examples for agent integrations:
| Tool | Purpose |
|---|---|
agent.request | Send a message and get a reply (non-streaming) |
Include X-Agent-Key or agentKey in each agent tool call when you omit Origin.
If tools/call fails for agent tools, verify your x-api-key is registered and enabled for agent access with your integration provider.
Cursor setup
Origin-based (browser-style)
Add a server entry to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"My Company Agent": {
"url": "https://mcp.lincolncannon.co/",
"headers": {
"x-api-key": "${env:MY_LCLLC_API_KEY}",
"Origin": "https://your-registered-site.com"
}
}
}
}
Agent-key-based (server / backend)
Header (recommended for MCP):
{
"mcpServers": {
"My Company Agent": {
"url": "https://mcp.lincolncannon.co/",
"headers": {
"x-api-key": "${env:MY_LCLLC_API_KEY}",
"X-Agent-Key": "${env:MY_LCLLC_AGENT_KEY}"
}
}
}
}
Body agentKey per call (same URL; omit X-Agent-Key):
{
"mcpServers": {
"My Company Agent": {
"url": "https://mcp.lincolncannon.co/",
"headers": {
"x-api-key": "${env:MY_LCLLC_API_KEY}"
}
}
}
}
Pass agentKey in each agent.request call (see below).
Set secrets in your environment (for example export MY_LCLLC_API_KEY='…' in your shell profile) instead of pasting them into the config file.
Restart Cursor and turn the server on under Settings → Tools & MCP.
One agent vs several
The MCP gateway exposes the same agent tools as the HTTP API — it does not add extra ways to pick an agent.
- One agent — send
Origin,X-Agent-Key, oragentKeyon each call (same as HTTP). - Several agents, no id on every call — use separate MCP server entries, each with the
OriginorX-Agent-Keyyour integration provider registered for that agent (same URL and API key; different header). Tool calls need onlytext. - Several agents, shared backend — pass the correct
X-Agent-Keyheader oragentKeyin each tool call body.
Using agent.request
When your client calls agent.request, the arguments look like this:
{
"name": "agent.request",
"arguments": {
"body": {
"agentKey": "<uuid-if-no-X-Agent-Key-header>",
"text": "Hello"
}
}
}
| Field | Required | Notes |
|---|---|---|
text | Yes | The user’s message for this turn. |
agentKey | One of Origin, X-Agent-Key, or body agentKey | Agent UUID. Required in the body when both MCP Origin and X-Agent-Key headers are omitted. May be omitted when a header identifies a single registered agent. Body agentKey wins when both body and header are present. |
sessionId | No | Ignored. The server assigns the thread (Agent API Integration Guide). |
When you set X-Agent-Key on the MCP server entry, you may omit agentKey from the body:
{
"name": "agent.request",
"arguments": {
"body": {
"text": "Hello"
}
}
}
Successful reply (inside the tool result) is JSON with at least:
text— the agent’s replysessionId— the server-assigned thread id
Extra fields may appear over time; ignore keys you do not use.
A single turn can take up to about five minutes while the model runs.
Other MCP clients
Any client that supports remote MCP over HTTP with custom headers can use the same URL and x-api-key. Add Origin, X-Agent-Key, or supply agentKey in tool arguments — same rules as direct HTTP.
Troubleshooting
| What you see | What to check |
|---|---|
| No tools listed | MCP URL reachable over HTTPS; client supports remote MCP. tools/list does not require an API key (chat, transcript, and stream tools are omitted by design) |
| Tool call rejected | That tool is not enabled for your credentials — contact your integration provider |
| 403 errors | Invalid or disabled API key |
400 on agent.request | Missing text, missing agent identity (Origin, X-Agent-Key, and body agentKey all absent), or mismatched agent |
| Long wait, then success | Normal for LLM replies; allow up to ~5 minutes |
For issues with keys, origins, agent ids, or SSO, contact your Lincoln Cannon LLC integration provider. For OAuth token issues, see SSO Integration Guide.
Calling the agent without MCP
Use direct HTTP instead of MCP — full contract in Agent API Integration Guide (POST /agent/request, POST /agent/stream, headers, Bearer, and errors).