> For the complete documentation index, see [llms.txt](https://docs.trustlogix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trustlogix.io/trust-ai/mcp-server.md).

# MCP Server

* TrustLogix utilizes **MCP** protocol to expose the TrustAI Policy Engine to the registered agents.&#x20;
* The TrustAI **MCP Server** implements [**RFC9728**](https://datatracker.ietf.org/doc/html/rfc9728) in accordance with the [**MCP Authentication Specification**](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization)**.**&#x20;

{% hint style="info" %}
If securing an agent platform (like ChatGPT, Claude Desktop, Databricks, etc), you must setup a custom external MCP connection.
{% endhint %}

* When configuring OAuth for the MCP connection (see [MCP Server](/trust-ai/mcp-server.md) for more details), be sure to use the **same** registered application's OAuth details provided earlier to TrustLogix.&#x20;
* This ensures the proper agent identity is propagated at decision time and is correctly correlated with activity logs from other registered systems.

The MCP URL is custom for each agent, and follows the following pattern:

> https\://{tlx-mcp-host}/tenants/{tenant-id}/agents/{agent-id}/mcp

* If securing a custom agent, developers must implement an additional MCP Client connection in the agent code.&#x20;
* Ensure that the end-user's OAuth token is passed in the Authorization header to properly propagate end user identities.&#x20;

{% hint style="warning" %}
It is the developer's responsibility to properly implement authentication, the MCP client, and to add needed changes to system prompts.&#x20;
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trustlogix.io/trust-ai/mcp-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
