@smithery/sdk
Advanced tools
| import type { Server } from "@modelcontextprotocol/sdk/server/index.js"; | ||
| import type { Notification } from "@modelcontextprotocol/sdk/types.js"; | ||
| import type { z } from "zod"; | ||
@@ -70,3 +71,13 @@ export type Session = { | ||
| sessions: { | ||
| send(sessionId: string, message: unknown): Promise<void>; | ||
| /** | ||
| * Send a notification directly to the connected client (via `transport.send()`), | ||
| * bypassing the server's notification handler chain. | ||
| * Use this for webhook → client notification routing. | ||
| */ | ||
| notify(sessionId: string, notification: Notification): Promise<void>; | ||
| /** | ||
| * Inject a raw JSON-RPC message into the server's handler chain for processing. | ||
| * The server's registered request/notification handlers will be invoked. | ||
| */ | ||
| dispatch(sessionId: string, message: unknown): Promise<void>; | ||
| }; | ||
@@ -73,0 +84,0 @@ }; |
+1
-1
| { | ||
| "name": "@smithery/sdk", | ||
| "version": "4.1.0", | ||
| "version": "4.2.0", | ||
| "description": "SDK to develop with Smithery", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+2
-0
| # Smithery SDK | ||
| [](https://www.npmjs.com/package/@smithery/sdk) | ||
| TypeScript types for building MCP servers on the Smithery hosted runtime. | ||
@@ -4,0 +6,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7991
9.56%111
11%89
2.3%0
-100%