Add resource Link (#974)
This commit is contained in:
parent
86bb54cb28
commit
d0443a1832
1 changed files with 66 additions and 22 deletions
|
|
@ -45,7 +45,7 @@ def main(
|
|||
app = Server("mcp-streamable-http-demo")
|
||||
|
||||
@app.call_tool()
|
||||
async def call_tool(name: str, arguments: dict) -> list[types.Content]:
|
||||
async def call_tool(name: str, arguments: dict) -> list[types.ContentBlock]:
|
||||
ctx = app.request_context
|
||||
interval = arguments.get("interval", 1.0)
|
||||
count = arguments.get("count", 5)
|
||||
|
|
|
|||
Loading…
Reference in a new issue