Skip to content

Commit 776490c

Browse files
authored
Add header-based auth to MCP server (#459)
1 parent da3a268 commit 776490c

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

console/intelligence/mcp-server.mdx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,27 @@ If your agent doesn’t support connecting to remote MCP servers directly, use t
129129
```
130130

131131
1. Restart your AI agent.
132-
1. Authenticate the request in your browser.
132+
1. Authenticate the request in your browser. You can later revoke access on the Profile page of the Axiom Console.
133+
134+
### Header-based authentication
135+
136+
If your AI agent doesn’t support browser-based OAuth authentication (for example, Agent Builder from OpenAI), authenticate by passing headers directly:
137+
138+
1. [Create a personal access token](/reference/tokens#personal-access-tokens-pat).
139+
1. [Determine organization ID](/reference/tokens#determine-organization-id).
140+
1. Configure your AI agent to use the server URL `https://mcp.axiom.co/mcp`.
141+
1. Configure your AI agent to send the following headers with each request to the server URL:
142+
143+
- **Authorization:** `Bearer PERSONAL_ACCESS_TOKEN`
144+
- **x-axiom-org-id:** `ORGANIZATION_ID`
145+
146+
<Info>
147+
Replace `PERSONAL_ACCESS_TOKEN` with the personal access token you have generated.
148+
149+
Replace `ORGANIZATION_ID` with the organization ID.
150+
</Info>
151+
152+
If your AI agent only supports setting the Authorization header, pass the organization ID as a URL parameter: `https://mcp.axiom.co/mcp?org-id=ORGANIZATION_ID`
133153

134154
</Tab>
135155
</Tabs>

0 commit comments

Comments
 (0)