Skip to content

Commit c1be60f

Browse files
authored
Revise MCP server configuration in documentation
1 parent 7bc1eaa commit c1be60f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

solutions/search/agent-builder/mcp-server.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,26 @@ The MCP server is available at:
2929
Most MCP clients (such as Claude Desktop, Cursor, VS Code, etc.) have similar configuration patterns. To connect to your Elastic instance, you'll need to provide your Kibana URL and API key in the client's configuration file, typically in the following format:
3030

3131
```json
32+
3233
{
3334
"mcpServers": {
34-
"elastic-agent-builder": {
35+
"elastic": {
3536
"command": "npx",
36-
"args": ["@elastic/agent-builder-mcp"],
37+
"args": [
38+
"mcp-remote",
39+
"<YOUR_KIBANA_URL>/api/agent_builder/mcp",
40+
"--header",
41+
"Authorization:${AUTH_HEADER}"
42+
],
3743
"env": {
38-
"KIBANA_URL": "<YOUR_KIBANA_URL>",
39-
"API_KEY": "<YOUR_API_KEY>"
44+
"AUTH_HEADER": "ApiKey <YOUR_API_KEY>"
4045
}
4146
}
42-
}
4347
}
4448
```
4549

4650
:::{note}
4751
Replace `<YOUR_KIBANA_URL>` with your actual Kibana URL and `<YOUR_API_KEY>` with your API key. For information on generating API keys, see [API keys](https://www.elastic.co/docs/solutions/search/search-connection-details).
52+
53+
Tools will be executed with the scope assigned to the API key. Make sure your API key has the appropriate permissions to only access the indices and data that you want to expose via the MCP server.
4854
:::

0 commit comments

Comments
 (0)