WebMCP

Let in-browser AI use the tools Trek pages provide.

Get my keys

WebMCP is a W3C WebML Community Group draft: pages offer tools to in-browser AI with document.modelContext.registerTool(). Early implementations used navigator.modelContext; Trek supports both.

Public pages

ToolDescription
trek_get_quickstartMCP endpoint, per-tool setup and instructions (read-only)
trek_search_docsSearch the docs (read-only)
trek_open_signupOpen sign-in; the person signs in themselves

Dashboard (signed in)

ToolDescription
trek_get_contextCurrent page, organisation and next step
trek_navigateSwitch dashboard page (same site only)
trek_list_assetsList assets and placements
trek_create_assetRegister a site or app
trek_create_placementCreate a placement
trek_get_keysGet public keys and ads.txt
trek_revenue_summaryRevenue summary (sample data)

Every call uses your current session and is re-authorised by the server — exactly like pressing the button yourself.