Ensure functions have docstrings for documentation
async def read_item(item_id: str):
1from fastapi import FastAPI2from fastapi.responses import JSONResponse3from pydantic import BaseModel456class Item(BaseModel):7 id: str8 value: str91011class Message(BaseModel):12 message: str131415app = FastAPI()161718@app.get("/items/{item_id}", response_model=Item, responses={404: {"model": Message}})19async def read_item(item_id: str):20 if item_id == "foo":21 return {"id": "foo", "value": "there goes my hero"}22 return JSONResponse(status_code=404, content={"message": "Item not found"})
Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.