WebMCP
Let in-browser AI use the tools Trek pages provide.
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
| Tool | Description |
|---|---|
trek_get_quickstart | MCP endpoint, per-tool setup and instructions (read-only) |
trek_search_docs | Search the docs (read-only) |
trek_open_signup | Open sign-in; the person signs in themselves |
Dashboard (signed in)
| Tool | Description |
|---|---|
trek_get_context | Current page, organisation and next step |
trek_navigate | Switch dashboard page (same site only) |
trek_list_assets | List assets and placements |
trek_create_asset | Register a site or app |
trek_create_placement | Create a placement |
trek_get_keys | Get public keys and ads.txt |
trek_revenue_summary | Revenue summary (sample data) |
Every call uses your current session and is re-authorised by the server — exactly like pressing the button yourself.