Skip to content

Commit 9e4f461

Browse files
authored
Delete MCP server API and A2A task examples (#3819)
Contributes to elastic/docs-content-internal#446 GET agent card is the only relevant endpoint that you should be using the REST API to hit for MCP and A2A. This was confusing users. related PR in Kibana for the generated API ref: elastic/kibana#241856
1 parent 80625b4 commit 9e4f461

File tree

1 file changed

+5
-69
lines changed

1 file changed

+5
-69
lines changed

solutions/search/agent-builder/kibana-api.md

Lines changed: 5 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -677,38 +677,15 @@ curl -X DELETE "https://${KIBANA_URL}/api/agent_builder/conversations/{conversat
677677

678678
::::
679679

680-
### MCP server API
680+
### Get A2A agent card configuration
681681

682-
Refer to [](mcp-server.md) for more information.
683-
684-
Communicate with the MCP server using JSON-RPC 2.0.
685-
686-
```bash
687-
curl -X POST "https://${KIBANA_URL}/api/agent_builder/mcp" \
688-
-H "Authorization: ApiKey ${API_KEY}" \
689-
-H "Content-Type: application/json" \
690-
-H "Accept: application/json" \
691-
-H "kbn-xsrf: true" \
692-
-d '{
693-
"jsonrpc": "2.0",
694-
"id": 1,
695-
"method": "tools/list"
696-
}'
697-
```
698-
If you're using Spaces, you need to prefix `/api/agent_builder` with `/s/<space_name>`. Refer to [Working with Spaces](#working-with-spaces).
699-
700-
:::{note}
701-
This endpoint uses the JSON-RPC protocol. The MCP server is used by AI clients like Claude Desktop, Cursor, and VS Code extensions to access your Elastic tools. Use this {{kib}} API endpoint for testing MCP connectivity or debugging protocol communication. This endpoint requires JSON-RPC formatting and does not work from the Dev Tools Console.
682+
:::{important}
683+
You shouldn't use the REST APIs to interact with the A2A endpoint, apart from getting the A2A agent card configuration.
684+
Refer to [](a2a-server.md) for more information about using the A2A protocol.
702685
:::
703686

704-
### A2A protocol
705-
706-
Refer to [](a2a-server.md) for more information.
707-
708687
**Example:** Get A2A agent card configuration
709688

710-
This example uses the [get A2A agent card API](https://www.elastic.co/docs/api/doc/kibana/operation/operation-get-agent-builder-a2a-agentid-json).
711-
712689
::::{tab-set}
713690
:group: api-examples
714691

@@ -732,47 +709,6 @@ curl -X GET "https://${KIBANA_URL}/api/agent_builder/a2a/{agentId}.json" \
732709
::::
733710

734711

735-
% TODO: Execute A2A agent task section - commented out until ready
736-
% Execute A2A agent task
737-
% ::::{tab-set}
738-
% :group: api-examples
739-
%
740-
% :::{tab-item} Console
741-
% :sync: console
742-
% :::{note}
743-
% This endpoint uses the JSON-RPC protocol, which cannot be executed in the Dev Tools Console.
744-
% Use curl or another HTTP client.
745-
% :::
746-
%
747-
% :::{tab-item} curl
748-
% :sync: curl
749-
% ```bash
750-
% curl -X POST "https://${KIBANA_URL}/api/agent_builder/a2a/{agentId}" \
751-
% -H "Authorization: ApiKey ${API_KEY}" \
752-
% -H "kbn-xsrf: true" \
753-
% -H "Content-Type: application/json" \
754-
% -d '{
755-
% "jsonrpc": "2.0",
756-
% "method": "complete",
757-
% "params": {
758-
% "messages": [
759-
% {
760-
% "role": "user",
761-
% "content": "Hello from A2A protocol"
762-
% }
763-
% ]
764-
% },
765-
% "id": "task-123"
766-
% }'
767-
% ```
768-
% :::
769-
%
770-
% ::::
771-
772-
773-
774-
775-
776712
## API reference
777713

778-
For the full API documentation, refer to the [{{kib}} API reference](https://www.elastic.co/docs/api/doc/kibana/group/endpoint-agent-builder).
714+
For the full API documentation, refer to the [{{kib}} API reference](https://www.elastic.co/docs/api/doc/kibana/group/endpoint-agent-builder).

0 commit comments

Comments
 (0)