-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Inspector Version
- 0.20.0
Describe the bug
The "Run as Task" button is always available on the Tools Tab. But if a tool that cannot be run as a task has this checkbox checked when you run it, you get the error:
MCP error -32602: MCP error -32602: Invalid task creation result: [
{
"expected": "object",
"code": "invalid_type",
"path": [
"task"
],
"message": "Invalid input: expected object, received undefined"
}
]
This is confusing, because the availability of the "Run as Task" checkbox would indicate to a user that this tool could be run as a task.
To Reproduce
Steps to reproduce the behavior:
- Run the Everything server
npx @modelcontextprotocol/server-everything@latest streamableHttp - Run the Inspector:
npx @modelcontextprotocol/inspector@latest - Click Connect
- Click List Tools
- Click "Echo" tool in list
- Enter "Hello" in text to echo field
- Check "Run as Task"
- See Tool Result: Error status
- See JSON Error message below status
Expected behavior
- "Run as Task" should be hidden for tools whose
execution.taskSupportsetting isforbidden. - "Run as Task" should shown, enabled, and unchecked for tools whose
execution.taskSupportsetting isoptional. - "Run as Task" should shown, disabled, and checked for tools whose
execution.taskSupportsetting isrequired.
Screenshots
If a tool that cannot be run as a task has this checkbox checked when you run it, you get the following error state:
Environment (please complete the following information):
Any browser
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
Additional context
Add any other context about the problem here.
Version Consideration
Inspector V2 is under development to address architectural and UX improvements. During this time, V1 contributions should focus on bug fixes and MCP spec compliance. See CONTRIBUTING.md for more details.