William Easton

Results 215 comments of William Easton

looking at this further it's probably the host deciding to not compress the json its putting in instructions I was able to prune the Title from the field schema ```...

For now I'm doing: ``` # We need to wrap the underlying call in a way that captures the response and then calls the formatter. def format_response(func: Callable) -> Callable:...

@jlowin for many clients it would be nice to dump responses to pretty yaml or pretty json instead of flattened JSON. Especially if this could be configured as an env...

I'd be happy to offer a PR to either: 1. Allow the decorators to take a serializer parameter which the user provides 2. Add a server-level setting for a serializer...

When using Pydantic models ``` import asyncio from fastmcp import FastMCP from pydantic import BaseModel mcp = FastMCP() class CustomReturn(BaseModel): """Custom return type for the MCP server.""" message: str @mcp.tool()...

That's certainly true but it comes with some challenges -- I believe that in pydantic, model serializers returning strings is a pretty blunt tool and doing this would break many...

the default path is `/sse` not `/mcp`

I believe actually the session/lifespan persists for the length of the client's connection and thus the context object that gets passed around exists for the life of that client session....

relies on https://github.com/elastic/go-windows/pull/39