get_publications
Retrieve a list of publications from your Beehiiv newsletter account to access analytics and manage newsletter data.
Instructions
Get list of publications
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- server.js:192-200 (registration)Registration of the 'get_publications' MCP tool, including its name, description, and input schema (empty object).{ name: "get_publications", description: "Get list of publications", inputSchema: { type: "object", properties: {}, required: [] } },
- server.js:369-371 (handler)MCP tool handler for 'get_publications': calls BeehiivAPI client.getPublications() to execute the tool logic.case 'get_publications': result = await client.getPublications(); break;
- server.js:82-84 (handler)Core handler logic in BeehiivAPI.getPublications(): makes GET request to Beehiiv API /publications endpoint.async getPublications() { return await makeRequest('GET', `${this.baseUrl}/publications`, this.headers); }
- beehiiv_mcp_server.py:79-82 (helper)Supporting BeehiivAPI.get_publications() method (used by list_publications tool in Python MCP server).def get_publications(self) -> List[Dict[str, Any]]: """Get list of all publications.""" data = self._make_request("GET", "/publications") return data.get("data", [])