MCP setup

Connect an MCP agent

An external agent discovers published templates over the remote MCP endpoint. You approve its scopes; the agent asks for missing values in its own conversation and leaves the completed PDF on your device.

Endpoint

/api/mcp

Streamable HTTP with bearer access tokens. The endpoint does not accept a browser session cookie in place of a token.

Configure this same-origin path in your agent, or use the absolute address shown by your Applylk deployment.

Discovery

A client that receives an authentication challenge reads protected-resource metadata before starting OAuth.

/.well-known/oauth-protected-resource/api/mcp

/.well-known/oauth-authorization-server

Authorization Code with PKCE (S256). Public clients register without a secret.

Scopes

Profile Memory scopes are optional. Withholding a category prevents an agent from reading or proposing facts in it.

Connection sequence

  1. Sign in, then register the agent's exact redirect URI on MCP connections.
  2. An operator approves a loopback registration. HTTPS registrations are effective immediately.
  3. The agent starts authorization, and you review the requested scopes before approving.
  4. The agent discovers a published Template Version and requests a short-lived source grant.
  5. The local bridge fills the PDF and saves it on your device. Applylk receives no answers or completed document.

Your connections