Skip to content

Commit 4fd1d1d

Browse files
authored
Merge pull request #13491 from nextcloud/feat/mcp
feat: mcp server docs
2 parents 706c27c + c0eac95 commit 4fd1d1d

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

admin_manual/ai/app_context_agent.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,21 @@ These tools can also be combined by the agent to fulfil tasks like the following
143143

144144
* Uses contacts to look up Andrew's email and then sends an email
145145

146+
Custom Tools using MCP
147+
-----------------------
148+
149+
Model Context Protocol (MCP) is a protocol that enables Large Language Models (LLMs) to interact with external data sources and tools.
150+
The Context Agent app allows administrators to extend its capabilities by adding custom services via MCP. This can be configured in the admin settings under "MCP Config," where you can provide a JSON configuration in the following format:
151+
152+
.. code-block:: json
153+
154+
{
155+
"service-name": {
156+
"url": "https://service-url.com/endpoint",
157+
"transport": "streamable_http"
158+
}
159+
}
160+
146161
Requirements
147162
------------
148163

@@ -176,6 +191,13 @@ Other models that may give good results are:
176191

177192
See :ref:`llm2 documentation <ai-app-llm2>` on how to configure alternate models.
178193

194+
Using Nextcloud MCP Server
195+
--------------------------
196+
197+
Context Agent exposes an MCP server that can be used by other large language models or applications to access the tools provided by Context Agent.
198+
The server will be available at `https://your-nextcloud-domain.com/index.php/apps/app_api/proxy/context_agent/mcp/`, and
199+
it requires authentication via an app password passed in the `Authorization` header. Ex: `Authorization: Bearer <app-password>`.
200+
179201
Scaling
180202
-------
181203

@@ -198,4 +220,7 @@ Known Limitations
198220
* Make sure to test the language model you are using in concert with this app for whether they meet the use-case's quality requirements
199221
* Most models have difficulties with languages other than English. Some sometimes answer in another language than used by the user.
200222
* Customer support is available upon request, however we can't solve false or problematic output, most performance issues, or other problems caused by the underlying model.
201-
Support is thus limited only to bugs directly caused by the implementation of the app (connectors, API, front-end, AppAPI). We still try to optimize this as far as possible, so if you encounter any false or problematic output, you can report it `in a dedicated Github issue <https://github.com/nextcloud/context_agent/issues/51>`_ to help us improve this app.
223+
Support is thus limited only to bugs directly caused by the implementation of the app (connectors, API, front-end, AppAPI). We still try to optimize this as far as possible, so if you encounter any false or problematic output, you can report it `in a dedicated Github issue <https://github.com/nextcloud/context_agent/issues/51>`_ to help us improve this app.
224+
* When multiple MCP services are configured that have tools with the same name undefined behavior will occur.
225+
* Only remote MCP services are supported (streamable_http transport).
226+
* MCP services that require different access tokens for each user are not currently supported.

0 commit comments

Comments
 (0)