Skip to content
Lovelace

MCP Gateway

The Lovelace platform exposed through a single MCP gateway

Connect any MCP-compatible client to Lovelace through the public MCP gateway at https://mcp.uselovelace.com/mcp. One endpoint gives your AI client or application access to Lovelace workspaces, agents, and knowledge.

What you can build#

Connect your AI client — Add Lovelace to Claude Code, Codex CLI, Claude Desktop, Cursor, or another MCP client with one command or config entry. Your AI client can then list workspaces, spawn agents, and query knowledge without any code. See Client Setup.

Orchestrate agents from code — Use the Python or TypeScript MCP SDK to spawn Lovelace agents, poll for results, and build fully automated workflows. See Agent Workflows.

Use Lovelace as AI memory — Save notes and documents, find them again by keyword search, and pass what you find to an agent. See Tools Reference.

How it works#

The gateway uses Streamable HTTP transport and MCP authorization discovery:

  • Endpoint: https://mcp.uselovelace.com/mcp
  • Messages: POST /mcp
  • Auth discovery: 401 challenge with resource_metadata
  • Protected Resource Metadata: https://mcp.uselovelace.com/.well-known/oauth-protected-resource

Standards-compliant clients discover Lovelace Accounts through the gateway's Protected Resource Metadata, complete OAuth authorization, and then send bearer tokens on MCP requests. Clients normally handle the auth flow automatically.

Protocol revisions#

One endpoint serves both current and earlier revisions, so your client connects with whichever it speaks.

On 2026-07-28 there is no handshake and no session. Every request carries the per-request _meta envelope, and server/discover returns the revisions, capabilities, and instructions the gateway offers — the method that replaced initialize. List results carry ttlMs and cacheScope, so a client can cache the tool catalog instead of re-fetching it on every call.

On 2025-era revisions a client opens a session with initialize, sends the mcp-session-id header it gets back on every following request, and may end the session with DELETE /mcp. This lane stays; clients do not all move at once.

Quick start#

Add the gateway to Claude Code or Codex CLI:

bash
# Claude Code (then run /mcp inside Claude Code to sign in)
claude mcp add --transport http lovelace https://mcp.uselovelace.com/mcp

# Codex CLI
codex mcp add lovelace --url https://mcp.uselovelace.com/mcp
codex mcp login lovelace

For other clients, see Client Setup. Then verify the connection by asking your client:

text
List my Lovelace workspaces

See the Quick Start guide for the full end-to-end flow, including programmatic Python and TypeScript examples.

Behavior clients can rely on#

  • Default workspace. Every tool that works in a workspace takes an optional workspaceId. Without one, the tool uses the account's default workspace, which Lovelace creates the first time a tool needs it.
  • Titles and hints. Every tool carries a title and the MCP behavior hints readOnlyHint, destructiveHint, idempotentHint, and openWorldHint, so a client can run read-only tools without asking. See Titles and Behavior Hints.
  • Routing guidance. The server instructions, returned by initialize and server/discover, say which tool fits which request.
  • Structured errors. A failed call returns an error code from a fixed set. See Errors.
  • Stable names. Tool names only ever gain new entries; a published name does not change.
  • Pathways. Lovelace Pathways appear as tools and prompts only on a gateway whose operator sets MCP_PATHWAYS_ENABLED=true. The public gateway does not list them, and it does not advertise the prompts capability.

Capabilities#

CapabilityMCP surfaceDescription
Workspaceslovelace_list_workspaces, lovelace_get_workspace, lovelace://workspaces, lovelace://workspaces/{id}Browse and inspect accessible workspaces
Agentslovelace_list_agents, lovelace_spawn_agent, lovelace_get_agent_status, lovelace_get_agent_resultLaunch agents, monitor progress, and fetch output
Knowledgelovelace_search_knowledge, lovelace_store_knowledge, lovelace://knowledge/{id}Search and store workspace knowledge

Scopes#

Each tool requires a specific OAuth scope. Request the scopes you need when your client completes the authorization flow.

ScopeTools unlocked
workspace:readlovelace_list_workspaces, lovelace_get_workspace
agents:readlovelace_list_agents, lovelace_get_agent_status, lovelace_get_agent_result
agents:writelovelace_spawn_agent
knowledge:readlovelace_search_knowledge
knowledge:writelovelace_store_knowledge

Documentation#

  • Quick Start — Configure a client, verify access, spawn an agent, and fetch results
  • Agent Workflows — End-to-end Python and TypeScript examples for spawning and orchestrating agents
  • Authentication — Protected-resource discovery, OAuth, and scope guidance
  • Tools Reference — Current tool inputs, outputs, and required scopes
  • Compatibility Report — Per-client support matrix generated from conformance results
  • Capability Lifecycle — Deprecation metadata, replacement handling, and removed-tool errors
  • Resources Reference — Current lovelace:// resource URIs and payload shapes
  • Client Setup — Claude Code, Codex CLI, Claude Desktop, Cursor, Windsurf, Gemini CLI, and VS Code
  • Local Server — Serve the Lattice daemon's MCP tools over stdio