search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

add computed url field to search results

prevents hallucination of incorrect URLs by including
the actual web URL in the response

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

zzstoatzz a655f9f9 35ad4b51

+9 -1
+9 -1
mcp/src/leaflet_mcp/_types.py
··· 2 2 3 3 from typing import Literal 4 4 5 - from pydantic import BaseModel 5 + from pydantic import BaseModel, computed_field 6 6 7 7 8 8 class SearchResult(BaseModel): ··· 16 16 createdAt: str = "" 17 17 rkey: str 18 18 basePath: str = "" 19 + 20 + @computed_field 21 + @property 22 + def url(self) -> str: 23 + """web URL for this document.""" 24 + if self.basePath: 25 + return f"https://{self.basePath}/{self.rkey}" 26 + return "" 19 27 20 28 21 29 class Tag(BaseModel):