Skip to content

Commit 6482df6

Browse files
reticencejishivdeepak
authored andcommitted
update sqlite's mcp version to 1.6.0
1 parent c0433a0 commit 6482df6

File tree

5 files changed

+85
-8
lines changed

5 files changed

+85
-8
lines changed

src/sqlite/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ docker build -t mcp/sqlite .
114114
## Test with MCP inspector
115115

116116
```bash
117-
mcp dev main.py:server
117+
uv add "mcp[cli]"
118+
mcp dev src/mcp_server_sqlite/server.py:wrapper
118119
```
119120

120121
## License

src/sqlite/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ version = "0.6.2"
44
description = "A simple SQLite MCP server"
55
readme = "README.md"
66
requires-python = ">=3.10"
7-
dependencies = ["mcp>=1.6.0"]
7+
dependencies = [
8+
"mcp[cli]>=1.6.0",
9+
]
810

911
[build-system]
1012
requires = ["hatchling"]

src/sqlite/src/mcp_server_sqlite/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ async def handle_call_tool(
368368
except Exception as e:
369369
return [types.TextContent(type="text", text=f"Error: {str(e)}")]
370370

371-
async with mcp.server.stdio.stdio_server() as (read_stream, write_stream):
371+
async with stdio_server() as (read_stream, write_stream):
372372
logger.info("Server running with stdio transport")
373373
await server.run(
374374
read_stream,
@@ -384,10 +384,10 @@ async def handle_call_tool(
384384
)
385385

386386
class ServerWrapper():
387-
388-
async def run(self):
387+
"""A wrapper to compat with mcp[cli]"""
388+
def run(self):
389389
import asyncio
390390
asyncio.run(main("test.db"))
391391

392392

393-
server = ServerWrapper()
393+
wrapper = ServerWrapper()

src/sqlite/test.db

Whitespace-only changes.

src/sqlite/uv.lock

Lines changed: 76 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)