move sqlite server to python 3.10

This commit is contained in:
David Soria Parra
2024-11-22 23:12:33 +00:00
parent 8e63b5e9b8
commit ec3c60c0c0
6 changed files with 180 additions and 143 deletions

View File

@@ -10,7 +10,6 @@ import mcp.server.stdio
from pydantic import AnyUrl
from typing import Any
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('mcp_sqlite_server')
logger.info("Starting MCP SQLite Server")
@@ -328,7 +327,7 @@ async def main(db_path: str):
# Notify clients that the memo resource has changed
await server.request_context.session.send_resource_updated(AnyUrl("memo://insights"))
return [types.TextContent(type="text", text="Insight added to memo")]
if not arguments: