Skip to content

Drive it from code

Lunen’s programmatic surface is deliberately small and points in two directions: into Lunen through webhook triggers that start Task Agent runs, and out of Lunen through MCP — any server you build or host becomes tools your organization’s agents can call under policy.

Updated 16 October 2026 · 2 min read

Triggering: webhooks in

Every saved Task Agent can expose webhook triggers — authenticated endpoints your CI, alerting, or internal services call to start a run. An HMAC trigger can hand the run a JSON object the plan consumes as run input. The run that results is a normal run: same policy, same approvals, same audit trail.

Extending: MCP out

The integration surface is the Model Context Protocol . Build a server exposing your internal systems as MCP tools over Streamable HTTP or SSE, host it anywhere Lunen can reach, and an administrator adds it to the registry — OAuth, custom headers, or open. From that point your tools are indistinguishable from catalog ones: per-tool allow/approve policy, scoped credentials, and every call in the audit log. Every request your server receives in a session names that session, and the agent when there is one — see MCP call context — so your own logs line up with Lunen’s.

What there isn’t (yet)

There is no public REST API, no API keys for calling Lunen, and no outbound event subscriptions — the API page states the current surface plainly so you don’t design against endpoints that aren’t there.