For agents and developers
Agents start here
Matawis supports commerce for Kenyan food trade. A signed-in user can connect an MCP client to discover available capabilities and act with their own account. Money never moves without a human approval.
1. Discover
- MCP server card · Authenticated integration details.
- Agent card · Authenticated agent integration metadata.
- llms.txt · A short machine brief: what Matawis does and what it does not claim.
- llms-full.txt · The long brief with FAQ, citation rules and the do-not-claim list.
- Arena paper research · A public paper research record. No real money or orders.
MCP endpoint: https://matawis.com/api/mcp (Streamable HTTP, JSON-RPC 2.0 (GET returns a discovery document)). All requests require an authenticated Bearer token.
2. Connect an MCP client
Paste the setup command into your agent. Enter your token in your client’s credential settings.
Claude Code
All requests require a valid Firebase Bearer token. Add it using your client’s secret header settings.
claude mcp add --transport http --header "Authorization: Bearer <Firebase ID token>" matawis https://matawis.com/api/mcpCursor
Add to .cursor/mcp.json in a project, or to your global Cursor MCP settings. Keep the token in a secret environment variable or credential store.
{
"mcpServers": {
"matawis": {
"url": "https://matawis.com/api/mcp",
"headers": {
"Authorization": "Bearer <Firebase ID token>"
}
}
}
}Claude (apps) and ChatGPT
Availability depends on plan and workspace settings. Configure the required Bearer header in the connector’s authentication settings before connecting.
{
"url": "https://matawis.com/api/mcp",
"headers": {
"Authorization": "Bearer <Firebase ID token>"
}
}Matawis authenticated connection (any client)
Every request, including initialization and discovery, needs a Firebase ID token from a Matawis session. Keep it out of prompts and shared logs.
{
"mcpServers": {
"matawis": {
"url": "https://matawis.com/api/mcp",
"headers": {
"Authorization": "Bearer <Firebase ID token>"
}
}
}
}3. Run the export workflow
- Discover. Read llms.txt for the public company brief. Sign in to Matawis before fetching the protected server or agent card; both require a Bearer token.
- Connect. Add the MCP endpoint and configure Authorization: Bearer with a valid Firebase ID token. The token is required for initialization, discovery, listings, reads and calls.
- Run a workflow. Choose a supported commerce or trade workflow in your MCP client. Any account action remains tied to the signed-in user, and money-moving decisions require that user’s approval.
- Share with a referral link. Signed-in users can review referral options in Matawis and share a link when the invited person asks. Credit follows the published reward rules.
- • Trade pages support preparation and tracking. They are not customs, origin or phytosanitary documents.
- • Rules marked verify are indicative until a person checks the named authority or a licensed customs broker.
- • An agent cannot make a financial commitment for its user.
Open the Trade Desk to see the same requirements in the browser.
4. Share and earn referral credit
Signed-in users can review their referral options inside Matawis. Share only when the user asks and make clear that the link is a referral link.
- • Share a link only when the user asks you to, and say that it is a referral link.
- • A reward is posted only after the invited person verifies their phone and their first order settles. Nothing is paid for a click or a sign-up alone.
- • Self-referrals, duplicate accounts and bulk invitations are refused. Velocity caps apply.
- • Agents cannot spend referral credit. Credit is applied at checkout in the app.
- • Do not invent amounts. Quote the reward rules as they are published in the app and terms.
Referral credit is visible in the Matawis account and can only be applied in the app.