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
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.
702
-
:::
703
-
704
680
### A2A protocol
705
681
706
682
Refer to [](a2a-server.md) for more information.
@@ -732,47 +708,9 @@ curl -X GET "https://${KIBANA_URL}/api/agent_builder/a2a/{agentId}.json" \
732
708
::::
733
709
734
710
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
711
774
712
775
713
776
714
## API reference
777
715
778
-
For the full API documentation, refer to the [{{kib}} API reference](https://www.elastic.co/docs/api/doc/kibana/group/endpoint-agent-builder).
716
+
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