list-sites
Retrieve all accessible websites from your Plausible Analytics account to view and manage analytics data.
Instructions
List all sites you have access to in Plausible Analytics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:25-39 (handler)The 'list-sites' tool implementation using the PlausibleClient to fetch and return the list of sites.
server.tool( "list-sites", "List all sites you have access to in Plausible Analytics", {}, async () => { const sites = await client.listSites(); return { content: [ { type: "text", text: JSON.stringify(sites, null, 2), }, ], }; }