You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
702
685
:::
703
686
704
-
### A2A protocol
705
-
706
-
Refer to [](a2a-server.md) for more information.
707
-
708
687
**Example:** Get A2A agent card configuration
709
688
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
-
712
689
::::{tab-set}
713
690
:group: api-examples
714
691
@@ -732,47 +709,6 @@ curl -X GET "https://${KIBANA_URL}/api/agent_builder/a2a/{agentId}.json" \
732
709
::::
733
710
734
711
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
-
776
712
## API reference
777
713
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