mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 16:54:10 +02:00
Fix type error
This commit is contained in:
@@ -5,8 +5,9 @@ from contextlib import closing
|
||||
from pathlib import Path
|
||||
from mcp.server.models import InitializationOptions
|
||||
import mcp.types as types
|
||||
from mcp.server import NotificationOptions, Server, AnyUrl
|
||||
from mcp.server import NotificationOptions, Server
|
||||
import mcp.server.stdio
|
||||
from pydantic import AnyUrl
|
||||
|
||||
# Set up logging to file
|
||||
log_file = Path('mcp_server.log')
|
||||
@@ -332,7 +333,7 @@ class McpServer(Server):
|
||||
memo = self._synthesize_memo()
|
||||
|
||||
# Notify clients that the memo resource has changed
|
||||
await self.request_context.session.send_resource_updated("memo://insights")
|
||||
await self.request_context.session.send_resource_updated(AnyUrl("memo://insights"))
|
||||
|
||||
return [types.TextContent(type="text", text="Insight added to memo")]
|
||||
if not arguments:
|
||||
|
||||
Reference in New Issue
Block a user