Developer docs SDK
MCP
Call tools exposed by the project MCP server (streamable-http only), synchronously or asynchronously.
Python
result = mcp("github").call("create_issue", {"title": "Fix login"})
tools = mcp("github").list_tools()
# one-shot shorthand (timeout 60s per RPC)
result = mcp_call("github", "create_issue", {"title": "Fix login"})
# async tasks
import asyncio
r1, r2 = await asyncio.gather(
mcp("exa").acall("web_search_exa", {"query": "MCP"}),
mcp("context7").acall("resolve-library-id", {"query": "fastapi"}),
)TypeScript
import { mcp, mcp_call } from "@allybuild/sdk";
const github = await mcp("github");
const tools = await github.listTools();
const result = await github.call("create_issue", { title: "Fix login" });
// one-shot shorthand (60s per RPC)
await mcp_call("exa", "web_search_exa", { query: "MCP" });