Developer
Mulai cepat
Contoh memanggil server MCP dengan curl.
Langkah
- Panggil initialize untuk memastikan token valid.
- Panggil tools/list untuk melihat tool yang tersedia bagi akun Anda.
- Panggil list_workspaces untuk mendapatkan workspace_id, lalu panggil tool lain dengan id tersebut.
Contoh
Initialize
curl -s https://qalling.id/mcp \
-H "Authorization: Bearer $QALLING_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"demo","version":"1"}}}'Memanggil tool
curl -s https://qalling.id/mcp \
-H "Authorization: Bearer $QALLING_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"list_workspaces","arguments":{}}}'Belum menemukan jawabannya? Hubungi kami.

