DEVELOPER PORTAL · ZERO-KEY SANDBOX
开发者门户
无需申请 Key 或审批即可直接调用公开 REST API、Streamable HTTP MCP 服务器与非破坏性沙箱端点。
30 秒快速开始
bash
# 1. Verify API health and version
curl -s "https://www.guizang.ai/api/v1/status"
# 2. Discover sandbox capabilities & test idempotent echo
curl -s "https://www.guizang.ai/api/v1/sandbox"
curl -s -X POST "https://www.guizang.ai/api/v1/sandbox/echo" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
-d '{"message":"hello from agent sandbox"}'
# 3. Exercise 202 Accepted async job creation & polling
curl -i -s -X POST "https://www.guizang.ai/api/v1/sandbox/jobs" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: job-demo-001" \
-d '{"task":"search-preview","query":"CodePilot"}'
# Follow the Location header returned in the 202 response:
# curl -s "https://www.guizang.ai/api/v1/sandbox/jobs/<jobId>"
# 4. Inspect live MCP tools over Streamable HTTP
curl -s -X POST "https://www.guizang.ai/api/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'TypeScript 调用示例
typescript
const res = await fetch("https://www.guizang.ai/api/v1/works?category=agent&limit=10", {
headers: { Accept: "application/json" },
});
const { items, pagination } = await res.json();
console.log(items.map((w: { slug: string; stars: number | null }) => [w.slug, w.stars]), pagination);浏览器内 WebMCP 工具
全站每个页面均通过 document.modelContext.registerTool()(兼容回退 navigator.modelContext)向浏览器 Agent 注册 5 个真实可执行的只读工具:search_guizang_site、list_guizang_works、get_guizang_work、read_guizang_article 与 ask_guizang_site。
更多接口说明见 API 文档 · MCP 服务器 · Sandbox JSON · OpenAPI 3.1 · 免费与限额说明