MCP 工具参考
本文对应 hotkit-cli 0.1.0 已发布的六个工具。代理通常会填写参数;你可以在这里检查调用与恢复步骤。
hotkit-cli 0.1.0 · stdio · Node.js ≥22 · 2026-11-27
浏览客户端指南开始前的准备
需要 Node.js 22 或更新版本、npm,以及能启动本地 stdio 进程的客户端。先运行以下两个检查命令。连接本服务不需要模型供应商 API key。
批准有效期为 30 天,不会自动续期。同一服务地址的 CLI 与 MCP 共用凭据。macOS 使用钥匙串,Windows 使用系统凭据存储,Linux 使用 Secret Service 或权限为 0600 的备用文件。设备授权请求在 10 分钟后过期。
示例仅用于说明;slug、代码、路径与会员状态以实际响应为准。本文不包含仓库里尚未发布的工具。0.1.0 没有退出、更新、回滚、列出本地安装或仅下载的 MCP 工具。
search_skills
用途
按关键词与输出类型搜索公开技能包。
参数
query· string · 可选- 关键词或名称;为空时搜索全部公开技能包。
type· string · 可选- 期望输出:html、slides、video 或 image。没有费用或供应商高级筛选。
limit· integer · 可选- 每页最多结果数。 1…20
offset· integer · 可选- 跳过的结果数。 0…∞
输出
返回 items、total 与 nextOffset。每项包含 slug、title、type、version、previewUrl、requiredInputs、dependencies、externalCostNotes、outputs 与 archiveAvailable。
调用示例
{
"name": "search_skills",
"arguments": {
"query": "bento-link-portfolio",
"type": "html",
"limit": 3,
"offset": 0
}
}对话示例
找三个发布技能包。
search_skills({"query":"bento-link-portfolio","type":"html","limit":3,"offset":0}){
"items": [
{
"slug": "bento-link-portfolio",
"title": "Bento Link Portfolio",
"description": "Get a single-file personal site with a serif intro, status, location, copy-to-clipboard email, project cards, links, latest writing and a call to action. Swap in your name, work, images, one of three themes and your brand color, and a checker confirms the grid holds at 1440 px and 390 px.",
"type": "html",
"version": "1.0.3",
"price": 499,
"free": true,
"member": false,
"tags": [],
"previewUrl": "https://hotkit.dev/skills/bento-link-portfolio",
"requiredInputs": [
"Name, a few words on what they do, and an email address",
"One or three projects with a title, type and year"
],
"dependencies": [
{
"name": "Node.js 22 or newer",
"required": true,
"used_for": "Running scripts/page.mjs to theme, check and screenshot the page"
},
{
"name": "Google Chrome, Chromium or Edge",
"required": true,
"used_for": "Headless measuring and screenshots in scripts/page.mjs"
}
],
"externalCostNotes": {
"has_cost": false,
"note": "None. Everything runs on your machine; no outside service is called.",
"billed_by": "",
"auto_retry": false
},
"outputs": [
"A single responsive index.html bento portfolio that doubles as a link-in-bio page",
"Three themes (paper, night, sage) plus any brand color, with built-in artwork when you have no images yet",
"A checker that measures overflow, overlaps, tiny text and the copy-email state at 1440 px and 390 px"
],
"archiveAvailable": true
}
],
"total": 1,
"nextOffset": null
}错误
不支持的字段、类型或分页会触发 Invalid argument,也可能出现网络错误。
限制
limit 为 1-20,默认 20;offset 非负,默认 0。query 与 type 默认空字符串。服务器将关键词裁到 200 字符。
get_skill
用途
安装前检查一个技能包。
参数
slug· string · 必填- search_skills 返回的精确技能包 slug。
输出
返回技能包元数据,包括价格、free/member 标记与需求。
调用示例
{
"name": "get_skill",
"arguments": {
"slug": "bento-link-portfolio"
}
}对话示例
展示这个包的需求。
get_skill({"slug":"bento-link-portfolio"}){
"slug": "bento-link-portfolio",
"title": "Bento Link Portfolio",
"description": "Get a single-file personal site with a serif intro, status, location, copy-to-clipboard email, project cards, links, latest writing and a call to action. Swap in your name, work, images, one of three themes and your brand color, and a checker confirms the grid holds at 1440 px and 390 px.",
"type": "html",
"version": "1.0.3",
"price": 499,
"free": true,
"member": false,
"tags": [],
"previewUrl": "https://hotkit.dev/skills/bento-link-portfolio",
"requiredInputs": [
"Name, a few words on what they do, and an email address",
"One or three projects with a title, type and year"
],
"dependencies": [
{
"name": "Node.js 22 or newer",
"required": true,
"used_for": "Running scripts/page.mjs to theme, check and screenshot the page"
},
{
"name": "Google Chrome, Chromium or Edge",
"required": true,
"used_for": "Headless measuring and screenshots in scripts/page.mjs"
}
],
"externalCostNotes": {
"has_cost": false,
"note": "None. Everything runs on your machine; no outside service is called.",
"billed_by": "",
"auto_retry": false
},
"outputs": [
"A single responsive index.html bento portfolio that doubles as a link-in-bio page",
"Three themes (paper, night, sage) plus any brand color, with built-in artwork when you have no images yet",
"A checker that measures overflow, overlaps, tiny text and the copy-email state at 1440 px and 390 px"
],
"archiveAvailable": true
}错误
缺少 slug、Invalid slug 或服务器找不到资源。
限制
slug 由小写字母、数字与单个连字符组成;不安装文件。
connect_account
用途
发起浏览器设备授权。
参数
无参数
输出
返回 verificationUrl、userCode 与 pollAfterSeconds,不返回凭据。
调用示例
{
"name": "connect_account",
"arguments": {}
}对话示例
连接我的账号以安装。
connect_account({}){
"verificationUrl": "https://hotkit.dev/connect?code=ABCDEF123456",
"userCode": "ABCDEF123456",
"pollAfterSeconds": 5
}错误
网络或限流错误;请求过期后重新开始。
限制
每个服务进程只保留一个待授权流程;展示代码并按间隔轮询。
connection_status
用途
轮询授权或检查共用凭据。
参数
无参数
输出
返回 connected;等待中包含 pending 与 pollAfterSeconds。缺少或过期凭据返回 nextTool: connect_account;已连接时包含 plan、membership 与 scope。
调用示例
{
"name": "connection_status",
"arguments": {}
}对话示例
授权完成了吗?
connection_status({}){
"connected": false,
"pending": true,
"pollAfterSeconds": 5
}错误
设备请求过期或已使用、网络或凭据存储错误。
限制
必须在发起授权的同一 MCP 进程中调用;另一个 CLI status 不能轮询内存中的请求。
account_status
用途
读取当前账号方案。
参数
无参数
输出
实现与 connection_status 相同,不返回邮箱或凭据。
调用示例
{
"name": "account_status",
"arguments": {}
}对话示例
连接的是哪个方案?
account_status({}){
"connected": true,
"plan": "free",
"membership": false,
"scope": "skill:install"
}错误
与 connection_status 相同的设备与凭据错误。
限制
0.1.0 不返回配额或到期日期。
install_skill
用途
下载、验证并安装一个技能包。
参数
slug· string · 必填- search_skills 返回的精确技能包 slug。
agent· string · 可选- 指定用户级技能目录;与 target 二选一。 claude-code · codex · cursor · openclaw · gemini-cli · opencode · shared
target· string · 可选- 明确的文件系统目录;使用绝对路径避免歧义。
输出
返回 installed 与 skillFile 路径,有备份时返回 backup。MCP 不能请求覆盖备份。
调用示例
{
"name": "install_skill",
"arguments": {
"slug": "bento-link-portfolio",
"target": "/absolute/path/to/skills"
}
}对话示例
将选中的技能包安装到我指定的位置。
install_skill({"slug":"bento-link-portfolio","target":"/absolute/path/to/skills"}){
"installed": "/absolute/path/to/skills/bento-link-portfolio",
"skillFile": "/absolute/path/to/skills/bento-link-portfolio/SKILL.md"
}错误
Choose agent or target、缺少授权、权限不足、目标已存在或压缩包不安全。
限制
agent 与 target 二选一。没有 force、projectDirectory 或版本参数。压缩包最多 64 MiB,解压最多 256 MiB;不执行脚本。
安装目录
claude-code → ~/.claude/skills
codex / cursor / gemini-cli / opencode / shared → ~/.agents/skills
openclaw → ~/.openclaw/workspace/skills
target → /absolute/path/to/skills没有专用安装目标的客户端请使用绝对 target 路径。安装文件不代表客户端会自动从该目录加载技能。打开 SKILL.md,按客户端支持的技能流程使用。
状态与恢复
授权过期请申请新代码。安装提示需要权限时,查看返回的定价链接,自行决定是否购买。目标包已存在时先保留原文件,MCP 没有 force 参数。完整性或路径检查失败时停止并报告错误。
401 → connect_account
403 → /pricing
404 → get_skill / search_skills
429 → retry later{
"isError": true,
"content": [
{
"type": "text",
"text": "{\"error\":\"Connect your Hotkit account\",\"message\":\"Connect your Hotkit account\",\"nextTool\":\"connect_account\"}"
}
]
}来源
hotkit-cli 0.1.0 (npm)npx --yes hotkit-cli@0.1.0 logout