MCP server
Streamable HTTP · OAuth 2.1 + PKCE · only your own data.
Endpoint
https://trek-staging.aotter.workers.dev/mcp
| Item | Details |
|---|---|
| Transport | Streamable HTTP |
| Auth | OAuth 2.1 authorization code + PKCE (S256), dynamic registration and Client ID Metadata Documents |
| Scopes | mcp, offline_access |
| Consent | A browser opens on first connection to sign in with Aotter and approve |
| Revoke | Dashboard → “AI & MCP” → “Authorised AI tools”, one tool at a time (signing out does not revoke) |
Tools
| Tool | Purpose | Type |
|---|---|---|
get_onboarding_status | Account, Trek organisation and next step | Read |
list_assets | List your sites and apps; with Trek connected, the selected Trek organisation's apps are read from Trek at that moment | Read |
list_placements | List ad placements; with Trek connected, places and their state are read from Trek at that moment | Read |
list_trek_orgs | List the Trek organisations you belong to | Read |
link_trek_org | Choose the Trek organisation whose assets are listed and new assets are created in | Write |
create_asset | Register a site (domain) or app (App Store ID for iOS, package name for Android; bundle ID for an iOS app not in the App Store yet) | Write |
report_asset_listing | Report that an app is now in its store (iOS with its App Store ID); app-ads.txt can be verified after that | Write |
update_asset | Rename an asset or change its category | Write |
verify_asset | Ask Trek to check ads.txt and verify ownership | Write |
get_sdk_capabilities | SDK versions, formats and sizes per platform (from the official install docs) | Read |
create_placement | Create a placement per the SDK docs: native multimedia or banner on websites; native, native multimedia or banner in apps | Write |
set_placement_state | Pause or resume a Trek placement | Write |
get_integration_skill | Get the install guide and keys: the aotter/skills SDK skills to use and this placement's keys | Read |
list_integration_keys | Get public keys (clientId, placeUid) and ads.txt | Read |
verify_integration | Check the install in four stages | Read |
get_revenue_report | Impressions, clicks, eCPM, fill rate and estimated revenue | Read |
get_payee_info | View the linked organisation's payee details (personal data masked by AotterTrek) | Read |
update_payee_info | Change the text fields of the linked organisation's payee details (send only what changes; images never pass through MCP and are uploaded in the dashboard) | Write |
get_wallet | View the linked organisation's wallet: amount available, balance, open payout requests, the minimum payout and why a payout cannot be requested now (payouts are requested in the dashboard only, never through MCP) | Read |
list_payout_requests | List the linked organisation's payout requests: status, amount, adjustments, amount paid and pay date | Read |
connections | List GAM, AdMob, AdSense and other sources | Read |
Recommended order
get_onboarding_status
sites # reuse if it already exists
create_asset { label, identifier, platform: "web"|"ios"|"android", category }
get_sdk_capabilities { platform } # formats and sizes from the SDK docs
create_placement { siteid, name: "article_inline", format: "supr_ad", size: "300x250" }
get_integration_skill { placementid } # the aotter/skills skills to use and this placement's keys
list_integration_keys { siteid } # public IDs, ads.txt, .env snippet
verify_integration { siteid, url }
Errors
TREK_REAUTH_REQUIRED: your AotterTrek authorization is no longer valid: it is older than 30 days, or you signed out of the dashboard somewhere (signing out also disconnects your connected AI tools). Open /sign-in in a browser, sign in again, then retry.CONFLICT: the platform and identifier, or the placement name, already exist. Read and reuse.NOT_FOUND: the resource doesn't exist or isn't yours.- If a write's result is unclear (timeout, disconnect), read first — don't retry blindly.
Current statusThe Trek organisation, credentials, production keys and reports are currently mock or sample data (marked
mode: "mock" | "demo"); assets and placements are stored for real. See API status.