From c1be60f2a969d47f8389629e80317ad95d59a2c3 Mon Sep 17 00:00:00 2001 From: Jedr Blaszyk Date: Thu, 18 Sep 2025 16:35:19 +0200 Subject: [PATCH 1/2] Revise MCP server configuration in documentation --- solutions/search/agent-builder/mcp-server.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/solutions/search/agent-builder/mcp-server.md b/solutions/search/agent-builder/mcp-server.md index fd0f408073..457dabeb6a 100644 --- a/solutions/search/agent-builder/mcp-server.md +++ b/solutions/search/agent-builder/mcp-server.md @@ -29,20 +29,26 @@ The MCP server is available at: 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: ```json + { "mcpServers": { - "elastic-agent-builder": { + "elastic": { "command": "npx", - "args": ["@elastic/agent-builder-mcp"], + "args": [ + "mcp-remote", + "/api/agent_builder/mcp", + "--header", + "Authorization:${AUTH_HEADER}" + ], "env": { - "KIBANA_URL": "", - "API_KEY": "" + "AUTH_HEADER": "ApiKey " } } - } } ``` :::{note} Replace `` with your actual Kibana URL and `` with your API key. For information on generating API keys, see [API keys](https://www.elastic.co/docs/solutions/search/search-connection-details). + +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. ::: From 8b9caf081a58e092849761bb91e62d678988ef82 Mon Sep 17 00:00:00 2001 From: Jedr Blaszyk Date: Thu, 18 Sep 2025 16:36:25 +0200 Subject: [PATCH 2/2] Rename 'elastic' to 'elastic-agent-builder' in mcp-server.md --- solutions/search/agent-builder/mcp-server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/search/agent-builder/mcp-server.md b/solutions/search/agent-builder/mcp-server.md index 457dabeb6a..3d8e8fa529 100644 --- a/solutions/search/agent-builder/mcp-server.md +++ b/solutions/search/agent-builder/mcp-server.md @@ -32,7 +32,7 @@ Most MCP clients (such as Claude Desktop, Cursor, VS Code, etc.) have similar co { "mcpServers": { - "elastic": { + "elastic-agent-builder": { "command": "npx", "args": [ "mcp-remote",