A minimal standalone client for the Poggio MCP server that demonstrates:
- Creating an account (with graceful error handling for existing accounts)
- Polling search results until specific pages are ready
- Fetching the named pages and logging their content
# Install dependencies
uv sync# Run the client
uv run python main.pyThe client looks for these pages for domain "example.com":
- "Overview"
- "Business Case"
It will poll every 5 seconds for up to 10 minutes waiting for these pages to be available.
POGGIO_MCP_SERVER_URL: URL of the MCP server (default: https://mcp.poggio.io/mcp)POGGIO_AUTH_TOKEN: Authentication token for the Poggio API (required)
- Creates account: Calls the
create_accountMCP tool for domain "example.com" - Polls for readiness: Uses the
searchtool to check page status every 5 seconds - Fetches content: Once pages show
status: "ready", fetches full content viafetchtool - Logs results: Outputs page titles, URLs, and content previews to console