list_peps
List active Python Enhancement Proposals (PEPs) with compact metadata to track Python language development and proposals.
Instructions
List active Python PEPs with compact metadata.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_peps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/pep_mcp_server/server.py:13-16 (handler)Tool handler registration and implementation for `list_peps`.
@mcp.tool async def list_peps() -> list[dict]: """List active Python PEPs with compact metadata.""" return await peps_client.list_active_peps() - Implementation logic for `list_peps` inside the PepsClient helper.
async def list_active_peps(self) -> list[dict[str, Any]]: """Return compact metadata for active PEPs only.""" index = await self._get_index() return self._to_compact_active_list(index)