You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The ToolExtraArguments type is equivalent to Parameters<ToolCallback<undefined>>[0] from @modelcontextprotocol/sdk but fully resolved to avoid external type dependencies.
33
+
/**
34
+
* Extra arguments passed to MCP tool functions.
35
+
*/
36
+
exportinterfaceToolExtraArguments{
37
+
/** An abort signal used to communicate if the request was cancelled from the sender's side */
38
+
signal: AbortSignal;
39
+
40
+
/** Information about a validated access token, provided to request handlers */
41
+
authInfo?: {
42
+
/** The access token */
43
+
token: string;
44
+
/** The client ID associated with this token */
45
+
clientId: string;
46
+
/** Scopes associated with this token */
47
+
scopes: string[];
48
+
/** When the token expires (in seconds since epoch) */
49
+
expiresAt?: number;
50
+
/** The RFC 8707 resource server identifier for which this token is valid */
51
+
resource?: URL;
52
+
/** Additional data associated with the token */
53
+
extra?: Record<string,unknown>;
54
+
};
55
+
56
+
/** The session ID from the transport, if available */
57
+
sessionId?: string;
58
+
59
+
/** Metadata from the original request */
60
+
_meta?: {
61
+
/** Progress token for tracking long-running operations */
62
+
progressToken?: string|number;
63
+
};
64
+
65
+
/** The JSON-RPC ID of the request being handled */
0 commit comments