Not able to load the widget html with MCP server in python, checked with MCP inspector #180020
Unanswered
Sateesh-karagana
asked this question in
Programming Help
Replies: 1 comment 1 reply
-
|
Hi @Sateesh-karagana, thanks for being a part of the GitHub Community! The |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Feature Area
Issues
Body
I have aMCP server running in python
The server is running fine and i could test it with MCP inspector as suggested in the below doc
https://developers.openai.com/apps-sdk/quickstart
https://developers.openai.com/apps-sdk/build/mcp-server#structure-the-data-your-tool-returns
able to run the python server
I could see the resources and tools in the MCP inspector locally with the below
npx @modelcontextprotocol/inspector
I couldn't load the widget
Not sure if i am doing something wrong or something is missing, Could someone please help me out here to fix the issue.
The repo link is here and the steps to produce what i am trying to do
https://github.com/ecociel/mcp-app-python
Python 3.13.2
fastmcp 2.13.1
mcp 1.21.2
python server.py
npx @modelcontextprotocol/inspector
click on tools
click on get_info tool below
in the topic (right side), enter some string(oranges)
click on Run Tool
it show you "Success" and the structured content but the widget (html i have provided in the repo) is not getting loaded.
curl "http://localhost:8000/mcp/resource/ui%3A//widget/info-widget.html"Guidelines
Beta Was this translation helpful? Give feedback.
All reactions