Skip to content

The MCP server

limen_agents.mcp_server

The one MCP server of the project: the open-data libraries as tools for an assistant.

The libraries have no servers of their own: they handle data. This server gives an assistant their readings, through :mod:limen_core.evidence, the one place where the project reaches them. An application adds its own tools (its assessments, its alerts) with extra_tools.

Every answer names its source and the time of the data. The instructions the model receives are the rules of each library (ANSWER_RULES), joined: the model words the answer, it does not compute it.

Needs the mcp extra. limen-agents-mcp serves on standard input and output; limen-agents-mcp --http on 127.0.0.1.

instructions

instructions() -> str

The header and the ANSWER_RULES of every library the tools read.

create_server

create_server(*, clients: Callable[[], Clients] = Clients, extra_tools: Sequence[Callable[..., Any]] = (), name: str = 'limen') -> MCPServer[Any]

The server, with the library tools and extra_tools (read-only).

main

main(argv: Sequence[str] | None = None) -> None

limen-agents-mcp: standard input and output, or --http on 127.0.0.1.