Product Guides / MCP manual and technical reference
Make your first MCP call from a terminal
Looking for what to say to your assistant? Start with the prompt walkthroughs and real conversations. This page keeps the manual instructions and technical reference.
Connect to hosted MangroveAI, discover tools, and read five signal definitions. This walkthrough ends with a real response and requires no Mangrove app screen.
1. Check the connection
You need curl and a terminal. These first calls require no account, wallet, or payment. The URL is a protocol endpoint; opening it in a browser is not a connection test. Run each command separately.
curl --silent --show-error --max-time 30 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data-binary '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"mangrove-walkthrough","version":"1.0"}}}' \
https://api.mangrovedeveloper.ai/mcp/
Look for serverInfo.name equal to MangroveAI, a tools capability, and the negotiated protocol version. The response observed on November 19, 2026 used 2025-06-18. Then send the notification:
curl --silent --show-error --max-time 30 --include \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2025-06-18' \
--data-binary '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
https://api.mangrovedeveloper.ai/mcp/
Expect HTTP 202 and no response body. Use the negotiated version on later requests.
2. Discover a small set of tools
Save the following as request.json. It asks for descriptions and input fields without running these tools.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "discover_tools",
"arguments": {
"detail": "schema",
"names": [
"list_signals",
"get_signal",
"kb_search"
]
}
}
}
Send that file:
curl --silent --show-error --max-time 30 \
--dump-header response-headers.txt --output response.json \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2025-06-18' \
--data-binary @request.json \
https://api.mangrovedeveloper.ai/mcp/
cat response.json
3. Make a free read
Replace the contents of request.json with this request and repeat the previous curl command:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_signals",
"arguments": {
"limit": 5,
"offset": 0
}
}
}
Expect up to five signal definitions. The live response includes signals, has_more, and next_offset. Follow the returned offset if you need another page. Names and counts can change.
4. Read the outcome
Check the HTTP status, a top-level error, result.isError, then the business payload. Prefer result.structuredContent when present; otherwise inspect the JSON in text content. HTTP 200 can carry a tool error or payment challenge.
A browser GET can return 405 while POST works. A 401 on a saved-strategy read means identity is required. A timeout does not prove work was cancelled: retain the request and any operation ID before deciding whether to retry. The 30-second command above is for these short reads, not a general backtest timeout.
Next: research signals in a conversation or connect your local agent.
