LemonCrow's MCP server is the host-neutral transport for context retrieval, rescue, trace recording, rubric gates, memory, and code-aware helper tools.
lc mcpcd lemoncrow
uv run lemoncrow mcpSet LEMONCROW_SERVICE_URL (plus LEMONCROW_API_KEY if the service requires auth)
to route the supported core calls through the HTTP service. Remote mode is
enabled whenever LEMONCROW_SERVICE_URL is set; unset it to run fully local.
LemonCrow distinguishes between developer mode and passive compatibility mode.
- With
LEMONCROW_DEV_MODE=1, the stdio MCP server exposes the full active tool surface. - Without developer mode,
recordremains active and the host may still see some compatibility tools as passivenoopsurfaces, but context/retrieval/edit workflows are intentionally not active. - Older host templates may use previous-generation tool names; the list below is the current public stdio MCP surface.
With LEMONCROW_DEV_MODE=1, the current stdio MCP registry exposes these tool
names:
contextrouterescuetraceverifymemoryreadeditsqlsearchcompactcodebash
memoryuses anopfield such asblock_upsert,block_get,archive, andrecall.compactusesop=output,op=session, orop=advise.routeusesop=decideandop=verify.codeusesop=index,op=search,op=blame,op=hover,op=symbol,op=outline,op=files,op=explore,op=routes,op=status,op=context,op=pattern,op=rename,op=cache_status, orop=cache_invalidate. (LemonGraph — call-graph and reference relations — callers, callees, usages — are returned folded intoop=explore.)
In remote MCP mode, LemonCrow currently forwards the core service-backed flows for:
- context retrieval via
/v1/reasoning/context - rescue via
/v1/reasoning/rescue - rubric evaluation via
/v1/rubrics/run - trace recording via
/v1/traces - memory block/archive/recall operations via
/v1/memory/*
Installed-product config:
{
"mcpServers": {
"lc": {
"command": "lc mcp",
"env": {
"LEMONCROW_ROOT": "~/.lemoncrow",
"LEMONCROW_WORKSPACE_ROOT": "."
}
}
}
}Source-checkout config:
{
"mcpServers": {
"lc": {
"command": "uv",
"args": ["run", "lc mcp"],
"cwd": "/abs/path/to/lemoncrow",
"env": {
"LEMONCROW_ROOT": "~/.lemoncrow",
"LEMONCROW_WORKSPACE_ROOT": "."
}
}
}
}When you want the MCP contract in-process, use LemonCrowClient.mcp() from the
Python SDK. It mirrors the same tool semantics and dev-mode gating rules as the
stdio server.