PiPic Integration Guide
Read-only PiPic CLI and HTTP API guidance; no image bytes are transferred.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"pipic": {
"url": "https://pipic.cc/mcp"
}
}
}遠端端點
https://pipic.cc/mcpstreamable-http它能做什麼
工具清單
工具(3)
🟢get_compression_facts
What PiPic can compress, the file-size and batch limits, and how the free/Pro monthly allowance for the CLI and HTTP API works. Read this before telling a user what PiPic can do for them.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢get_integration_guide(mode)
Step-by-step integration instructions for actually compressing images — either through the @pipic/cli command-line tool (best for whole directories) or over plain HTTP (no Node required). Includes the output contract, exit codes, error codes and which failures are worth retrying.
輸入結構描述
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"cli",
"http"
],
"description": "\"cli\" for the @pipic/cli tool, \"http\" for calling POST /compress/image directly."
}
},
"required": [
"mode"
],
"additionalProperties": false
}🟡check_image_supported(filename, contentType, sizeBytes)
Given a filename, MIME type and/or byte size, says whether PiPic will accept the image and, if not, which error an upload would return. Use it to filter a file list locally instead of spending quota on requests that are going to be rejected.
輸入結構描述
{
"type": "object",
"properties": {
"filename": {
"type": "string",
"description": "File name or path; the extension is used to infer the type."
},
"contentType": {
"type": "string",
"description": "MIME type, if you already know it. Takes precedence over filename."
},
"sizeBytes": {
"type": "integer",
"description": "File size in bytes, if known."
}
},
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"supported": {
"type": "boolean",
"description": "Whether PiPic will accept this image."
},
"contentType": {
"type": [
"string",
"null"
],
"description": "The MIME type that was determined, to send as the Content-Type header."
},
"reason": {
"type": "string",
"description": "Why — including which error code an upload would return."
}
},
"required": [
"supported",
"reason"
]
}建議的提示詞
get_compression_factsget_compression_facts社群
證據