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.
Sign in to connect your own agent
The endpoint and scopes below are public. Connecting an agent to your account needs a verified session.
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
- Sign in, then register the agent's exact redirect URI on MCP connections.
- An operator approves a loopback registration. HTTPS registrations are effective immediately.
- The agent starts authorization, and you review the requested scopes before approving.
- The agent discovers a published Template Version and requests a short-lived source grant.
- The local bridge fills the PDF and saves it on your device. Applylk receives no answers or completed document.