Developer documentation
CLIHub API 与 MCP
将公开 CLI 目录接入搜索、产品或 AI Agent 工作流。搜索和详情接口无需登录;创建收录需使用带 tools:submit 权限的 API Key。
Search tools
GET /v1/tools?q=deploy&ecosystem=npm&agent_ready=true&sort=recentFilters: q, category, os, ecosystem, runtime, license, verified, agent_ready, updated, sort, page.
Read a tool
GET /v1/tools/wranglerReturns localized content when locale is provided, alongside install metadata, source context, and AI Agent readiness.
Submit a tool
POST /v1/submissions
Authorization: Bearer clihub_...Body: source_url, name, description, install_methods, category_ids, locale.
MCP server
{
"mcpServers": {
"clihub": { "url": "https://clihub.pages.dev/mcp" }
}
}Tools: search_cli_tools, get_cli_tool, submit_cli_tool, and get_submission_status. Search accepts page, limit (1–20), and response_format (compact or full); compact results are the default.