Fix type error
This commit is contained in:
parent
06cb2759b8
commit
6d4bbf5982
1 changed files with 3 additions and 2 deletions
|
|
@ -5,8 +5,9 @@ from contextlib import closing
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from mcp.server.models import InitializationOptions
|
from mcp.server.models import InitializationOptions
|
||||||
import mcp.types as types
|
import mcp.types as types
|
||||||
from mcp.server import NotificationOptions, Server, AnyUrl
|
from mcp.server import NotificationOptions, Server
|
||||||
import mcp.server.stdio
|
import mcp.server.stdio
|
||||||
|
from pydantic import AnyUrl
|
||||||
|
|
||||||
# Set up logging to file
|
# Set up logging to file
|
||||||
log_file = Path('mcp_server.log')
|
log_file = Path('mcp_server.log')
|
||||||
|
|
@ -332,7 +333,7 @@ class McpServer(Server):
|
||||||
memo = self._synthesize_memo()
|
memo = self._synthesize_memo()
|
||||||
|
|
||||||
# Notify clients that the memo resource has changed
|
# 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")]
|
return [types.TextContent(type="text", text="Insight added to memo")]
|
||||||
if not arguments:
|
if not arguments:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue