xmcp 1.7.2 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/runtime/adapter-express.js +23 -23
- package/dist/runtime/adapter-fastify.js +23 -23
- package/dist/runtime/adapter-fetch-cloudflare.js +22 -22
- package/dist/runtime/adapter-fetch.js +23 -23
- package/dist/runtime/adapter-nestjs.js +23 -23
- package/dist/runtime/adapter-nextjs.js +38 -38
- package/dist/runtime/cloudflare-worker.js +48 -48
- package/dist/runtime/contexts/request-context.d.ts +3 -1
- package/dist/runtime/http.js +30 -30
- package/dist/runtime/stdio.js +18 -18
- package/dist/runtime/utils/mcp-middleware.d.ts +2 -2
- package/dist/runtime/utils/tools.d.ts +2 -2
- package/dist/runtime/vercel.js +30 -30
- package/dist/types/mcp-middleware.d.ts +16 -2
- package/package.json +3 -3
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { LoggingLevel, ServerContext } from "@modelcontextprotocol/server";
|
|
1
|
+
import type { AuthInfo, LoggingLevel, ServerContext } from "@modelcontextprotocol/server";
|
|
2
2
|
import type { McpClientInfo } from "../../types/client-info";
|
|
3
3
|
export interface RequestContext {
|
|
4
|
+
/** Verified authentication supplied by the SDK for this request, if any. */
|
|
5
|
+
readonly authInfo?: AuthInfo;
|
|
4
6
|
readonly clientInfo?: Readonly<McpClientInfo>;
|
|
5
7
|
readonly http?: {
|
|
6
8
|
/** The HTTP request ID generated by xmcp, not the JSON-RPC message ID. */
|