Baïkal
An agent for the calendar, for requests such as “what’s on Saturday?”.
| MCP server | github.com/dominik1001/caldav-mcp |
| Transport | Streamable HTTP |
| Authentication | bearer |
The same MCP server, a CalDAV client, serves Radicale and Baïkal.
Run the MCP server
Section titled “Run the MCP server”The image named in the README of caldav-mcp cannot be pulled: Compose builds it from the Dockerfile of its release tag, beside the server of Ambrogio:
services: baikal-mcp: build: https://github.com/dominik1001/caldav-mcp.git#v0.12.1 image: caldav-mcp:0.12.1 environment: CALDAV_BASE_URL: http://<baikal-host>/dav.php CALDAV_USERNAME: ambrogio CALDAV_PASSWORD: ${BAIKAL_PASSWORD:?} MCP_AUTH_TOKEN: ${BAIKAL_MCP_TOKEN:?}It serves Streamable HTTP on port 3000 at /mcp, so the server of Ambrogio reaches it at http://baikal-mcp:3000/mcp, the name of its Compose service on a network the two share; from another host, use the name or address of the host that runs it, with the same port and path.
CALDAV_USERNAME and CALDAV_PASSWORD are the account of Baïkal the MCP server acts as. caldav-mcp signs in with Basic authentication, while Baïkal uses Digest by default: in
the settings of Baïkal, set the WebDAV authentication type to Basic, then create the user and
its calendars.
Configure the connector
Section titled “Configure the connector”-
Run the MCP server, as Run the MCP server shows.
-
Choose the token that the MCP server accepts, a random value such as the output of
openssl rand -hex 32: the same value goes to the MCP server, asMCP_AUTH_TOKENabove, and to Ambrogio. Write it in.envasBAIKAL_MCP_TOKEN, and pass the variable to the server of Ambrogio incompose.yaml:services:server:environment:BAIKAL_MCP_TOKEN: ${BAIKAL_MCP_TOKEN:?} -
Add the agent file
agents/baikal.json, with the address of the Streamable HTTP endpoint of the MCP server inmcp.url:{"description": "Answers the household's requests about the calendar, with the tools of Baïkal.","instructions": "You handle the household's requests about the calendar with the tools of Baïkal. Requests may come from speech recognition and contain misheard words; interpret them in context. Answer briefly.","llm": {"provider": "mistral","model": "mistral-medium-latest","apiKeyEnv": "MISTRAL_API_KEY"},"maxToolCalls": 4,"mcp": {"url": "http://baikal-mcp:3000/mcp","auth": {"type": "bearer","tokenEnv": "BAIKAL_MCP_TOKEN"}}} -
Restart with
docker compose up -d.
Authentication: a bearer token, which the agent file names through the variable BAIKAL_MCP_TOKEN. The description, the instructions, the language model and
maxToolCalls are an example: adapt them to the household. See
Agents for every field of the file.