Skip to content

Conversation

@adrianlyjak
Copy link
Contributor

@adrianlyjak adrianlyjak commented Jun 20, 2025

This would be better to mount to each deployment at a sub-path, but this was just a quick hack as a demo. This shouldn't be merged, just putting it here as a reference.

It includes an example mcp server that acts as a knowledge base that can scrape data from the web, to act as a documentation helper.

In general, I found the event formatting and the meta data (descriptions) to be the more complex part. If we pursue something like this, it might be nice to add some mechanism to be able to have a format Event outputs to one more suitable for a model's consumption, rather than just dumping out the json.



app = FastAPI(lifespan=lifespan)
app.mount("/", mcp_app.sse_app())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sse is deprecated on MCP, FYI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I know. It was working for a bit (added it to the lifespan with the async context manager), but then something went sideways, and it consistently stopped working. I stopped debugging. The vibes I'm getting are that SSE is deprecated, but streaming is not yet very stable 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants