Skip to content

Commit 40f2428

Browse files
author
Daniele Briggi
committed
chore(dependencies): update mcp version
1 parent a85d6a3 commit 40f2428

File tree

4 files changed

+8
-21
lines changed

4 files changed

+8
-21
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build"
2222
],
2323
"dependencies": {
24-
"@modelcontextprotocol/sdk": "^1.9.0",
24+
"@modelcontextprotocol/sdk": "^1.10.2",
2525
"@sqlitecloud/drivers": "^1.0.438",
2626
"zod": "^3.24.2"
2727
},

src/portableSseTransport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class PortableSSEServerTransport implements Transport {
5757
/**
5858
* Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP POST.
5959
*/
60-
async handleMessage(message: unknown): Promise<void> {
60+
async handleMessage(message: unknown, extra?: { authInfo?: AuthInfo }): Promise<void> {
6161
if (!this._sseWriter) {
6262
const message = 'SSE connection not established'
6363
throw new Error(message)
@@ -66,7 +66,7 @@ export class PortableSSEServerTransport implements Transport {
6666
let parsedMessage: JSONRPCMessage
6767
try {
6868
parsedMessage = JSONRPCMessageSchema.parse(message)
69-
this.onmessage?.(parsedMessage)
69+
this.onmessage?.(parsedMessage, extra)
7070
} catch (error) {
7171
this.onerror?.(error as Error)
7272
throw error

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class SQLiteCloudMcpServer {
5050
description: 'MCP Server for SQLite Cloud: https://sqlitecloud.io'
5151
},
5252
{
53-
capabilities: { resources: {}, tools: {}, prompts: {} },
53+
capabilities: { tools: {} },
5454
instructions: 'This server provides tools to interact with SQLite databases on SQLite Cloud, execute SQL queries, manage table schemas and analyze performance metrics.'
5555
}
5656
)

0 commit comments

Comments
 (0)