Peecho MCP by usefulapi
Read print products, quotes and orders; create orders, set print files and addresses in Peecho.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"peecho": {
"url": "https://peecho.usefulapi.io/mcp"
}
}
}远程端点
https://peecho.usefulapi.io/mcpstreamable-http它能做什么
工具清单
工具(10)
🟢peecho_list_categories
List Peecho product categories and their sub-category codes (for example Books / HC). Use a sub-category code with peecho_list_offerings. Peecho API: GET /rest/v3/categories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢peecho_list_offerings(subCategoryFilter)
List the print products (offerings) available to this merchant, grouped by category code. Each offering has an id, name, paper type and minimum quantity. Peecho API: GET /rest/v3/offering/list.
输入模式
{
"type": "object",
"properties": {
"subCategoryFilter": {
"description": "Sub-category code from peecho_list_categories, e.g. HC (hardcover books).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢peecho_get_offering_countries(offering_ids)
Return the countries each offering can ship to. Read-only. Peecho API: POST /rest/v3/offering/countries.
输入模式
{
"type": "object",
"properties": {
"offering_ids": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Offering id (the id field from peecho_list_offerings)."
},
"description": "Offering ids to check."
}
},
"required": [
"offering_ids"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢peecho_get_offering_spine(offering_id, country_code, number_of_pages)
Calculate the spine width (in millimetres) an offering needs for a page count in a country. Read-only. Peecho API: GET /rest/v3/offering/spine.
输入模式
{
"type": "object",
"properties": {
"offering_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Offering id (the id field from peecho_list_offerings)."
},
"country_code": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "ISO 3166-1 alpha-2 country code, e.g. NL."
},
"number_of_pages": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Number of pages in the print file."
}
},
"required": [
"offering_id",
"country_code",
"number_of_pages"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢peecho_request_quote(items, country_code, state, currency)
Return prices, currency and shipping for items sent to a destination. It does not create an order. Peecho API: POST /rest/v3/quote.
输入模式
{
"type": "object",
"properties": {
"items": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"offering_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Offering id (the id field from peecho_list_offerings)."
},
"number_of_pages": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"quantity": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"offering_id",
"number_of_pages",
"quantity"
]
}
},
"country_code": {
"description": "Destination country code.",
"type": "string",
"pattern": "^[A-Za-z]{2}$"
},
"state": {
"description": "Destination state or region code, where needed.",
"type": "string"
},
"currency": {
"description": "ISO 4217 currency, e.g. EUR.",
"type": "string",
"pattern": "^[A-Za-z]{3}$"
}
},
"required": [
"items"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢peecho_get_order(order_id)
Get an order's state (for example OPEN or PAID), price data, shipping address and items. Read-only. Peecho API: GET /rest/v3/order/details.
输入模式
{
"type": "object",
"properties": {
"order_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "The order id (from peecho_create_order or the Peecho dashboard)."
}
},
"required": [
"order_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢peecho_get_order_spine(order_id)
Return the spine width for each item in an order. Read-only. Peecho API: GET /rest/v3/order/spine/.
输入模式
{
"type": "object",
"properties": {
"order_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "The order id (from peecho_create_order or the Peecho dashboard)."
}
},
"required": [
"order_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴peecho_create_order(purchase_order, currency, item_details, address_details)
WRITE: create an OPEN print order with one or more items. It does not pay for the order, and nothing is printed until it is paid in Peecho. Items need a unique item_reference. Peecho API: POST /rest/v3/order/.
输入模式
{
"type": "object",
"properties": {
"purchase_order": {
"description": "Your own purchase order reference.",
"type": "string"
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "ISO 4217 currency, e.g. EUR."
},
"item_details": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"item_reference": {
"type": "string",
"minLength": 1,
"description": "Your own reference for this item. It must be unique across Peecho orders."
},
"offering_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Offering id (the id field from peecho_list_offerings)."
},
"quantity": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"file_details": {
"description": "The print file. Omit it and send the file later with peecho_set_order_files.",
"type": "object",
"properties": {
"content_url": {
"type": "string",
"format": "uri",
"description": "Public URL of the print file (PDF)."
},
"content_width": {
"description": "Print width in millimetres (the Peecho example uses 210).",
"type": "number",
"exclusiveMinimum": 0
},
"content_height": {
"description": "Print height in millimetres (the Peecho example uses 210).",
"type": "number",
"exclusiveMinimum": 0
},
"number_of_pages": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"content_url",
"number_of_pages"
]
}
},
"required": [
"item_reference",
"offering_id",
"quantity"
]
}
},
"address_details": {
"description": "Customer and shipping address. Set it later with peecho_update_order_address if omitted.",
"type": "object",
"properties": {
"email_address": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"shipping_address": {
"type": "object",
"properties": {
"first_name": {
"type": "string",
"minLength": 1
},
"last_name": {
"type": "string",
"minLength": 1
},
"address_line_1": {
"type": "string",
"minLength": 1
},
"address_line_2": {
"type": "string"
},
"zip_code": {
"type": "string",
"minLength": 1
},
"city": {
"type": "string",
"minLength": 1
},
"state": {
"description": "State or region code, where the country uses one.",
"type": "string"
},
"country_code": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "ISO 3166-1 alpha-2 country code, e.g. NL."
}
},
"required": [
"first_name",
"last_name",
"address_line_1",
"zip_code",
"city",
"country_code"
]
}
},
"required": [
"email_address",
"shipping_address"
]
}
},
"required": [
"currency",
"item_details"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡peecho_update_order_address(order_id, address_details)
WRITE: replace the customer email and shipping address on an open order. Peecho API: POST /rest/v3/order/address.
输入模式
{
"type": "object",
"properties": {
"order_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "The order id (from peecho_create_order or the Peecho dashboard)."
},
"address_details": {
"type": "object",
"properties": {
"email_address": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"shipping_address": {
"type": "object",
"properties": {
"first_name": {
"type": "string",
"minLength": 1
},
"last_name": {
"type": "string",
"minLength": 1
},
"address_line_1": {
"type": "string",
"minLength": 1
},
"address_line_2": {
"type": "string"
},
"zip_code": {
"type": "string",
"minLength": 1
},
"city": {
"type": "string",
"minLength": 1
},
"state": {
"description": "State or region code, where the country uses one.",
"type": "string"
},
"country_code": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "ISO 3166-1 alpha-2 country code, e.g. NL."
}
},
"required": [
"first_name",
"last_name",
"address_line_1",
"zip_code",
"city",
"country_code"
]
}
},
"required": [
"email_address",
"shipping_address"
]
}
},
"required": [
"order_id",
"address_details"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡peecho_set_order_files(files)
WRITE: send the print file URL for each item of an order. Each merchant_item_reference must match an item_reference of the order. Peecho API: POST /rest/v3/order/files.
输入模式
{
"type": "object",
"properties": {
"files": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"merchant_item_reference": {
"type": "string",
"minLength": 1,
"description": "The item_reference of the order item."
},
"source_file": {
"type": "string",
"format": "uri",
"description": "Public URL of the print file (PDF)."
}
},
"required": [
"merchant_item_reference",
"source_file"
]
}
}
},
"required": [
"files"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社区
证据