mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-20 12:55:21 +02:00
Fix errors
This commit is contained in:
@@ -8,6 +8,7 @@ import mcp.types as types
|
|||||||
from mcp.server import NotificationOptions, Server
|
from mcp.server import NotificationOptions, Server
|
||||||
import mcp.server.stdio
|
import mcp.server.stdio
|
||||||
from pydantic import AnyUrl
|
from pydantic import AnyUrl
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
# Set up logging to file
|
# Set up logging to file
|
||||||
log_file = Path('mcp_server.log')
|
log_file = Path('mcp_server.log')
|
||||||
@@ -335,8 +336,6 @@ async def main(db_path: str):
|
|||||||
await self.request_context.session.send_resource_updated(AnyUrl("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:
|
|
||||||
raise ValueError("Missing arguments")
|
|
||||||
|
|
||||||
if not arguments:
|
if not arguments:
|
||||||
raise ValueError("Missing arguments")
|
raise ValueError("Missing arguments")
|
||||||
|
|||||||
Reference in New Issue
Block a user