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 版本。