You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@smithery/sdk

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithery/sdk - npm Package Compare versions

Comparing version
4.1.0
to
4.2.0
+12
-1
dist/types/index.d.ts
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",

# Smithery SDK
[![npm version](https://img.shields.io/npm/v/@smithery/sdk)](https://www.npmjs.com/package/@smithery/sdk)
TypeScript types for building MCP servers on the Smithery hosted runtime.

@@ -4,0 +6,0 @@