MCP server

Streamable HTTP · OAuth 2.1 + PKCE · only your own data.

Get my keys

Endpoint

https://trek-staging.aotter.workers.dev/mcp
ItemDetails
TransportStreamable HTTP
AuthOAuth 2.1 authorization code + PKCE (S256), dynamic registration and Client ID Metadata Documents
Scopesmcp, offline_access
ConsentA browser opens on first connection to sign in with Aotter and approve
RevokeDashboard → “AI & MCP” → “Authorised AI tools”, one tool at a time (signing out does not revoke)

Tools

ToolPurposeType
get_onboarding_statusAccount, Trek organisation and next stepRead
list_assetsList your sites and apps; with Trek connected, the selected Trek organisation's apps are read from Trek at that momentRead
list_placementsList ad placements; with Trek connected, places and their state are read from Trek at that momentRead
list_trek_orgsList the Trek organisations you belong toRead
link_trek_orgChoose the Trek organisation whose assets are listed and new assets are created inWrite
create_assetRegister 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_listingReport that an app is now in its store (iOS with its App Store ID); app-ads.txt can be verified after thatWrite
update_assetRename an asset or change its categoryWrite
verify_assetAsk Trek to check ads.txt and verify ownershipWrite
get_sdk_capabilitiesSDK versions, formats and sizes per platform (from the official install docs)Read
create_placementCreate a placement per the SDK docs: native multimedia or banner on websites; native, native multimedia or banner in appsWrite
set_placement_statePause or resume a Trek placementWrite
get_integration_skillGet the install guide and keys: the aotter/skills SDK skills to use and this placement's keysRead
list_integration_keysGet public keys (clientId, placeUid) and ads.txtRead
verify_integrationCheck the install in four stagesRead
get_revenue_reportImpressions, clicks, eCPM, fill rate and estimated revenueRead
get_payee_infoView the linked organisation's payee details (personal data masked by AotterTrek)Read
update_payee_infoChange 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_walletView 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_requestsList the linked organisation's payout requests: status, amount, adjustments, amount paid and pay dateRead
connectionsList GAM, AdMob, AdSense and other sourcesRead

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.