Partner MCP Server — Developer Guide
Connect your AI client to the Syntropy Partner Analytics server for protocol performance insights.Overview
The Partner MCP Server provides analytics tools for Shopify partners to monitor protocol performance, consumer behavior, and adherence trends. It runs alongside the consumer MCP server but uses separate authentication scopes.Connection
| Property | Value |
|---|---|
| Transport | Streamable HTTP |
| Endpoint | https://api.syntropyhealth.com/mcp/partner |
| Auth | Bearer token (Clerk JWT) |
| Required Scopes | partner:read |
Claude Desktop
Add toclaude_desktop_config.json:
Tool Catalog
get_protocol_analytics
Get extended analytics for a protocol including churn risk, consumption rate, and projected demand.| Parameter | Type | Required | Description |
|---|---|---|---|
protocol_id | int | Yes | The protocol’s database ID |
get_partner_overview
Get a summary of all protocol performance across your portfolio. Returns average PDC, active users, average streak days, and total protocols. No parameters required.get_protocol_timeline_view
Get weekly check-in timeline data for a protocol in a given month. Returns weekly buckets with taken/skipped/missed counts.| Parameter | Type | Required | Description |
|---|---|---|---|
protocol_id | int | Yes | The protocol’s database ID |
year | int | Yes | Year (2020-2030) |
month | int | Yes | Month (1-12) |
get_protocol_sentiment_view
Get weekly sentiment distribution for a protocol in a given month. Returns weekly positive/negative/neutral note counts.| Parameter | Type | Required | Description |
|---|---|---|---|
protocol_id | int | Yes | The protocol’s database ID |
year | int | Yes | Year (2020-2030) |
month | int | Yes | Month (1-12) |
partner_copilot
Ask the Shrine AI partner analytics copilot a question. Get AI-generated insights about your protocol performance.| Parameter | Type | Required | Description |
|---|---|---|---|
question | str | Yes | Your question about protocol analytics |
protocol_id | int | No | Optional protocol ID to focus the analysis on |
Rate Limits
| Operation | Limit |
|---|---|
| Read tools | 60 requests/minute |
| Write tools | 20 requests/minute |
Error Handling
All tools return a JSON dict. On error:"Authentication required"— missing or invalid JWT, or wrong scope"Rate limit exceeded"— too many requests, wait and retry"Service temporarily unavailable"— backend service issue
Discovery
- Capabilities:
GET /api/mcp/capabilities - Full docs:
GET /api/mcp/docs - Agent discovery:
GET /llms.txt - Health check:
GET /api/health