mcp-use 2.0.0-beta.63 → 2.0.0-beta.64
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/bin.js +1 -1
- package/dist/{chunk-VJ4S2BU7.js → chunk-JTOR5V7S.js} +1 -1
- package/dist/context.d.ts +7 -0
- package/dist/index-node.js +14 -12
- package/dist/index.d.ts +10 -7
- package/dist/index.js +1 -1
- package/dist/internal/usage.js +1 -1
- package/dist/landing.d.ts +17 -4
- package/dist/middleware/mcp-middleware.d.ts +18 -0
- package/dist/next/config.d.ts +33 -4
- package/dist/next/handler.d.ts +16 -0
- package/dist/next/index.d.ts +5 -0
- package/dist/node-bridge.d.ts +33 -4
- package/dist/oauth/auth0.d.ts +24 -0
- package/dist/oauth/better-auth.d.ts +23 -0
- package/dist/oauth/clerk.d.ts +26 -0
- package/dist/oauth/keycloak.d.ts +28 -0
- package/dist/oauth/provider.d.ts +17 -1
- package/dist/oauth/supabase.d.ts +36 -1
- package/dist/oauth/workos.d.ts +27 -0
- package/dist/react/components/error-boundary.d.ts +3 -0
- package/dist/react/components/theme-provider.d.ts +4 -3
- package/dist/react/hooks/use-view-tool.d.ts +3 -3
- package/dist/react/index.d.ts +5 -6
- package/dist/react/index.js +2 -0
- package/dist/react/runtime/bootstrap-view.d.ts +3 -3
- package/dist/react/types/file-types.d.ts +2 -0
- package/dist/react/types/host-types.d.ts +2 -0
- package/dist/response-helpers.d.ts +8 -0
- package/dist/server.d.ts +2 -0
- package/dist/views/types.d.ts +3 -3
- package/package.json +8 -8
package/dist/oauth/keycloak.d.ts
CHANGED
|
@@ -1,20 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verify Keycloak access tokens for an mcp-use resource server.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
1
6
|
import { type OAuthProvider, type OAuthResourceOptions } from "./provider.js";
|
|
2
7
|
/** Verified Keycloak user and role claims exposed to authenticated MCP callbacks. */
|
|
3
8
|
export interface KeycloakOAuthUser {
|
|
9
|
+
/** Keycloak subject identifier. */
|
|
4
10
|
id: string;
|
|
11
|
+
/** Primary email address, when included in the access token. */
|
|
5
12
|
email?: string;
|
|
13
|
+
/** Display name, when included in the access token. */
|
|
6
14
|
name?: string;
|
|
15
|
+
/** Preferred username, when included in the access token. */
|
|
7
16
|
preferredUsername?: string;
|
|
17
|
+
/** Given name, when included in the access token. */
|
|
8
18
|
givenName?: string;
|
|
19
|
+
/** Family name, when included in the access token. */
|
|
9
20
|
familyName?: string;
|
|
21
|
+
/** Whether Keycloak has verified {@link KeycloakOAuthUser.email}. */
|
|
10
22
|
emailVerified?: boolean;
|
|
23
|
+
/** Realm roles from `realm_access.roles`. */
|
|
11
24
|
roles: string[];
|
|
25
|
+
/** Unmodified `realm_access` claim, when present. */
|
|
12
26
|
realmAccess?: Record<string, unknown>;
|
|
27
|
+
/** Unmodified `resource_access` claim, when present. */
|
|
13
28
|
resourceAccess?: Record<string, unknown>;
|
|
14
29
|
}
|
|
15
30
|
/** Configures Keycloak JWT verification and protected-resource metadata. */
|
|
16
31
|
export interface KeycloakOAuthProviderOptions extends OAuthResourceOptions {
|
|
32
|
+
/** Base URL of the Keycloak server. */
|
|
17
33
|
serverUrl: URL | string;
|
|
34
|
+
/** Keycloak realm that issues accepted access tokens. */
|
|
18
35
|
realm: string;
|
|
19
36
|
}
|
|
20
37
|
/**
|
|
@@ -22,5 +39,16 @@ export interface KeycloakOAuthProviderOptions extends OAuthResourceOptions {
|
|
|
22
39
|
*
|
|
23
40
|
* @param options - Keycloak server URL, realm, and resource-server settings.
|
|
24
41
|
* @returns A provider that rejects tokens not issued for the resolved MCP resource.
|
|
42
|
+
* @throws A `TypeError` if `serverUrl` or `realm` is invalid.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { oauthKeycloakProvider } from "mcp-use/oauth/keycloak";
|
|
47
|
+
*
|
|
48
|
+
* const oauth = oauthKeycloakProvider({
|
|
49
|
+
* serverUrl: "https://keycloak.example.com",
|
|
50
|
+
* realm: "production",
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
25
53
|
*/
|
|
26
54
|
export declare function oauthKeycloakProvider(options: KeycloakOAuthProviderOptions): OAuthProvider<KeycloakOAuthUser>;
|
package/dist/oauth/provider.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface CustomOAuthProviderOptions<TUser> extends OAuthResourceOptions
|
|
|
30
30
|
/** Maps verified SDK auth information into mcp-use callback identity data. */
|
|
31
31
|
mapAuthInfo: (authInfo: OAuthAuthInfo) => OAuthExtra<TUser>;
|
|
32
32
|
}
|
|
33
|
-
/** OAuth resource-server provider accepted by
|
|
33
|
+
/** OAuth resource-server provider accepted by the mcp-use server constructor. */
|
|
34
34
|
export type OAuthProvider<TUser> = CustomOAuthProviderOptions<TUser>;
|
|
35
35
|
/**
|
|
36
36
|
* Creates an OAuth provider backed by an external authorization server.
|
|
@@ -38,5 +38,21 @@ export type OAuthProvider<TUser> = CustomOAuthProviderOptions<TUser>;
|
|
|
38
38
|
* @typeParam TUser - Application user type exposed to authenticated callbacks.
|
|
39
39
|
* @param options - Token verification, discovery metadata, and identity mapping.
|
|
40
40
|
* @returns A provider for an OAuth-enabled MCP server.
|
|
41
|
+
* @throws A `TypeError` if provider metadata or resource settings are invalid.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* import { oauthCustomProvider } from "mcp-use/oauth";
|
|
46
|
+
*
|
|
47
|
+
* const oauth = oauthCustomProvider({
|
|
48
|
+
* createTokenVerifier: (resource) => tokenVerifierFor(resource),
|
|
49
|
+
* oauthMetadata,
|
|
50
|
+
* mapAuthInfo: (authInfo) => ({
|
|
51
|
+
* user: { id: authInfo.clientId },
|
|
52
|
+
* payload: {},
|
|
53
|
+
* permissions: [],
|
|
54
|
+
* }),
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
41
57
|
*/
|
|
42
58
|
export declare function oauthCustomProvider<TUser>(options: CustomOAuthProviderOptions<TUser>): OAuthProvider<TUser>;
|
package/dist/oauth/supabase.d.ts
CHANGED
|
@@ -1,28 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verify Supabase access tokens for an mcp-use resource server.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
1
6
|
import { type OAuthProvider, type OAuthResourceOptions } from "./provider.js";
|
|
2
7
|
/** Verified Supabase user claims exposed to authenticated MCP callbacks. */
|
|
3
8
|
export interface SupabaseOAuthUser {
|
|
9
|
+
/** Supabase user identifier. */
|
|
4
10
|
id: string;
|
|
11
|
+
/** Primary email address, when included in the access token. */
|
|
5
12
|
email?: string;
|
|
13
|
+
/** Display name from `user_metadata.name`. */
|
|
6
14
|
name?: string;
|
|
15
|
+
/** Full name from `user_metadata.full_name`. */
|
|
7
16
|
fullName?: string;
|
|
17
|
+
/** Username from `user_metadata.username`. */
|
|
8
18
|
username?: string;
|
|
19
|
+
/** Profile image URL from `user_metadata.avatar_url`. */
|
|
9
20
|
avatarUrl?: string;
|
|
21
|
+
/** Supabase Postgres role from the access token. */
|
|
10
22
|
role?: string;
|
|
23
|
+
/** Authenticator assurance level for the session. */
|
|
11
24
|
aal?: string;
|
|
25
|
+
/** Authentication methods used for the session. */
|
|
12
26
|
amr: SupabaseAmr[];
|
|
27
|
+
/** Supabase session identifier. */
|
|
13
28
|
sessionId?: string;
|
|
14
29
|
}
|
|
15
30
|
/** A verified Supabase authentication-method reference. */
|
|
16
31
|
export interface SupabaseAmr {
|
|
32
|
+
/** Authentication method name, such as `password` or `totp`. */
|
|
17
33
|
method: string;
|
|
34
|
+
/** Unix timestamp at which the authentication method was completed. */
|
|
18
35
|
timestamp?: number;
|
|
19
36
|
}
|
|
20
37
|
/** Configures Supabase JWT verification and protected-resource metadata. */
|
|
21
38
|
export interface SupabaseOAuthProviderOptions extends OAuthResourceOptions {
|
|
39
|
+
/** Supabase project identifier used to derive `supabaseUrl`. */
|
|
22
40
|
projectId?: string;
|
|
41
|
+
/** Full Supabase project URL. Takes precedence over `projectId`. */
|
|
23
42
|
supabaseUrl?: URL | string;
|
|
43
|
+
/** Legacy HS256 JWT secret. Omit to verify ES256 tokens against project JWKS. */
|
|
24
44
|
jwtSecret?: string;
|
|
25
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Expected access-token audience.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue `"authenticated"`
|
|
49
|
+
*/
|
|
26
50
|
audience?: string;
|
|
27
51
|
}
|
|
28
52
|
/**
|
|
@@ -30,5 +54,16 @@ export interface SupabaseOAuthProviderOptions extends OAuthResourceOptions {
|
|
|
30
54
|
*
|
|
31
55
|
* @param options - Supabase project or URL, optional JWT secret/audience, and resource-server settings.
|
|
32
56
|
* @returns A provider that rejects tokens without a valid configured Supabase signature and issuer.
|
|
57
|
+
* @throws A `TypeError` if project settings are invalid, `audience` is empty,
|
|
58
|
+
* or `jwtSecret` is shorter than 32 bytes.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* import { oauthSupabaseProvider } from "mcp-use/oauth/supabase";
|
|
63
|
+
*
|
|
64
|
+
* const oauth = oauthSupabaseProvider({
|
|
65
|
+
* projectId: "example-project",
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
33
68
|
*/
|
|
34
69
|
export declare function oauthSupabaseProvider(options: SupabaseOAuthProviderOptions): OAuthProvider<SupabaseOAuthUser>;
|
package/dist/oauth/workos.d.ts
CHANGED
|
@@ -1,20 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verify WorkOS AuthKit access tokens for an mcp-use resource server.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
1
6
|
import { type OAuthProvider, type OAuthResourceOptions } from "./provider.js";
|
|
2
7
|
/** Verified WorkOS user and organization claims exposed to authenticated MCP callbacks. */
|
|
3
8
|
export interface WorkOSOAuthUser {
|
|
9
|
+
/** WorkOS subject identifier. */
|
|
4
10
|
id: string;
|
|
11
|
+
/** Primary email address, when included in the access token. */
|
|
5
12
|
email?: string;
|
|
13
|
+
/** Whether WorkOS has verified {@link WorkOSOAuthUser.email}. */
|
|
6
14
|
emailVerified?: boolean;
|
|
15
|
+
/** Display name, when included in the access token. */
|
|
7
16
|
name?: string;
|
|
17
|
+
/** Preferred username, when included in the access token. */
|
|
8
18
|
preferredUsername?: string;
|
|
19
|
+
/** Given name, when included in the access token. */
|
|
9
20
|
firstName?: string;
|
|
21
|
+
/** Family name, when included in the access token. */
|
|
10
22
|
lastName?: string;
|
|
23
|
+
/** Profile image URL, when included in the access token. */
|
|
11
24
|
picture?: string;
|
|
25
|
+
/** Roles from the access token's `roles` claim. */
|
|
12
26
|
roles: string[];
|
|
27
|
+
/** Active WorkOS organization identifier. */
|
|
13
28
|
organizationId?: string;
|
|
29
|
+
/** WorkOS session identifier. */
|
|
14
30
|
sessionId?: string;
|
|
15
31
|
}
|
|
16
32
|
/** Configures WorkOS JWT verification and protected-resource metadata. */
|
|
17
33
|
export interface WorkOSOAuthProviderOptions extends OAuthResourceOptions {
|
|
34
|
+
/** AuthKit subdomain, with or without the `https://` scheme. */
|
|
18
35
|
subdomain: string;
|
|
19
36
|
}
|
|
20
37
|
/**
|
|
@@ -22,5 +39,15 @@ export interface WorkOSOAuthProviderOptions extends OAuthResourceOptions {
|
|
|
22
39
|
*
|
|
23
40
|
* @param options - WorkOS AuthKit origin and resource-server settings.
|
|
24
41
|
* @returns A provider that rejects tokens not issued for the resolved MCP resource.
|
|
42
|
+
* @throws A `TypeError` if `subdomain` is empty or uses a non-HTTPS URL.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { oauthWorkOSProvider } from "mcp-use/oauth/workos";
|
|
47
|
+
*
|
|
48
|
+
* const oauth = oauthWorkOSProvider({
|
|
49
|
+
* subdomain: "example.authkit.app",
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
25
52
|
*/
|
|
26
53
|
export declare function oauthWorkOSProvider(options: WorkOSOAuthProviderOptions): OAuthProvider<WorkOSOAuthUser>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface ErrorBoundaryProps {
|
|
3
|
+
/** View subtree protected by the boundary. */
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
/** Custom fallback when an error is caught. */
|
|
5
6
|
fallback?: React.ReactNode | ((error: Error) => React.ReactNode);
|
|
@@ -15,11 +16,13 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, {
|
|
|
15
16
|
error: Error | null;
|
|
16
17
|
}> {
|
|
17
18
|
constructor(props: ErrorBoundaryProps);
|
|
19
|
+
/** Records a render failure for the fallback render pass. */
|
|
18
20
|
static getDerivedStateFromError(error: Error): {
|
|
19
21
|
hasError: boolean;
|
|
20
22
|
error: Error;
|
|
21
23
|
};
|
|
22
24
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
25
|
+
/** Renders the child tree or the configured error fallback. */
|
|
23
26
|
render(): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | Iterable<React.ReactNode> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | null | undefined> | null | undefined;
|
|
24
27
|
}
|
|
25
28
|
export {};
|
|
@@ -2,14 +2,15 @@ import React from "react";
|
|
|
2
2
|
/**
|
|
3
3
|
* Applies host theme, style variables, and fonts to the document root.
|
|
4
4
|
*
|
|
5
|
-
* Subscribes to the host channel
|
|
6
|
-
*
|
|
7
|
-
* {@link useViewTheme}
|
|
5
|
+
* Subscribes to the runtime's host-context channel for theme,
|
|
6
|
+
* `styles.variables`, and `styles.css.fonts`. Theme-only consumers should use
|
|
7
|
+
* {@link useViewTheme} so locale and dimension updates do not rerender them.
|
|
8
8
|
*
|
|
9
9
|
* MCP App views render in srcdoc iframes; the document canvas stays transparent
|
|
10
10
|
* by default so rounded cards do not expose an opaque `color-scheme` backdrop.
|
|
11
11
|
*/
|
|
12
12
|
export declare const ThemeProvider: React.FC<{
|
|
13
|
+
/** View subtree that receives the host theme. */
|
|
13
14
|
children: React.ReactNode;
|
|
14
15
|
/** Set `color-scheme` on the document root to match the active theme. */
|
|
15
16
|
colorScheme?: boolean;
|
|
@@ -20,9 +20,9 @@ export type ViewToolDefinition = Pick<ToolDefinition, "name" | "title" | "descri
|
|
|
20
20
|
* the ext-apps handle's `update()`, passing explicit `undefined` so omitted
|
|
21
21
|
* fields are cleared. Toggling `enabled` calls `enable()` / `disable()`
|
|
22
22
|
* without re-registering. The handler is kept in a ref so calls always see
|
|
23
|
-
* current React state. Registration goes through
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* current React state. Registration goes through the document runtime rather
|
|
24
|
+
* than the guest App directly, allowing the runtime to perform the
|
|
25
|
+
* empty-handler handoff on first registration.
|
|
26
26
|
*
|
|
27
27
|
* Cleanup captures the registration handle inside the effect so an older
|
|
28
28
|
* cleanup cannot remove a newer registration (e.g. after a rapid `name`
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Build MCP App views with React components and hooks.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* (provider/utility components).
|
|
4
|
+
* This browser-only entry point provides the view runtime, typed tool context,
|
|
5
|
+
* host integration hooks, and reusable view components.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
9
8
|
*/
|
|
10
9
|
export { bootstrapView, disposeView, type ViewModule, } from "./runtime/bootstrap-view.js";
|
|
11
10
|
export { type ViewConfig } from "./runtime/view-config.js";
|
package/dist/react/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var ErrorBoundary = class extends React.Component {
|
|
|
9
9
|
super(props);
|
|
10
10
|
this.state = { hasError: false, error: null };
|
|
11
11
|
}
|
|
12
|
+
/** Records a render failure for the fallback render pass. */
|
|
12
13
|
static getDerivedStateFromError(error) {
|
|
13
14
|
return { hasError: true, error };
|
|
14
15
|
}
|
|
@@ -16,6 +17,7 @@ var ErrorBoundary = class extends React.Component {
|
|
|
16
17
|
console.error("[mcp-use] View error:", error, errorInfo);
|
|
17
18
|
this.props.onError?.(error, errorInfo);
|
|
18
19
|
}
|
|
20
|
+
/** Renders the child tree or the configured error fallback. */
|
|
19
21
|
render() {
|
|
20
22
|
if (this.state.hasError && this.state.error) {
|
|
21
23
|
if (this.props.fallback !== void 0) {
|
|
@@ -57,12 +57,12 @@ export interface BootstrapViewOptions {
|
|
|
57
57
|
*/
|
|
58
58
|
export declare function bootstrapView(module: ViewModule, options?: BootstrapViewOptions): void;
|
|
59
59
|
/**
|
|
60
|
-
* Unmount the document's view and dispose its
|
|
60
|
+
* Unmount the document's view and dispose its guest MCP App runtime.
|
|
61
61
|
*
|
|
62
62
|
* React unmounts first so hook cleanup (e.g. {@link useViewTool} removal) can
|
|
63
63
|
* run while the App connection still exists; then the runtime closes the App
|
|
64
|
-
* and transport. After this resolves,
|
|
65
|
-
*
|
|
64
|
+
* and transport. After this resolves, the view bootstrap can create a fresh
|
|
65
|
+
* runtime.
|
|
66
66
|
*
|
|
67
67
|
* No-ops when nothing is mounted.
|
|
68
68
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Opaque file reference returned by {@link useFiles}. */
|
|
2
2
|
export type FileMetadata = {
|
|
3
|
+
/** Host-assigned opaque file identifier. */
|
|
3
4
|
fileId: string;
|
|
4
5
|
};
|
|
5
6
|
/** Value returned by {@link useFiles}. */
|
|
@@ -10,6 +11,7 @@ export interface UseFilesResult {
|
|
|
10
11
|
upload(file: File): Promise<FileMetadata>;
|
|
11
12
|
/** Request a temporary download URL for an uploaded file. */
|
|
12
13
|
getDownloadUrl(file: FileMetadata): Promise<{
|
|
14
|
+
/** Temporary URL from which the file can be downloaded. */
|
|
13
15
|
downloadUrl: string;
|
|
14
16
|
}>;
|
|
15
17
|
}
|
|
@@ -7,7 +7,9 @@ export type SafeAreaInsets = NonNullable<McpUiHostContext["safeAreaInsets"]>;
|
|
|
7
7
|
* Host application identity from the initialization handshake.
|
|
8
8
|
*/
|
|
9
9
|
export type HostInfo = {
|
|
10
|
+
/** Host product name. */
|
|
10
11
|
name: string;
|
|
12
|
+
/** Host product version. */
|
|
11
13
|
version: string;
|
|
12
14
|
};
|
|
13
15
|
/**
|
|
@@ -9,9 +9,13 @@ import type { CallToolResult } from "@modelcontextprotocol/server";
|
|
|
9
9
|
*/
|
|
10
10
|
export interface TypedCallToolResult<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
11
11
|
[x: string]: unknown;
|
|
12
|
+
/** Model-visible content blocks. */
|
|
12
13
|
content: CallToolResult["content"];
|
|
14
|
+
/** Whether the result represents a tool-domain error. */
|
|
13
15
|
isError?: CallToolResult["isError"];
|
|
16
|
+
/** Protocol extension metadata. */
|
|
14
17
|
_meta?: CallToolResult["_meta"];
|
|
18
|
+
/** Typed structured payload. */
|
|
15
19
|
structuredContent?: T;
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
@@ -22,9 +26,13 @@ export interface TypedCallToolResult<T extends Record<string, unknown> = Record<
|
|
|
22
26
|
*/
|
|
23
27
|
export interface ToolContentResult {
|
|
24
28
|
[x: string]: unknown;
|
|
29
|
+
/** Model-visible content blocks. */
|
|
25
30
|
content: CallToolResult["content"];
|
|
31
|
+
/** Whether the result represents a tool-domain error. */
|
|
26
32
|
isError?: CallToolResult["isError"];
|
|
33
|
+
/** Protocol extension metadata. */
|
|
27
34
|
_meta?: CallToolResult["_meta"];
|
|
35
|
+
/** Content-only helpers never provide structured content. */
|
|
28
36
|
structuredContent?: never;
|
|
29
37
|
}
|
|
30
38
|
/**
|
package/dist/server.d.ts
CHANGED
|
@@ -341,7 +341,9 @@ export declare class MCPServer<TUser = never, TEnv extends Env = Env> {
|
|
|
341
341
|
* already mounted the app without Host validation.
|
|
342
342
|
*/
|
|
343
343
|
listen(port?: number | undefined, options?: ListenOptions): Promise<{
|
|
344
|
+
/** Actual bound port, including an ephemeral port chosen for `0`. */
|
|
344
345
|
port: number;
|
|
346
|
+
/** HTTP URL of the bound MCP endpoint. */
|
|
345
347
|
url: string;
|
|
346
348
|
}>;
|
|
347
349
|
/**
|
package/dist/views/types.d.ts
CHANGED
|
@@ -41,8 +41,8 @@ export interface InlineViewManifestEntry {
|
|
|
41
41
|
/** Discriminant for the embedded bundle shape. */
|
|
42
42
|
kind: "inline";
|
|
43
43
|
/**
|
|
44
|
-
* Minified ES module source embedded in
|
|
45
|
-
*
|
|
44
|
+
* Minified ES module source embedded in the generated view document's
|
|
45
|
+
* `<script type="module">` element.
|
|
46
46
|
*/
|
|
47
47
|
js: string;
|
|
48
48
|
/**
|
|
@@ -88,7 +88,7 @@ export interface ExternalViewManifestEntry {
|
|
|
88
88
|
* emits origin-absolute Vite URLs.
|
|
89
89
|
*/
|
|
90
90
|
export type ViewManifestEntry = InlineViewManifestEntry | ExternalViewManifestEntry;
|
|
91
|
-
/** Map of view name
|
|
91
|
+
/** Map of view name to registry entry, primed by `registerViews()`. */
|
|
92
92
|
export interface ViewsManifest {
|
|
93
93
|
[viewName: string]: ViewManifestEntry;
|
|
94
94
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-use",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.64",
|
|
5
5
|
"description": "MCP framework and CLI built on the official v2 SDK",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"node": ">=22.22.2"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"@modelcontextprotocol/client": "2.0.0
|
|
105
|
-
"@modelcontextprotocol/core": "2.0.0
|
|
106
|
-
"@modelcontextprotocol/ext-apps": "npm:@mcp-use/ext-apps@1.7.4-pr720.
|
|
107
|
-
"@modelcontextprotocol/server": "2.0.0
|
|
104
|
+
"@modelcontextprotocol/client": "2.0.0",
|
|
105
|
+
"@modelcontextprotocol/core": "2.0.0",
|
|
106
|
+
"@modelcontextprotocol/ext-apps": "npm:@mcp-use/ext-apps@1.7.4-pr720.1",
|
|
107
|
+
"@modelcontextprotocol/server": "2.0.0",
|
|
108
108
|
"hono": "^4.12.27",
|
|
109
109
|
"jose": "^6.1.3",
|
|
110
110
|
"@mcp-use/cli": "4.0.0-beta.15",
|
|
111
|
-
"@mcp-use/inspector": "20.0.0-beta.
|
|
111
|
+
"@mcp-use/inspector": "20.0.0-beta.56"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"@mcp-use/client": "^2.0.0-alpha.0",
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
"vite": "^8.0.16",
|
|
143
143
|
"vitest": "^4.1.9",
|
|
144
144
|
"zod": "^4.4.3",
|
|
145
|
-
"@mcp-use/client": "2.0.0-beta.
|
|
146
|
-
"mcp-use": "2.0.0-beta.
|
|
145
|
+
"@mcp-use/client": "2.0.0-beta.17",
|
|
146
|
+
"mcp-use": "2.0.0-beta.64"
|
|
147
147
|
},
|
|
148
148
|
"publishConfig": {
|
|
149
149
|
"access": "public"
|