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