Use LiyaEngine from Claude, Cursor and VS Code (MCP)
Connect an assistant or an IDE to your project over the Model Context Protocol. Make a key, paste one block of setup, and run agents, search knowledge and read traces from where you work.
LiyaEngine has an MCP server. A tool that speaks the Model Context Protocol, such as Claude Code, Claude Desktop, Cursor or VS Code, can call your intents, agents and workflows, search your knowledge, and read what happened, without you writing any glue code.
Every tool call is the same request you would make to the REST API, sent with the same key. Authentication, key scope, a key's list of allowed capabilities, rate limits, billing and traces all apply exactly as they do for the API. A key that cannot do something over REST cannot do it here.
1. Make a key
Go to Administration → MCP and choose Create a key, or make one on API keys.
| Key | What a tool sees |
|---|---|
| Run only | The run tools. Can run what you built; cannot read traces or change anything. |
| Run and read | The run tools and the read tools, with memory reads. Can run what you built and look at traces and setup; cannot change anything. The usual choice for an assistant. |
| Read only | The read tools and memory reads. Cannot spend tokens or change anything. |
| Full access | Everything you leave on. This is the environment's own key. |
A key limited to certain agents, intents or workflows only sees the run tools for those kinds, and only those can be called. The key is shown once. Put it in your tool's config, never in a chat.
2. Add the server to your tool
The server address is https://api.liyaengine.ai/v1/mcp. The Connect tab shows ready-made setup for each tool with your key filled in. For example, in Claude Code:
claude mcp add --transport http liyaengine https://api.liyaengine.ai/v1/mcp \
--header "Authorization: Bearer YOUR_MCP_KEY"In Cursor, add this to .cursor/mcp.json:
{
"mcpServers": {
"liyaengine": {
"url": "https://api.liyaengine.ai/v1/mcp",
"headers": { "Authorization": "Bearer YOUR_MCP_KEY" }
}
}
}Then ask your assistant to list your LiyaEngine agents. If it answers, you are connected.
Tools
Run (Run key or wider)
| Tool | What it does |
|---|---|
run_intent | Run an intent in a domain. input.user_id, the person in your system the call is for, is required by the engine. |
run_agent | Run a deployed agent on a message. Pass the same session_id to continue a conversation. |
run_workflow | Start a workflow and return its result, or the approval it is waiting for. |
check_guardrails | Check text against your guardrail policy without running a model. |
query_knowledge | Search collections and return passages with their sources. With no collection_ids it searches only general collections (those not tied to a domain); to search a domain's collection, pass its id, which list_collections gives you. |
parse_file | Turn a PDF, DOCX, XLSX, CSV, PPTX, text file or image into text. Nothing is stored. Send it as base64, up to about 1 MB; use the REST API (POST /v1/files/parse) for larger files. |
Read (Read key or wider)
list_domains, list_intents, list_agents, list_collections and list_workflows. The agent, workflow and intent lists show only what is active: drafts and switched-off items are not listed.
search_traces lists traces the way the Traces page does: one row per agent run, workflow run or direct request, each with a kind and a traceId. Filter by kind, time, user, session or text, and set nested to also list the model calls inside runs. get_trace opens one, taking the kind from the search result.
list_agent_runs and get_agent_run show one agent's past runs and one run in full. list_workflow_runs and get_workflow_run do the same for a workflow, with its step-by-step trace. list_workflow_approvals shows the approvals workflows are waiting for; a person decides them in the dashboard.
Memory
memory_list and memory_read with a Read key. memory_write, memory_str_replace and memory_append need a Full key, and follow your memory access rules.
Manage (change your configuration)
create_prompt, create_prompt_version, publish_prompt, upload_document (adds a file to the knowledge base as base64, up to about 1 MB), create_intent and update_intent. These are never offered to a key. They are offered only to an app that an owner or admin signed in with Change your configuration ticked, in a project where an admin turned on Offer "Change your configuration" under MCP → Connected apps. Each call acts as that person, so your normal roles apply, and the change appears in your audit log under their name. New prompt versions are saved as drafts; nothing changes for your product until publish_prompt is called. Turning the switch off, or changing the person's role, takes effect on the app's next call.
Turn tools off
On Administration → MCP → Tools, an admin can turn any tool off for the whole project. A tool that is off disappears from every key's tool list, and a call to it is refused.
See what was done
Administration → MCP → Activity lists every call: the tool, what it was aimed at, the client, the key, whether it succeeded, was refused by the key's limits or failed, and how long it took. Run calls also appear in Traces, like any API call.
Limits and errors
Tool calls count against the same rate limits and plan as the API. A refusal is returned in the API's own words, for example API_KEY_SCOPE_DENIED or API_KEY_CAPABILITY_DENIED. Very long answers are cut at 60,000 characters; ask for less, for example a smaller limit on search_traces.
Webhooks and approvals in your own app
Get told when a workflow needs a person, show the request in your own product, and send the decision back. Event format, signature check, retries, and the four-eyes rule.
Reference
Canonical API surfaces for calling LiyaEngine, managing dashboard resources, and configuring production behavior.