mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 10:18:08 +02:00
Fix type: use TasksCallCapability instead of dict
This commit is contained in:
parent
b61c76b19b
commit
3c3a62ee7d
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ from importlib.util import find_spec
|
|||
from mcp.types import (
|
||||
ServerTasksCapability,
|
||||
ServerTasksRequestsCapability,
|
||||
TasksCallCapability,
|
||||
TasksCancelCapability,
|
||||
TasksListCapability,
|
||||
TasksToolsCapability,
|
||||
|
|
@ -34,7 +35,7 @@ def get_task_capabilities() -> ServerTasksCapability | None:
|
|||
list=TasksListCapability(),
|
||||
cancel=TasksCancelCapability(),
|
||||
requests=ServerTasksRequestsCapability(
|
||||
tools=TasksToolsCapability(call={}),
|
||||
tools=TasksToolsCapability(call=TasksCallCapability()),
|
||||
prompts={"get": {}},
|
||||
resources={"read": {}},
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue