list_own_publications
List the publications you can publish to on Medium, returning each publication's id and name to use with publish_post.
Instructions
Read-only. Publications the authed user can publish to as editor or writer. Returns id + name pairs; use the id with publish_post's publication_id to publish into a publication. Requires the Medium integration token (MEDIUM_INTEGRATION_TOKEN).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/medium_ops/client.py:671-677 (handler)The actual handler for list_own_publications in the MediumClient class. Calls GET /me to get the user ID, then GET /users/{uid}/publications to retrieve the list of publications the authenticated user can publish to.
def list_own_publications(self) -> list[dict[str, Any]]: me = self._api(method="GET", path="/me") uid = me.get("id") if not uid: return [] data = self._api(method="GET", path=f"/users/{uid}/publications") return data if isinstance(data, list) else [] - src/medium_ops/mcp/server.py:223-231 (schema)MCP tool schema/registration for list_own_publications. Defines the tool description and input_schema (no required parameters).
"list_own_publications": { "description": ( "Read-only. Publications the authed user can publish to as editor or " "writer. Returns id + name pairs; use the id with publish_post's " "publication_id to publish into a publication. Requires the Medium " "integration token (MEDIUM_INTEGRATION_TOKEN)." ), "input_schema": {"type": "object", "properties": {}}, }, - src/medium_ops/mcp/server.py:471-472 (registration)Dispatch logic in _dispatch() that routes the 'list_own_publications' tool name to c.list_own_publications() on the MediumClient.
if name == "list_own_publications": return c.list_own_publications() - src/medium_ops/cli.py:526-530 (helper)CLI command 'profile publications' that wraps c.list_own_publications() for command-line usage.
@profile_app.command("publications") def profile_publications() -> None: """Publications you can publish to (integration token).""" with _client() as c: _json(c.list_own_publications())