Repository navigation
Replies: 1 comment
|
With the current For a headless test, you can bypass the picker and navigate directly to the launch route: For example, with no arguments: from urllib.parse import urlencode
query = urlencode({"tool": "file_upload", "args": "{}"})
url = f"http://127.0.0.1:8080/launch?{query}"Use the exact registered tool name shown by the picker, and include any required tool arguments in the JSON object. The direct route reads Current implementation: fastmcp/fastmcp_slim/fastmcp/cli/apps_dev.py Lines 1424 to 1495 in 2061bc4 The documented Launch form is therefore only the normal interactive entry point for the dev UI: fastmcp/docs/apps/development.mdx Lines 15 to 44 in 2061bc4 If the screen is instead coming from a production MCP host as a permission or consent step, that behavior is controlled by the host and cannot be disabled from the FastMCP app definition. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm playing with MCP Apps feature provided by FastMCP, with HEADLESS browser MCP server.
When I tested fastmcp_slim/fastmcp/apps/file_upload.py via examples/apps/file_upload/file_upload_server.py,
It shows launch screen and it needs to press 'launch' to reach main screen.
Is it possible to omit launch screen from MCP Apps ?
When operating MCP Apps UI with HEADLESS browser MCP server, launch button and screen are no meaning.
I just want to get main screen directly, which defined with prefab UI.
Even there is no statements regarding launch screen in @self.ui() as below, it shows launch screen before main screen:
fastmcp/fastmcp_slim/fastmcp/apps/file_upload.py
Lines 307 to 329 in d8dcc27
All reactions