Repository avatar
Other Tools
v1.3.0
active

teamdock

ai.teamdock/teamdock

WooCommerce back office: orders, customers, products, tickets, Peppol invoices. Changes need a yes.

Documentation

Teamdock MCP server

Teamdock is the back office for WooCommerce businesses in the EU: orders, customers, products, support tickets, invoices (Peppol), shipping and the team's own work, in one workspace. Every workspace is also an MCP server. Connect Claude, ChatGPT or another assistant that speaks MCP, sign in and approve: it reads your orders, customers, products and tickets, and asks before it changes anything.

This repository documents that server: how to connect, what it will and will not do, and every tool with its JSON schema. The server itself is part of Teamdock and is not in this repository.

Your server address

Every company has its own workspace, so every company has its own server:

https://yourcompany.teamdock.ai/mcp

Replace yourcompany with your workspace's name. A workspace that serves Teamdock on its own domain answers at that domain's /mcp too. The transport is Streamable HTTP.

Connecting

Before you start: an administrator switches on AI assistants under Settings → AI, and decides there whether connections may propose changes.

claude.ai, the Claude apps or ChatGPT: add a custom connector with your workspace address, yourcompany.teamdock.ai/mcp. Your assistant sends you to Teamdock: sign in, choose what it may do, and press Allow.

Claude Code:

claude mcp add --transport http teamdock https://yourcompany.teamdock.ai/mcp

It then signs in to Teamdock the same way. Hermes does too.

A client that takes a key instead: make a personal key under Settings → Security → AI assistants and send it as a bearer token:

claude mcp add --transport http teamdock https://yourcompany.teamdock.ai/mcp \
  --header "Authorization: Bearer <your key>"

Ask your question in your assistant. Changes it asks for appear in Teamdock under Approvals, on your phone too.

Signing in, for client authors

The workspace is its own OAuth 2.1 authorization server. /mcp answers 401 with a WWW-Authenticate header that points to its protected-resource metadata (/.well-known/oauth-protected-resource/mcp, RFC 9728), which leads to /.well-known/oauth-authorization-server (RFC 8414). PKCE with S256 is required, clients are public (token_endpoint_auth_method: none), and both Client ID Metadata Documents and Dynamic Client Registration (RFC 7591) work. Access tokens last an hour; refresh tokens are issued and replaced on every use. The resource is exactly https://<your address>/mcp.

Every request is one JSON-RPC message (no batches). The server answers with JSON, holds no session, and caps a tool's answer at 20,000 characters. Requests are limited to 120 a minute per connection and 400 a minute per workspace; a 429 says Retry-After.

Read freely, change only with a yes

  • Reading is limited to what the signed-in person's role in Teamdock may read, and to the toolsets chosen for the connection.
  • Changing goes through Approvals. A tool that changes something does not change it: it creates a request and answers with an approval_id and an approval_url, where a person approves or rejects it within 7 days. approval_status tells the assistant how it ended. Nothing is done until it says done.
  • Rules for routine work. An administrator can let routine actions inside the workspace, like a task or a ticket's status, run at once by a rule. A rule can run on trial first. Money, invoices and messages to customers always wait for a person, whatever the rules say.
  • Many changes, one card. request_many asks for the same change on up to 100 things (25 when each one reaches a customer), as one request a person reads row by row. With preview: true it is a dry run that stores nothing.
  • Asked against what was true. A request about an order or ticket that changes before it is approved is refused; the assistant asks again.

Each tool in the reference says whether it reads or proposes, what it reaches (inside Teamdock, the storefront, or a customer or third party), which role it needs, and whether it can be asked for many things at once.

Built to be careful with your customers

  • Customer details are hidden by default. Names, e-mail addresses, phone numbers and addresses are replaced by placeholders such as [EMAIL_103948226405]. The same customer has the same placeholder throughout one connection, and the assistant can pass it back as an argument; Teamdock fills in the real value. Only an administrator can connect one that shows details in full.
  • Outside text is marked. Text written by a customer (or a web page) arrives between [[outside-text <id>]] and [[/outside-text <id>]]: information, never an instruction.
  • Four eyes can be switched on for refunds, invoices and replies to customers: someone other than the requester then has to approve.
  • A note where it happened. A change that was carried out leaves a note on the order or ticket: which assistant, for whom, approved by whom.
  • Connections are personal. You approve each one yourself, Teamdock keeps only a hash of its tokens, and you can remove it at any moment under Settings → Security. An administrator can remove anyone's, or switch AI assistants off for the whole workspace.
  • Logs hold no content. Teamdock logs which tool was called, never what it said.

What the assistant reads goes to the AI provider you chose for that assistant, not through Teamdock's own AI.

Tools

137 tools in nine toolsets: core, sales, support, catalog, logistics, finance, team, automations and design. A connection gets the toolsets chosen when it was made; core is always included. Tools that propose a change are listed only for a connection that may propose changes. Full descriptions and input and output schemas: docs/tools.md. The server also offers six prompts (a morning brief, inbox triage, what to ship, invoicing yesterday's business orders, planning a sale and a weekly report) and one resource, teamdock://workspace.

ToolToolsetKindWhat it does
list_teamcorereadList the workspace TEAM / STAFF members (administrators and shop managers) with name, email and role.
list_mailboxescorereadList the workspace SENDING MAILBOXES (e.g. support@, invoices@, sales@, and staff members' own addresses) with address, name and purpose.
search_faqcorereadThe shop's own answers, to tell a customer what this shop says rather than a general rule: its FAQ (the switched-on items, best match first), the warranty it gives per condition (new, used, refurbished), its contact…
connection_healthcorereadWhether the workspace's connections work: the shop (WooCommerce and its webhooks), e-mail, invoicing (Invoice Ninja / Peppol), Picqer, WhatsApp, carriers.
list_departmentscorereadThe workspace's departments (its roles), by name: what create_task, update_task, update_ticket and list_tasks take as a department.
get_workspacecorereadThe shop and this connection in one answer: name, country, VAT number and plan; shipping setup and connected integrations; who you act for; and which toolsets and rights this connection has.
what_changedcorereadWhat happened since a moment: new and changed orders, tickets, your tasks, shipments with news, finished bean runs and your decided requests (each only where your role sees that part).
approval_statuscorereadHow a request you made with a changing tool ended: pending (a person has not answered yet), running (a request about many things is being carried out), done (it ran; "result" says what happened), failed, rejected…
request_manycoreproposeAsk for the same change on many things at once: one write tool (update_agenda_item, create_task, update_order_status, send_invoice, update_ticket_status, add_order_note, send_payment_request, update_customer,…
search_orderssalesreadSearch WooCommerce orders by text query (order number, customer, email), status, date range and/or total amount.
get_ordersalesreadFetch a single WooCommerce order by its numeric id and return a detailed summary (status, totals, customer, line items, tracking).
search_customerssalesreadFind WooCommerce CUSTOMERS (shoppers/buyers) by email or free-text search.
sales_reportsalesreadWooCommerce sales totals for a period: gross/net sales, order count, items sold, tax, shipping, refunds and discounts.
top_customerssalesreadCustomers by spend on paid orders of the last year, highest first; guests by e-mail.
list_couponssalesreadList WooCommerce coupons with their discount type/amount, usage and expiry.
website_analyticssalesreadStorefront / website traffic analytics from Umami for a period: total visitors, page views and visits, bounce rate, average visit duration, visitors online right now, a daily pageviews + visitors trend (the trend…
update_order_statussalesproposeChange a WooCommerce order's status (processing, completed, on-hold, cancelled, etc.).
refund_ordersalesproposeIssue a refund on a WooCommerce order — this RETURNS MONEY to the customer via the payment gateway.
duplicate_ordersalesproposeDuplicate an existing WooCommerce order into a NEW order — copies the customer, billing/shipping address and product lines (like the order detail page's Duplicate button).
set_order_shippingsalesproposeSet or add the shipping cost on an existing WooCommerce order.
add_order_itemsalesproposeAdd a product line to an existing WooCommerce order — e.g. adding items to a duplicated draft/quote before finalising it.
set_order_item_quantitysalesproposeChange the quantity of a product already on an order.
remove_order_itemsalesproposeRemove a product line from an order (e.g. trimming a duplicated draft before it becomes the official quote).
get_customersalesreadOne customer account by its id (search_customers gives it): name, e-mail, company, phone, billing and shipping address, VAT number, payment terms, lifetime orders and spend, and their 10 most recent orders.
list_order_notessalesreadThe notes on an order, newest first: private notes the team wrote and the ones sent to the customer (customer_note true), and what the shop's payment and shipping add.
order_status_countssalesreadHow many orders the shop has per status (pending, processing, on-hold, completed, quote, …), from the shop's own totals.
check_vatsalesreadCheck an EU VAT number with VIES (the EU's register): valid or not, and the registered name and address.
lookup_companysalesreadLook a Dutch company up in the Chamber of Commerce (KvK): by name (a list of matches with their KvK number and town) or by its 8-digit KvK number (address, RSIN and the VAT number derived from it, checked with VIES).
check_peppolsalesreadWhether a customer can receive invoices over Peppol (the e-invoicing network), and under which identity, asked of the Peppol directory now.
create_ordersalesproposeMake a new order for an existing customer account, exactly as the new-order form's three buttons do. kind: "order" (placed now; paid:true = paid at the counter → processing, else on-hold; needs payment_method),…
add_order_notesalesproposeAdd a note to an order.
send_payment_requestsalesproposeMail the customer the pay link of an unpaid order (the shop's own order-details mail).
send_quotesalesproposeMail a quote (an order with status quote) to the customer again, without a pay link: the shop's own quote e-mail when it has one.
accept_quotesalesproposeThe customer accepted a quote: it becomes an unpaid order and the shop mails the pay link.
create_customersalesproposeMake a customer account in the shop: e-mail and name, and a billing address (used as the shipping address too).
update_customersalesproposeChange a customer's contact details or billing address, VAT number or payment terms (days an invoice may stay open).
create_couponsalesproposeMake a coupon code in the shop.
delete_couponsalesproposeDelete a coupon code from the shop: it stops working at once.
list_ticketssupportreadList support tickets, optionally filtered by status (open, waiting_customer, closed, archived, all) or source (email, whatsapp, form, phone, chat).
get_ticketsupportreadFetch a single support ticket by id, including its message history (sender + text snippets).
update_ticket_statussupportproposeChange a support ticket's status — e.g. close, reopen, or mark waiting on the customer.
reply_ticketsupportproposeSend a reply to the customer on a support ticket, over the ticket's own channel (email or WhatsApp).
list_skipped_mailsupportreadMail the ticket filter did NOT turn into a ticket (newsletters, automatic replies, no-reply senders, the shop's block list), newest first, kept 30 days.
list_faqsupportreadThe shop's FAQ as the team keeps it: every item with its id, category, question, answer and whether it is switched on (only switched-on items feed reply suggestions and search_faq).
create_ticketsupportproposeOpen a support ticket by hand, e.g. for a phone call or a conversation in the shop: a title, what it is about, and optionally the customer's e-mail address, a priority and a colleague to give it to.
update_ticketsupportproposeChange a ticket's fields: give it to a colleague (assigned_to, by name; empty = nobody), a department (by name), its priority, its status (open, waiting_customer, closed) or snooze it until a day.
add_ticket_notesupportproposeWrite an internal note on a ticket: the team sees it, the customer never does, and no AI reads it.
link_ticket_ordersupportproposeRecord that an order belongs to a ticket (e.g. the order made from a customer's mail): the ticket shows the order number and the order gets a private note pointing back to the ticket.
restore_skipped_mailsupportproposeTurn a mail the ticket filter skipped into a ticket after all (its id from list_skipped_mail).
create_faq_itemsupportproposeAdd an FAQ item.
update_faq_itemsupportproposeChange an FAQ item (its id from list_faq): question, answer, category, or enabled to switch it on or off.
claim_ticketsupportproposeTake a ticket: it is assigned to the person (the Inbox's "Aan mij").
search_productscatalogreadList or search the WooCommerce product catalogue.
lookup_product_specscatalogreadLook a product's specifications up on the web by brand and model (dimensions, weight, power, capacity, connections, type numbers), each with the page it was read on.
get_productcatalogreadOne product in full: name, SKU, status, prices with the days of a planned sale (sale_from, sale_to), stock, categories, attributes, sizes and weight, its texts (as plain text), how many photos, its variations (id,…
find_product_by_codecatalogreadFind a product by its exact SKU (any status, drafts too) or its EAN/GTIN barcode.
list_categoriescatalogreadThe shop's product categories with their id and parent (0 = top level). create_product and update_product take categories by name or id.
list_attributescatalogreadThe shop's global product attributes (e.g. Merk, Staat, Aansluiting) with their id.
writing_guidecatalogreadHow this shop writes its product texts: who the shop is, tone, length, how it addresses customers, its own writing instructions and the writing rules it approved, an example description, the order of a product…
list_draftscatalogreadDraft products (not on the shop yet), newest first: what each still misses (price, photo, category) and the draft review's decision on it (approved / rejected, and by whom).
list_accessory_suggestionscatalogreadProducts that belong together, as Teamdock suggests them for the cart's "Past bij…" row (WooCommerce's cross-sells): an accessory, part or consumable for a main product, each with its reason in words (the accessory…
studio_quotacatalogreadHow many studio drafts this workspace has made this month and how many are left (Essentials has 25 a month; Pro and Max no number).
create_productcatalogproposeMake a new product as a DRAFT (never published from here: publish_products does that).
update_productcatalogproposeChange a product's name, texts, SKU, categories, sizes, weight or attributes (e.g. Merk).
set_pricecatalogproposeSet a product's (or one variation's) regular price, and optionally a sale price (empty sale_price ends the sale).
adjust_stockcatalogproposeSet how many of a product (or one variation) are in stock.
review_draftcatalogproposeGive the draft review's decision on a draft: approved (it may be published), rejected (with a reason), or none (take a decision back).
publish_productscatalogproposePublish products on the shop (drafts, or private ones).
reject_draftcatalogproposeReject a draft: it goes to the bin, and whoever made it gets a task with the reason.
duplicate_productcatalogproposeCopy a product under a new article number, as a DRAFT with everything of the original, its variations included.
trash_productcatalogproposeMove a product to the bin (WooCommerce keeps it 30 days).
rewrite_product_copycatalogproposeRewrite a DRAFT's texts in the shop's own style with the studio's writer (the shop's copy settings and learned rules).
print_product_labelscatalogproposePrint product labels on the shop's label printer (the default label design): one or more products, each with a number of labels.
reserve_skuscatalogproposeReserve article numbers for items that come in before their photos and draft, and print a label for each.
approve_accessoriescatalogproposePut suggested accessories in a product's cross-sells on the shop, so the cart shows them with it.
shipping_desklogisticsreadThe Shipping page: to_ship (paid orders without a shipment), on_the_way (default), problems (exceptions, failed attempts, returns, and shipments with no news for 5 days), delivered (30 days), costs (every invoiced…
get_shipmentlogisticsreadOne shipment: carrier, status, tracking, the quote and the carrier's invoice, how its booking went, and the timeline newest first with each event's source (carrier, Pier, the poll, the driver, the receiver, a person).
order_shippinglogisticsreadEverything about one order's shipping: the workspace's shipping setup, every shipment of the order (carrier, Pier, Picqer, returns), and what can be done: the carriers that can book it with the rule's choice, its…
quote_freightlogisticsreadPallet freight prices from the carriers that may quote (e.g. DACHSER), cheapest first by the rules.
dispute_packlogisticsreadEverything to dispute a carrier's invoice for one shipment (Pro and Max): the agreed price line by line, the invoice and the difference, the packages as booked, the delivery needs, the timeline and the proofs.
mark_pickedlogisticsproposeMark a paid order picked, with its packages (preset std, med, lrg for parcels; euro, half, block, pal80…pal200 for pallets; count; weight_kg each).
book_shipmentlogisticsproposeBook an order with a carrier that can book (e.g. DACHSER): a real truck and a real cost.
release_bookinglogisticsproposeRelease a booking that was made for review (DACHSER's "labelled" mode) to the carrier, so it comes to collect.
cancel_bookinglogisticsproposeCancel a booking with its carrier (it may already be on a truck: check get_shipment first).
print_shipping_labellogisticsproposePrint a booked shipment's label again on the shipping printer (only that printer, never the product-label one).
picqer_create_labellogisticsproposeUnder the Picqer setup: make the shipment in Picqer with the profile Picqer preselected for the order, and print its label. profile_id must be that preselection (order_shipping → picqer.shippingProfile.id); if Picqer…
picqer_batchlogisticsproposeUnder the Picqer setup: put these orders' open picklists into one batch in Picqer for the warehouse, and print the batch on the shipping printer when asked.
register_shipmentlogisticsproposeRegister an order's shipment with a carrier connected under Other carriers (Pier): its events then land on the order's timeline and the tracking page.
register_returnlogisticsproposeA return of a delivered (outgoing) shipment, by default with the same Pier carrier (Pro and Max).
make_tracking_linklogisticsproposeA login-free tracking page for one shipment (valid 60 days) to give the customer: day and window, status, the shop's contact.
get_invoice_statusfinancereadCheck whether a WooCommerce order has been invoiced via Invoice Ninja / Peppol, and if so its send and payment state.
send_invoicefinanceproposeInvoice a WooCommerce order through Invoice Ninja.
invoice_readinessfinancereadWhether an order can be invoiced now, and by which way: Peppol (the customer has a confirmed Peppol identity) or e-mail.
list_invoicesfinancereadThe workspace's order invoices as recorded in Teamdock (Invoice Ninja / Peppol). filter: all (default), unpaid, overdue (past the due date, unpaid; longest overdue first), peppol_failed (delivery failed), rejected…
list_manual_invoicesfinancereadInvoices made without an order (a service, a repair, a deposit), newest first. unpaid_only: sent and not yet paid.
list_attentionfinancereadWhat needs a person in finance now, as on the dashboard: invoices past their due date (unpaid), invoices whose Peppol delivery failed, and invoices the buyer rejected over Peppol (with Invoice Ninja's note).
refresh_payment_statusfinancereadAsk Invoice Ninja now for one invoice's payment state (and, for an order's invoice, its Peppol delivery and the buyer's answer).
mark_invoice_paidfinanceproposeBook the outstanding balance of a sent invoice as paid in Invoice Ninja (a bank transfer that came in).
retry_peppolfinanceproposeOffer an invoice (order_id) or a credit note (credit_id, from list_invoices) over Peppol again.
create_manual_invoicefinanceproposeMake an invoice that belongs to no order (a service, a repair, a deposit) in Invoice Ninja.
list_agendateamreadList shared team agenda/calendar entries in a date range, optionally filtered by title text.
create_agenda_itemteamproposeAdd an entry to the shared team agenda/calendar — a meeting, reminder or task visible to the whole team.
update_agenda_itemteamproposeMove or change an existing agenda/calendar entry by its id — e.g. reschedule a meeting to a new date/time, or rename it.
delete_agenda_itemsteamproposeDelete (cancel) specific agenda/calendar entries by their ids.
create_taskteamproposePut a task in the queue of ONE colleague (assignee, by name) or a department pool (department, by name), e.g. "Joris belt de klant morgen" or "laat logistiek de pallet nameten".
list_tasksteamreadTasks in the team's queue. scope mine (default): the person's own and the unclaimed ones in their departments; department: one department's pool (by name); all: everyone's. status open (default) or done.
todayteamreadThe person's day, as the phone app's Today shows it: tickets of theirs where it is our move, their tasks due or late (their departments' pools too), and how many orders came in today.
list_chat_channelsteamreadThe team chat channels the person may post in (each joins some departments, e.g. Sales / Warehouse). post_team_message takes a channel by name; without one it goes to the whole team chat.
list_discussionsteamreadDiscussions in the workspace (Team → Werkruimte) that the person is in: a ticket, order, product or customer the team talks over, with who owns it, who it waits on, and the bean's summary. status open (default) or…
get_discussionteamreadOne discussion with its messages (the last 60) and the bean's notes: problem, what was tried, decisions, who does what, open questions.
complete_taskteamproposeTick a task off (list_tasks gives its id).
reopen_taskteamproposeOpen a task that was ticked off again.
claim_taskteamproposeTake a task from a department's pool for the person (it becomes theirs).
update_taskteamproposeChange a task: its title, details, due date, priority (low, normal, high), or give it to a colleague (assignee, by name) or a department (by name).
delete_taskteamproposeDelete a task for good (tick it off instead when it is done).
post_team_messageteamproposePost a message in the team chat, or in a channel the person is in (by name, list_chat_channels).
start_discussionteamproposeStart a discussion in the workspace (Team → Werkruimte), blank or about a ticket, order, product or customer (source_kind + source_id).
post_discussion_messageteamproposeWrite in a discussion the person is in (never a confidential one).
solve_discussionteamproposeClose a discussion as solved, with a summary, and optionally keep what solved it for the next time (question + answer).
list_beansautomationsreadThe workspace's worker beans (Max): each one's name, job (logistics, copy, social), state and work instructions, and whether it takes work handed to it (takes_work) with the automations that would run.
hand_to_beanautomationsproposeHand a job to one of the workspace's worker beans instead of doing it yourself, e.g. let the copy bean rewrite a draft product or the logistics bean handle an order.
list_automationsautomationsreadThe workspace's automations: name, on or off, when it runs (trigger), which worker bean owns it, why the scheduler switched it off (after 10 failed runs), its last and next run. bean narrows it to one bean (its id).
get_automationautomationsreadOne automation: when it runs and what it does, block by block in words (with each block's path, as list_runs names the failed ones).
list_runsautomationsreadAn automation's recent runs, newest first: status, what it ran on, and which blocks failed with their error (or where it stopped to ask a person).
list_bean_asksautomationsreadQuestions the workspace's automations and beans are waiting on a person for (an "ask approval" block): what, who was asked, what runs after a yes, until when.
draft_automationautomationsproposeHave Teamdock draft an automation from a goal in plain words ("every workday at 8, remind logistics of what is open") and save it SWITCHED OFF, so a person can look at it in the editor.
switch_automationautomationsproposeSwitch an automation on or off.
run_automationautomationsproposeRun an automation once now, on an order (order_id) or a product (product_id) when its trigger needs one; a product automation without one takes the newest draft.
update_bean_instructionsautomationsproposeChange what a worker bean is told about its job (at most 1500 characters; empty clears it).
get_designdesignreadThe shop's website design as Teamdock keeps it: colours, type, header, footer, shop and product pages, the home page's sections (with their ids) and the other pages' sections.
design_guidedesignreadHow to change the design with edit_design: every operation and its fields, the section types and their variants, the looks, the rules a design is checked by.
preview_linkdesignreadA link to the shop's draft: the design saved in Teamdock as the shop shows it, before it is published.
list_design_imagesdesignreadThe shop's own pictures for the design: url, alt text, title, width and height, newest first, 30 a page, with an optional search.
edit_designdesignproposeChange the shop's website design: "operations_json" (a JSON array of the design guide's operations, carried out in order) or "design_json" (a whole design as get_design gives it).
publish_designdesignproposePublish the design Teamdock keeps (get_design) on the shop: every visitor sees it at once.
rollback_designdesignproposePut back the design the shop had before the last publish: every visitor sees it at once.
create_pagedesignproposeMake a new page on the shop (about us, payment, shipping and returns, terms, privacy, a page to sell to us), published at once: visitors can reach it.

About this repository

The tool reference is generated, not written by hand. scripts/generate.mjs asks the server's own code for its tool list, exactly as a connection gets it, writes catalog/tools.json, and renders docs/ and the table above from it. It needs a Teamdock source checkout, so only the Teamdock team can run it; --render-only re-renders from catalog/tools.json. server.json is the entry for the Official MCP Registry; see docs/publishing.md.

Questions: https://teamdock.ai/contact.

Licence

The documentation is licensed under CC BY 4.0; the scripts under the MIT licence (scripts/LICENSE). Teamdock and the Teamdock logo are not covered by either.

No installation packages available.