Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Document Personal Credentials authentication flow and add details on Bearer Token support for MCP servers
Saif5ce163703b54
diff --git a/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx b/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdxindex 7c14a7bf56..dc05fb2324 100644--- a/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx+++ b/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx@@ -108,6 +108,30 @@ Once you have your endpoint URL, you can connect AI clients to it.</Tab></Tabs>+## Personal Credentials Authentication++When an MCP endpoint includes servers configured with **Personal Credentials** mode, users must authenticate with each of those servers before they can connect to the endpoint.++### Authentication Flow++When a user connects to an endpoint with servers requiring personal credentials:++1. **Authentication Prompt**: After authorizing access to the endpoint, users are shown a list of all MCP servers that require their personal credentials.++++2. **Authenticate Each Server**: Users must authenticate with each server in the list. The authentication method depends on how the server was configured:+ - **OAuth**: Users are redirected to the service (e.g., GitHub, Notion) to authorize access+ - **Bearer Token**: Users enter their personal access token directly++++3. **Re-authentication**: Users can update their credentials for servers they've already authenticated with by clicking the **Re-authenticate** button. This is useful when tokens expire or when users want to switch accounts.++4. **Complete All Authentications**: Users must authenticate with **all** servers requiring personal credentials before they can proceed. The connection will only be established once all required authentications are complete.+++## FAQ<AccordionGroup>@@ -124,6 +148,11 @@ Once you have your endpoint URL, you can connect AI clients to it.Yes, you can revoke access by managing authorized sessions in the endpoint settings. This immediately disconnects the AI client.</Accordion><Accordion title="What if an MCP server requires personal credentials?">- If a connected MCP server uses personal credentials, users will be prompted to authenticate with that server when they first connect to the endpoint. This is a one-time process per server.+ If a connected MCP server uses personal credentials, users will be prompted to authenticate when they first connect to the endpoint. The authentication method depends on how the server was configured:++ - **OAuth servers**: Users complete an OAuth authorization flow+ - **Bearer Token servers**: Users enter their personal access token directly++ This is a one-time process per server, and users can re-authenticate at any time if needed.</Accordion></AccordionGroup>diff --git a/docs/documentation/platform/agent-sentinel/mcp-servers.mdx b/docs/documentation/platform/agent-sentinel/mcp-servers.mdxindex ebe3a08fbb..12895ea0a5 100644--- a/docs/documentation/platform/agent-sentinel/mcp-servers.mdx+++ b/docs/documentation/platform/agent-sentinel/mcp-servers.mdx@@ -12,7 +12,7 @@ When you add an MCP server to Infisical, the platform discovers all available to## Supported MCP Servers-Infisical supports connecting to any remote MCP server that implements the Model Context Protocol over HTTP with OAuth authentication. Popular MCP servers include:+Infisical supports connecting to any remote MCP server that implements the Model Context Protocol over HTTP with OAuth or Bearer Token authentication. Popular MCP servers include:- **Notion** - Search, create, and manage Notion pages and databases- **GitHub** - Manage repositories, issues, pull requests, and more@@ -26,9 +26,22 @@ Infisical supports connecting to any remote MCP server that implements the Model## Authentication-MCP servers typically require authentication to access their tools. Infisical supports **OAuth** authentication, which handles the authorization flow automatically.+MCP servers require authentication to access their tools. Infisical supports two authentication methods:-Some MCP servers support **Dynamic Client Registration**, which means Infisical can automatically register as an OAuth client. For servers that don't support this (like GitHub), you'll need to manually create an OAuth application and provide the client credentials.+<CardGroup cols={2}>+ <Card title="OAuth" icon="key">+ The server uses OAuth 2.0 for authentication. Users are redirected to the service to authorize access.++ **Best for:** Services with full OAuth support like Notion, GitHub, Google.+ </Card>+ <Card title="Bearer Token" icon="ticket">+ Users provide their own API token or access token directly.++ **Best for:** Services where users have existing API tokens, or services without OAuth support.+ </Card>+</CardGroup>++Some MCP servers with OAuth support **Dynamic Client Registration**, which means Infisical can automatically register as an OAuth client. For servers that don't support this (like GitHub), you'll need to manually create an OAuth application and provide the client credentials.## Credential Modes@@ -42,11 +55,15 @@ When adding an MCP server, you choose how credentials are managed:</Card><Card title="Personal Credentials" icon="user-lock">Each user must authenticate with the MCP server individually before using its tools. Their credentials are stored securely by Infisical.-+**Best for:** Per-user audit trails, user-specific permissions, compliance requirements.</Card></CardGroup>+<Note>+ When using **Personal Credentials** mode, the administrator setting up the MCP server must still authenticate during setup. This initial authentication is required to fetch and discover the available tools from the server.+</Note>+## Guide to Adding an MCP ServerIn the following steps, we explore how to add an MCP server to your Agent Sentinel project.@@ -69,17 +86,19 @@ In the following steps, we explore how to add an MCP server to your Agent Sentin</Step><Step title="Configure authentication">- For OAuth authentication, you may need to provide credentials depending on the server:+ Choose the authentication method for your MCP server:- **For servers with Dynamic Client Registration (e.g., Notion):**- - Simply click **Authorize** to complete the OAuth flow-- **For servers without Dynamic Client Registration (e.g., GitHub):**- - Create an OAuth application in the service's developer settings- - Enter the **Client ID** and **Client Secret**- - Click **Authorize** to complete the OAuth flow+ **OAuth Authentication:**+ - For servers with Dynamic Client Registration (e.g., Notion): Click **Authorize** to complete the OAuth flow+ - For servers without Dynamic Client Registration (e.g., GitHub): Enter the **Client ID** and **Client Secret**, then click **Authorize**++ **Bearer Token Authentication:**+ - Select **Bearer Token** as the authentication method+ - Users will be prompted to enter their personal access token when connecting to endpoints that include this server++ </Step><Step title="Review available tools">After authorization, Infisical discovers and displays all tools available from the MCP server.@@ -115,4 +134,15 @@ In the following steps, we explore how to add an MCP server to your Agent Sentin<Accordion title="What happens if the MCP server goes offline?">If an MCP server becomes unavailable, tool invocations through endpoints connected to that server will fail. The Activity Logs will capture these failures for troubleshooting.</Accordion>+ <Accordion title="When should I use Bearer Token vs OAuth?">+ Use **OAuth** when:+ - The MCP server supports OAuth 2.0+ - You want automatic token refresh+ - The service has a native OAuth integration++ Use **Bearer Token** when:+ - Users already have API tokens they want to use+ - The MCP server doesn't support OAuth+ - You need a simpler authentication flow+ </Accordion></AccordionGroup>diff --git a/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-bearer.png b/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-bearer.pngnew file mode 100644index 0000000000..d087b782faBinary files /dev/null and b/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-bearer.png differdiff --git a/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-complete.png b/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-complete.pngnew file mode 100644index 0000000000..db0d6c66a0Binary files /dev/null and b/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-complete.png differdiff --git a/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-incomplete.png b/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-incomplete.pngnew file mode 100644index 0000000000..94b1dd16f6Binary files /dev/null and b/docs/images/platform/ai/mcp/mcp-endpoints-finalize-personal-incomplete.png differdiff --git a/docs/images/platform/ai/mcp/mcp-servers-add-bearer.png b/docs/images/platform/ai/mcp/mcp-servers-add-bearer.pngnew file mode 100644index 0000000000..b66ca9f60eBinary files /dev/null and b/docs/images/platform/ai/mcp/mcp-servers-add-bearer.png differ