MCP 服务器

50heads 的 MCP 服务器

AI 助手可以连接到这里,根据 50heads 在其主页上发布的内容回答关于它的问题。企业所有者也可以用自己的助手管理企业。

连接

在您的助手的 MCP 设置中使用上方的服务器网址。任何人无需登录即可查询公开的企业信息。

Claude Code:在终端中运行以下命令。

Claude Code
claude mcp add --transport http 50heads https://50heads.uk.to.co/mcp

Cursor、VS Code、Windsurf 及大多数其他客户端:将服务器添加到其 MCP 配置文件中。

Cursor / VS Code / Windsurf
{
  "mcpServers": {
    "50heads": {
      "url": "https://50heads.uk.to.co/mcp"
    }
  }
}

查询企业信息

business 工具根据 50heads 在其主页上发布的内容作答,与访客看到的信息相同。主页上没有的信息会被略去,绝不猜测。任何人都可以调用,无需登录,也不收费。

助手在代人联系该企业之前,应先阅读该企业针对助手的政策(action assistant_policy)。该政策是企业自己的声明;to.co 不负责执行。

50heads 目前不接收助手发送的消息。

面向所有者

manage 工具供拥有 50heads 的账户使用。您的助手会请您登录 to.co(通过邮箱验证码、Google 或通行密钥),并批准它可以执行的操作。该连接仅对此企业有效。您账户中的代理令牌同样可用。

所有者每次登录后的调用都会消耗该企业一个月度 API 额度。查询企业信息则不会消耗。

创建代理令牌

工具

每个工具接收一个 action 及该 action 的参数。参数和结果均使用 snake_case 字段名。

business 关于此企业

企业在其主页上发布的内容:它是谁、如何联系、何时何地营业,以及它允许助手做什么。

操作作用参数访问权限
profile企业是谁:名称、业务内容、类别、网站及 to.co 是否已核对该网站、公司注册号和税务登记号(如有)、是否仍在经营、当前公告,以及主页最近一次更改的时间。无任何人
只读
contact如何联系:电话号码、邮箱地址(仅在确认后显示)、网站、菜单、订购和预约链接、其他服务、社交媒体主页,以及是否接收助手发送的消息。无任何人
只读
hours企业及每个地点的营业时间,包括即将生效的特殊营业时间,以及按企业所在时区各地点当前是否营业。提供一个日期即可获得当天适用的营业时间。
  • date string 某一天,格式 YYYY-MM-DD:返回当天适用的营业时间,包括特殊营业时间。
任何人
只读
locations注册地址和营业地点:每个地点的地址、电话号码、营业时间及在该处提供的服务。只有在 to.co 核实后才会提供街道地址。无任何人
只读
posts企业在 to.co 上发布的动态,按时间倒序:每条的标题、网址、首次发布日期和简短摘要。草稿绝不会列出。
  • limit integer 返回的数量。
任何人
只读
post按 slug 获取的一条已发布动态,格式为 Markdown:标题、日期和正文,与其页面显示的一致。
  • slug string, 必填 The post's slug, the last part of its address
任何人
只读
dealings登录后:你的连接所代表的企业与此企业之间的往来,依此人在 to.co 可见的范围:双向文件的编号、日期和状态(绝不含金额)、供应商申请,以及即将到期的文件。提供编号即可查找单个文件。 对于订单,还会逐行给出剩余部分,仅含数量。
  • number string A document number, e.g. INV-0193: only the documents between the two with that number
登录后,范围 companies:read
只读
assistant_policy企业允许助手为他人做什么:咨询、申请预约或申请报价(关闭、需确认或开启)、每天多少次请求,以及转交给谁处理。无任何人
只读
调用示例
{
  "name": "business",
  "arguments": {
    "action": "profile"
  }
}
messages 阅读此企业的消息(仅限所有者)

供企业所有者在登录后使用:阅读企业收到的消息。此企业目前不接收助手发送的消息,因此此工具无法发送消息。如需帮助他人联系此企业,请提供该企业页面的地址。

操作作用参数访问权限
list企业收到的消息,按时间倒序。
  • status string new、read、replied 或 archived(省略时包括全部四种)。
  • assignee string me (assigned to you), none (assigned to nobody) or a member's user id
  • kind string Only requests of this kind, e.g. order
  • limit integer 返回的数量。
所有者,权限范围 messages:read
只读
get企业收到的一条消息。
  • id string, 必填 消息 id,来自 action list。
所有者,权限范围 messages:read
只读
调用示例
{
  "name": "messages",
  "arguments": {
    "action": "list"
  }
}
manage 管理此企业

面向所有者:读取完整记录(包括草稿),并更改企业资料和营业地点。每次更改都会重新发布主页。

操作作用参数访问权限
profile企业的完整记录,包括草稿和私密设置。无所有者,权限范围 companies:read
只读
update_profile更改资料字段并重新发布主页。未提供的字段保持原值;空值会清除该字段。已注册公司的正式名称以登记信息为准,请改为设置其常用名称。
  • name string 未注册企业的名称。已注册公司不可设置。
  • informal_name string 较短的常用名称。
  • description string 企业的业务内容,最多 2,000 个字符。
  • website_url string 企业网站,完整的 https:// 网址。
  • email string 公开联系邮箱。新地址只有在其所有者通过发送到该邮箱的链接确认后才会显示在主页上。
  • phones object 按类型提供的电话号码(main、alt、local、fax、mobile、free、tty)。未提供的类型保持原值。
  • links object 菜单、订购和预约链接,以及网站的显示方式。
  • keywords string 搜索关键词,最多 1,000 个字符。
  • category string 主页上显示的企业类别,例如“面包店”。
  • vat_registration_number string 可选的税务登记号(增值税、商品及服务税或其他税制,视国家而定)。为保持兼容,字段名保持不变。
  • contact_preferences object 企业希望 to.co 联系它的方式:email、sms、post 和 tel,每项为 true 或 false。
  • social_links object 按平台提供的社交媒体主页:主页链接,X 和 Instagram 也可使用用户名。空值会删除该项。
所有者,权限范围 companies:write
会更改数据
locations企业的所有地点,注册地址排在首位,附记录键、营业时间、电话和社交媒体主页。无所有者,权限范围 companies:read
只读
update_location设置营业地点的简介、营业时间、特殊营业时间、电话号码或社交媒体主页,并重新发布主页。注册地址来自公司登记信息,无法在此更改。
  • location string, 必填 营业地点的记录键,来自 action locations。
  • description string 该地点提供的服务,用平实的语言描述。名称、地址、联系方式、链接和价格会被删除。
  • normal_hours array 每周营业时间,替换当前设置:每天最多四个时段,24 小时制。
  • special_hours array 节假日和停业时间,在对应日期替换每周营业时间。
  • phones object 按类型提供的电话号码(main、alt、local、fax、mobile、free、tty)。未提供的类型保持原值。
  • social_links object 按平台提供的社交媒体主页:主页链接,X 和 Instagram 也可使用用户名。空值会删除该项。
所有者,权限范围 companies:write
会更改数据
调用示例
{
  "name": "manage",
  "arguments": {
    "action": "profile"
  }
}
documents This business's documents

Read and share the trade documents an organization holds in its accounting systems (Xero: invoices and bills, credit notes, quotes, purchase orders, payments as remittance advices, and customer statements), read live through its to.co address. A member of the organization sees everything; anyone else sees only what a grant names, as the accounting system holds it now. Amounts are decimal strings; a document that does not reconcile under the rules is flagged in validation, never hidden. Documents made on to.co can be created, edited and moved through their lifecycle here: a draft you make is marked prepared, and a person in the organization confirms it in the to.co app before it can be issued; only a person issues or sends. Documents read from an accounting system are not changed through this tool, and a transition that is not built yet answers not_implemented. Confirm with the person before you share anything.

操作作用参数访问权限
listThe documents you may see at this organization, one page at a time: pass next_cursor back as cursor until it is null. A member names one type per call and reads the documents made on to.co first (its own, then those it received from trading partners), then every connected accounting system in turn, or one by connection. One type covers both directions: an invoice issued is a sale, an invoice received is a bill; filter with direction. direction received is the Received list: each document sent on to.co shows as a summary with mailbox.partner.host, the address to read it at with get.
  • type string rfq, quote, order, order_response, despatch_advice, receipt_advice, invoice, credit_note, debit_note, sales_receipt, remittance_advice, statement, application_response, order_change, order_cancellation (required for a member of the organization)
  • state string draft, issued, accepted, rejected, expired, closed, voided
  • direction string issued (the organization sent it) or received (it was sent to the organization)
  • connection string A member: one connected accounting system only (con_…)
  • cursor string next_cursor from the previous answer, to continue. Opaque, signed for you and this list, good for an hour
  • limit integer 返回的数量。
所有者,权限范围 documents:read
只读
getOne document, through the projection you are entitled to.
  • id string, 必填 消息 id,来自 action list。
  • projection string No broader than your grant allows
所有者,权限范围 documents:read
只读
createCreate a draft. The content must reconcile under the rules (GET /rules/{type}); the answer names any field that does not. A draft you make is marked prepared (prepared.via "assistant"): a person in the organization confirms it in the to.co app before it can be issued, and only a person issues or sends it.
  • type string, 必填 rfq, quote, order, order_response, despatch_advice, receipt_advice, invoice, credit_note, debit_note, sales_receipt, remittance_advice, statement, application_response, order_change, order_cancellation
  • content object, 必填 The document content, snake_case, as GET /rules/{type} of the organization API describes it: currency, parties, lines, taxes, totals, …
  • schema_version string A registered schema version, e.g. invoice/3.0, or invoice/3.1 for content with 3.1 fields such as taxes per line (default: worked out from the content)
所有者,权限范围 documents:write
会更改数据
updateEdit a draft with a JSON merge patch over its content (null removes a field, arrays replace whole), under the etag you read. Your change marks the draft prepared again, so a person confirms it again in the to.co app before it can be issued.
  • id string, 必填 消息 id,来自 action list。
  • content object, 必填 The document content, snake_case, as GET /rules/{type} of the organization API describes it: currency, parties, lines, taxes, totals, …
  • etag string, 必填 The etag from get
所有者,权限范围 documents:write
会更改数据
transitionRun a lifecycle transition: void, accept, reject, expire, close or record_settlement, as the document type allows (GET /rules/{type}). Issuing and sending a document need a person: a token is refused with session_required, so ask the person to issue or send it in the to.co app.
  • id string, 必填 消息 id,来自 action list。
  • transition string, 必填 issue, send, void, accept, reject, expire, close, record_settlement
  • reason string
  • settlement object For record_settlement on an issued invoice
  • etag string The etag from get, to refuse a transition on a document that changed
所有者,权限范围 documents:write
会更改数据
shareGrant a connected trading partner (by to.co address), or a person at one (by email), named access to documents, as the accounting system holds them, until a date. Anyone else is refused: invite the business as a partner first, in the to.co app. Payment details and internal accounting fields are shared only when named in actions.
  • ids array, 必填 The documents to share
  • recipient_email string A to.co user, by their verified email
  • recipient_host string An organization, by its to.co address; every current member of it may use the grant
  • actions array, 必填 What the recipient may do: resource.discover, resource.read, accounting.read, payment_instructions.read, resource.transition
  • projection string document_summary_v1, document_recipient_v1 (default) or document_owner_v1
  • expires_at string, 必填 When the access ends, ISO 8601, at most a year ahead
  • reason string, 必填 Why, for the audit log
所有者,权限范围 documents:share
会更改数据
revokeRevoke a grant at once, with every link and capability derived from it. Cannot be undone; share again instead.
  • grant_id string, 必填 From documents grants
所有者,权限范围 documents:share
会更改数据
grantsThe grants at this organization, a page at a time: all of them for a member (needs documents:share), your own otherwise.
  • cursor string next_cursor from the previous answer, to continue. Opaque, signed for you and this list, good for an hour
  • limit integer 返回的数量。
所有者,权限范围 documents:read
只读
requestsAccess requests at this organization, a page at a time (a member sees all; a requester their own).
  • state string Only requests in this state
  • cursor string next_cursor from the previous answer, to continue. Opaque, signed for you and this list, good for an hour
  • limit integer 返回的数量。
所有者,权限范围 documents:read
只读
decideApprove, reject or cancel an access request. Approval names exactly what is granted; nothing is inferred from the request.
  • request_id string, 必填
  • decision string, 必填
  • version integer, 必填 The version from documents requests, so two reviewers cannot both decide
  • note string
  • grant object For approve: what to grant
所有者,权限范围 documents:share
会更改数据
sendAsk the person to send one of this business's documents: a draft is confirmed and issued first, then sent on to.co to the connected trading partner it is for (channel partner) or by email as a signed link (channel email, with the address). Nothing is sent from here: you get a to.co address for the person, where they see exactly what will go and approve or decline it (72 hours). Give them the address. Call again with the same arguments to learn whether it went.
  • id string, 必填 消息 id,来自 action list。
  • channel string, 必填 partner: on to.co to the connected trading partner it is for; email: by email as a signed link
  • email string 公开联系邮箱。新地址只有在其所有者通过发送到该邮箱的链接确认后才会显示在主页上。
  • locale string channel email: the email's language, e.g. en-GB
所有者,权限范围 documents:write
会更改数据
调用示例
{
  "name": "documents",
  "arguments": {
    "action": "list"
  }
}
help 帮助

检查连接并阅读此服务器的指南。

操作作用参数访问权限
whoami连接是否已登录,以及在此可以使用哪些工具和操作。无任何人
只读
guide此服务器的指南,格式为 Markdown。无任何人
只读
调用示例
{
  "name": "help",
  "arguments": {
    "action": "whoami"
  }
}

资源和提示词

  • toco://guide — 此服务器的指南,格式为 Markdown。
  • toco://business — 主页所发布的企业信息,格式为 JSON。
  • visit_this_business — 企业何时营业、在哪里,以及如何联系。
  • review_this_business — 面向所有者:关于让资料措辞更清晰的建议。在您确认之前不会有任何更改。

限制

  • 单个调用方每分钟 120 次请求(代理令牌;没有令牌时按 IP 地址计)。
  • 所有调用方合计每分钟对此企业 600 次请求。
  • 单个调用方每小时调用 business 工具 600 次。
  • 请求正文最大 1,024 KB。
  • 超出限制时,返回 HTTP 429 及 Retry-After 标头。

发现

本页面也提供 Markdown 版本。