get_workplan
Retrieve GitHub issue workplan content to access detailed implementation plans and code feedback for development projects.
Instructions
Retrieves the workplan content (GitHub issue body) for a specified issue number.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_number | Yes |
Implementation Reference
- yellhorn_mcp/server.py:395-413 (handler)The main handler function that executes the get_workplan tool logic. It extracts the repository path from the context and calls get_issue_body to retrieve the GitHub issue body content for the specified issue number.async def get_workplan(ctx: Context, issue_number: str) -> str: """Retrieves the workplan content for a specified issue number. Args: ctx: Server context. issue_number: The GitHub issue number to retrieve. Returns: The workplan content as a string. Raises: YellhornMCPError: If retrieval fails. """ try: repo_path: Path = ctx.request_context.lifespan_context["repo_path"] return await get_issue_body(repo_path, issue_number) except Exception as e: raise YellhornMCPError(f"Failed to retrieve workplan: {str(e)}")
- yellhorn_mcp/server.py:391-394 (registration)The @mcp.tool decorator that registers the get_workplan tool with the FastMCP server, including its name and description.@mcp.tool( name="get_workplan", description="Retrieves the workplan content (GitHub issue body) for a specified issue number.", )