OpenCloud
An agent for documents and files, for requests such as “find the boiler’s warranty”.
| MCP server | github.com/adrianofoschi/opencloud-mcp |
| Transport | Streamable HTTP |
| Authentication | bearer |
Run the MCP server
Section titled “Run the MCP server”In Compose, beside the server of Ambrogio:
services: opencloud-mcp: image: ghcr.io/adrianofoschi/opencloud-mcp:v0.2.0 environment: OPENCLOUD_URL: http://<opencloud-host>:9200 OPENCLOUD_HOST: <domain of OpenCloud> OPENCLOUD_USER: ambrogio OPENCLOUD_APP_TOKEN: ${OPENCLOUD_APP_TOKEN:?} TIKA_URL: http://<tika-host>:9998 MCP_TOKEN: ${OPENCLOUD_MCP_TOKEN:?}It serves Streamable HTTP on port 3000 at /mcp, so the server of Ambrogio reaches it at http://opencloud-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.
OPENCLOUD_USER and OPENCLOUD_APP_TOKEN are the OpenCloud account the MCP server acts as, and an
app password of it. Create the user in OpenCloud, give it the spaces Ambrogio may read, then create
the app password with the command line of OpenCloud (it cannot be created without an expiry):
opencloud auth-app create --user-name=ambrogio --expiration=876000hConfigure 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_TOKENabove, and to Ambrogio. Write it in.envasOPENCLOUD_MCP_TOKEN, and pass the variable to the server of Ambrogio incompose.yaml:services:server:environment:OPENCLOUD_MCP_TOKEN: ${OPENCLOUD_MCP_TOKEN:?} -
Add the agent file
agents/opencloud.json, with the address of the Streamable HTTP endpoint of the MCP server inmcp.url:{"description": "Answers the household's requests about documents and files, with the tools of OpenCloud.","instructions": "You handle the household's requests about documents and files with the tools of OpenCloud. 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://opencloud-mcp:3000/mcp","auth": {"type": "bearer","tokenEnv": "OPENCLOUD_MCP_TOKEN"}}} -
Restart with
docker compose up -d.
Authentication: a bearer token, which the agent file names through the variable OPENCLOUD_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.