@assistant-ui/react-mcp 0.1.19 → 0.1.20
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/auth/buildHeaders.d.ts +2 -4
- package/dist/auth/buildHeaders.d.ts.map +1 -1
- package/dist/auth/createOAuthProvider.d.ts +19 -20
- package/dist/auth/createOAuthProvider.d.ts.map +1 -1
- package/dist/auth/types.d.ts +12 -14
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/connector.d.ts +1 -3
- package/dist/connector.d.ts.map +1 -1
- package/dist/context/McpConnectorByIndexProvider.d.ts +2 -4
- package/dist/context/McpConnectorByIndexProvider.d.ts.map +1 -1
- package/dist/context/McpConnectorByIndexProvider.js +1 -1
- package/dist/context/McpCustomServerByIndexProvider.d.ts +2 -4
- package/dist/context/McpCustomServerByIndexProvider.d.ts.map +1 -1
- package/dist/context/McpCustomServerByIndexProvider.js +1 -1
- package/dist/context/McpServerByIdProvider.d.ts +2 -4
- package/dist/context/McpServerByIdProvider.d.ts.map +1 -1
- package/dist/context/McpServerByIdProvider.js +1 -1
- package/dist/hooks/useMcpOAuthCallback.d.ts +9 -11
- package/dist/hooks/useMcpOAuthCallback.d.ts.map +1 -1
- package/dist/hooks/useMcpOAuthCallback.js +2 -2
- package/dist/index.d.ts +19 -18
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -4
- package/dist/mcp-scope.d.ts +110 -112
- package/dist/mcp-scope.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormAuthFields.d.ts +12 -14
- package/dist/primitives/addForm/McpAddFormAuthFields.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormAuthSelect.d.ts +3 -5
- package/dist/primitives/addForm/McpAddFormAuthSelect.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormAuthSelect.js +1 -1
- package/dist/primitives/addForm/McpAddFormBearerTokenField.d.ts +3 -5
- package/dist/primitives/addForm/McpAddFormBearerTokenField.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormBearerTokenField.js +1 -1
- package/dist/primitives/addForm/McpAddFormCancel.d.ts +4 -6
- package/dist/primitives/addForm/McpAddFormCancel.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormCancel.js +1 -1
- package/dist/primitives/addForm/McpAddFormError.d.ts +4 -6
- package/dist/primitives/addForm/McpAddFormError.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormError.js +1 -1
- package/dist/primitives/addForm/McpAddFormNameField.d.ts +3 -5
- package/dist/primitives/addForm/McpAddFormNameField.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormNameField.js +1 -1
- package/dist/primitives/addForm/McpAddFormRoot.d.ts +9 -11
- package/dist/primitives/addForm/McpAddFormRoot.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormRoot.js +2 -2
- package/dist/primitives/addForm/McpAddFormScopesField.d.ts +3 -5
- package/dist/primitives/addForm/McpAddFormScopesField.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormScopesField.js +1 -1
- package/dist/primitives/addForm/McpAddFormSubmit.d.ts +4 -6
- package/dist/primitives/addForm/McpAddFormSubmit.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormSubmit.js +1 -1
- package/dist/primitives/addForm/McpAddFormUrlField.d.ts +3 -5
- package/dist/primitives/addForm/McpAddFormUrlField.d.ts.map +1 -1
- package/dist/primitives/addForm/McpAddFormUrlField.js +1 -1
- package/dist/primitives/addForm/context.d.ts +18 -20
- package/dist/primitives/addForm/context.d.ts.map +1 -1
- package/dist/primitives/addForm.d.ts +10 -15
- package/dist/primitives/addForm.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.d.ts +4 -6
- package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveAccept.js +2 -2
- package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.d.ts +4 -6
- package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveCancel.js +2 -2
- package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.d.ts +4 -6
- package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveDecline.js +2 -2
- package/dist/primitives/elicitation/McpElicitationPrimitiveError.d.ts +4 -6
- package/dist/primitives/elicitation/McpElicitationPrimitiveError.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveError.js +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveFields.d.ts +6 -8
- package/dist/primitives/elicitation/McpElicitationPrimitiveFields.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveFields.js +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveItems.d.ts +6 -9
- package/dist/primitives/elicitation/McpElicitationPrimitiveItems.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveItems.js +2 -2
- package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.d.ts +4 -6
- package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveMessage.js +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.d.ts +4 -6
- package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.d.ts.map +1 -1
- package/dist/primitives/elicitation/McpElicitationPrimitiveRoot.js +1 -1
- package/dist/primitives/elicitation/context.d.ts +8 -10
- package/dist/primitives/elicitation/context.d.ts.map +1 -1
- package/dist/primitives/elicitation/initialElicitationDraft.d.ts +0 -2
- package/dist/primitives/elicitation/initialElicitationDraft.d.ts.map +1 -1
- package/dist/primitives/elicitation/prepareElicitationContent.d.ts +3 -5
- package/dist/primitives/elicitation/prepareElicitationContent.d.ts.map +1 -1
- package/dist/primitives/elicitation.d.ts +8 -14
- package/dist/primitives/elicitation.d.ts.map +1 -1
- package/dist/primitives/manager/McpManagerAddCustomTrigger.d.ts +4 -6
- package/dist/primitives/manager/McpManagerAddCustomTrigger.d.ts.map +1 -1
- package/dist/primitives/manager/McpManagerAddCustomTrigger.js +1 -1
- package/dist/primitives/manager/McpManagerConnectors.d.ts +12 -14
- package/dist/primitives/manager/McpManagerConnectors.d.ts.map +1 -1
- package/dist/primitives/manager/McpManagerConnectors.js +1 -1
- package/dist/primitives/manager/McpManagerCustomServers.d.ts +12 -14
- package/dist/primitives/manager/McpManagerCustomServers.d.ts.map +1 -1
- package/dist/primitives/manager/McpManagerCustomServers.js +1 -1
- package/dist/primitives/manager/McpManagerRoot.d.ts +4 -6
- package/dist/primitives/manager/McpManagerRoot.d.ts.map +1 -1
- package/dist/primitives/manager/McpManagerRoot.js +2 -2
- package/dist/primitives/manager.d.ts +4 -9
- package/dist/primitives/manager.d.ts.map +1 -1
- package/dist/primitives/server/McpServerConnectButton.d.ts +4 -6
- package/dist/primitives/server/McpServerConnectButton.d.ts.map +1 -1
- package/dist/primitives/server/McpServerConnectButton.js +2 -2
- package/dist/primitives/server/McpServerDisconnectButton.d.ts +4 -6
- package/dist/primitives/server/McpServerDisconnectButton.d.ts.map +1 -1
- package/dist/primitives/server/McpServerDisconnectButton.js +2 -2
- package/dist/primitives/server/McpServerError.d.ts +4 -6
- package/dist/primitives/server/McpServerError.d.ts.map +1 -1
- package/dist/primitives/server/McpServerError.js +2 -2
- package/dist/primitives/server/McpServerIcon.d.ts +11 -13
- package/dist/primitives/server/McpServerIcon.d.ts.map +1 -1
- package/dist/primitives/server/McpServerIcon.js +2 -2
- package/dist/primitives/server/McpServerName.d.ts +4 -6
- package/dist/primitives/server/McpServerName.d.ts.map +1 -1
- package/dist/primitives/server/McpServerName.js +2 -2
- package/dist/primitives/server/McpServerOAuthLink.d.ts +9 -11
- package/dist/primitives/server/McpServerOAuthLink.d.ts.map +1 -1
- package/dist/primitives/server/McpServerOAuthLink.js +2 -2
- package/dist/primitives/server/McpServerRemoveButton.d.ts +4 -6
- package/dist/primitives/server/McpServerRemoveButton.d.ts.map +1 -1
- package/dist/primitives/server/McpServerRemoveButton.js +2 -2
- package/dist/primitives/server/McpServerRoot.d.ts +4 -6
- package/dist/primitives/server/McpServerRoot.d.ts.map +1 -1
- package/dist/primitives/server/McpServerRoot.js +2 -2
- package/dist/primitives/server/McpServerStatus.d.ts +4 -6
- package/dist/primitives/server/McpServerStatus.d.ts.map +1 -1
- package/dist/primitives/server/McpServerStatus.js +2 -2
- package/dist/primitives/server/McpServerToolName.d.ts +4 -6
- package/dist/primitives/server/McpServerToolName.d.ts.map +1 -1
- package/dist/primitives/server/McpServerToolName.js +1 -1
- package/dist/primitives/server/McpServerTools.d.ts +5 -7
- package/dist/primitives/server/McpServerTools.d.ts.map +1 -1
- package/dist/primitives/server/McpServerTools.js +2 -2
- package/dist/primitives/server.d.ts +11 -16
- package/dist/primitives/server.d.ts.map +1 -1
- package/dist/resources/McpManagerResource.d.ts +11 -13
- package/dist/resources/McpManagerResource.d.ts.map +1 -1
- package/dist/resources/McpManagerResource.js +2 -2
- package/dist/resources/McpServerRemovalFence.d.ts +1 -3
- package/dist/resources/McpServerRemovalFence.d.ts.map +1 -1
- package/dist/resources/McpServerResource.d.ts +18 -20
- package/dist/resources/McpServerResource.d.ts.map +1 -1
- package/dist/resources/McpServerResource.js +51 -43
- package/dist/resources/McpServerResource.js.map +1 -1
- package/dist/resources/storage/McpCustomStorage.d.ts +1 -3
- package/dist/resources/storage/McpCustomStorage.d.ts.map +1 -1
- package/dist/resources/storage/McpLocalStorage.d.ts +14 -16
- package/dist/resources/storage/McpLocalStorage.d.ts.map +1 -1
- package/dist/resources/storage/McpLocalStorage.js +1 -1
- package/dist/resources/storage/McpMemoryStorage.d.ts +1 -3
- package/dist/resources/storage/McpMemoryStorage.d.ts.map +1 -1
- package/dist/resources/storage/types.d.ts +22 -24
- package/dist/resources/storage/types.d.ts.map +1 -1
- package/dist/resources/validateElicitationContent.d.ts +3 -4
- package/dist/resources/validateElicitationContent.d.ts.map +1 -1
- package/dist/utils/createMcpId.d.ts +0 -2
- package/dist/utils/createMcpId.d.ts.map +1 -1
- package/dist/utils/invokeMcpCallback.d.ts +0 -2
- package/dist/utils/invokeMcpCallback.d.ts.map +1 -1
- package/dist/utils/serverId.d.ts +0 -2
- package/dist/utils/serverId.d.ts.map +1 -1
- package/dist/utils/serverUrl.d.ts +1 -3
- package/dist/utils/serverUrl.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/resources/McpServerResource.test.ts +112 -0
- package/src/resources/McpServerResource.ts +22 -7
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
|
|
2
2
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
3
|
-
//#region src/primitives/server/McpServerIcon.d.ts
|
|
4
3
|
export declare namespace McpServerPrimitiveIcon {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.img>;
|
|
5
|
+
type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.img>, "src" | "alt"> & {
|
|
6
|
+
/** Override the icon URL. Defaults to the server's icon prop. */
|
|
7
|
+
src?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const McpServerPrimitiveIcon: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}, "ref">, "src" | "alt"> & {
|
|
7
14
|
/** Override the icon URL. Defaults to the server's icon prop. */
|
|
8
15
|
src?: string;
|
|
9
16
|
alt?: string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare const McpServerPrimitiveIcon: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & {
|
|
13
|
-
asChild?: boolean;
|
|
14
|
-
}, "ref">, "alt" | "src"> & {
|
|
15
|
-
/** Override the icon URL. Defaults to the server's icon prop. */
|
|
16
|
-
src?: string;
|
|
17
|
-
alt?: string;
|
|
18
17
|
} & import("react").RefAttributes<HTMLImageElement>>;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=McpServerIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerIcon.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerIcon.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,IAAI,CACtB,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,EAC9C,KAAK,GAAG,KAAK,CACd,GAAG;QACF,iEAAiE;QACjE,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,eAAO,MAAM,sBAAsB;;;IAN/B,iEAAiE;UAC3D,MAAM;UACN,MAAM;oDAed,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useAuiState } from "@assistant-ui/store";
|
|
2
1
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
2
|
+
import { useAuiState } from "@assistant-ui/store";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
4
5
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/primitives/server/McpServerIcon.tsx
|
|
7
7
|
const McpServerPrimitiveIcon = forwardRef((t0, ref) => {
|
|
8
8
|
const $ = c(9);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
|
|
2
2
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
3
|
-
//#region src/primitives/server/McpServerName.d.ts
|
|
4
3
|
export declare namespace McpServerPrimitiveName {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.span>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
7
6
|
}
|
|
8
7
|
export declare const McpServerPrimitiveName: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
9
|
-
|
|
8
|
+
asChild?: boolean;
|
|
10
9
|
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=McpServerName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerName.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerName.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerName.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,sBAAsB;;2DAUjC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useAuiState } from "@assistant-ui/store";
|
|
2
1
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
2
|
+
import { useAuiState } from "@assistant-ui/store";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
4
5
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/primitives/server/McpServerName.tsx
|
|
7
7
|
const McpServerPrimitiveName = forwardRef((props, ref) => {
|
|
8
8
|
const $ = c(4);
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
|
|
2
2
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
3
|
-
//#region src/primitives/server/McpServerOAuthLink.d.ts
|
|
4
3
|
export declare namespace McpServerPrimitiveOAuthLink {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.a>;
|
|
5
|
+
type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.a>, "href"> & {
|
|
6
|
+
/** Optional href override; defaults to the server's authorizationUrl. */
|
|
7
|
+
href?: string;
|
|
8
|
+
};
|
|
10
9
|
}
|
|
11
10
|
export declare const McpServerPrimitiveOAuthLink: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
12
|
-
|
|
11
|
+
asChild?: boolean;
|
|
13
12
|
}, "ref">, "href"> & {
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/** Optional href override; defaults to the server's authorizationUrl. */
|
|
14
|
+
href?: string;
|
|
16
15
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=McpServerOAuthLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerOAuthLink.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerOAuthLink.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,2BAA2B,CAAC;IAC3C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;IACvD,KAAY,KAAK,GAAG,IAAI,CACtB,wBAAwB,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,EAC5C,MAAM,CACP,GAAG;QACF,yEAAyE;QACzE,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,eAAO,MAAM,2BAA2B;;;IALpC,yEAAyE;WAClE,MAAM;qDAoBf,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useAuiState } from "@assistant-ui/store";
|
|
2
1
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
2
|
+
import { useAuiState } from "@assistant-ui/store";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
4
5
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/primitives/server/McpServerOAuthLink.tsx
|
|
7
7
|
const McpServerPrimitiveOAuthLink = forwardRef((t0, ref) => {
|
|
8
8
|
const $ = c(8);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
|
|
2
2
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
3
|
-
//#region src/primitives/server/McpServerRemoveButton.d.ts
|
|
4
3
|
export declare namespace McpServerPrimitiveRemoveButton {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.button>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
7
6
|
}
|
|
8
7
|
export declare const McpServerPrimitiveRemoveButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
|
-
|
|
8
|
+
asChild?: boolean;
|
|
10
9
|
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=McpServerRemoveButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerRemoveButton.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerRemoveButton.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;CACvE;AAED,eAAO,MAAM,8BAA8B;;6DAmBzC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useAui, useAuiState } from "@assistant-ui/store";
|
|
2
1
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
2
|
+
import { useAui, useAuiState } from "@assistant-ui/store";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
4
5
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/primitives/server/McpServerRemoveButton.tsx
|
|
7
7
|
const McpServerPrimitiveRemoveButton = forwardRef((props, ref) => {
|
|
8
8
|
const $ = c(7);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
|
|
2
2
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
3
|
-
//#region src/primitives/server/McpServerRoot.d.ts
|
|
4
3
|
export declare namespace McpServerPrimitiveRoot {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.div>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
7
6
|
}
|
|
8
7
|
export declare const McpServerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
9
|
-
|
|
8
|
+
asChild?: boolean;
|
|
10
9
|
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=McpServerRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerRoot.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,sBAAsB;;0DAmBjC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useAuiState } from "@assistant-ui/store";
|
|
2
1
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
2
|
+
import { useAuiState } from "@assistant-ui/store";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
4
5
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/primitives/server/McpServerRoot.tsx
|
|
7
7
|
const McpServerPrimitiveRoot = forwardRef((props, ref) => {
|
|
8
8
|
const $ = c(7);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
|
|
2
2
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
3
|
-
//#region src/primitives/server/McpServerStatus.d.ts
|
|
4
3
|
export declare namespace McpServerPrimitiveStatus {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.span>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
7
6
|
}
|
|
8
7
|
export declare const McpServerPrimitiveStatus: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
9
|
-
|
|
8
|
+
asChild?: boolean;
|
|
10
9
|
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=McpServerStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerStatus.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerStatus.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,wBAAwB;;2DAUnC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useAuiState } from "@assistant-ui/store";
|
|
2
1
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
2
|
+
import { useAuiState } from "@assistant-ui/store";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
4
5
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/primitives/server/McpServerStatus.tsx
|
|
7
7
|
const McpServerPrimitiveStatus = forwardRef((props, ref) => {
|
|
8
8
|
const $ = c(5);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentRef } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
|
|
2
2
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
3
|
-
//#region src/primitives/server/McpServerToolName.d.ts
|
|
4
3
|
export declare namespace McpServerPrimitiveToolName {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type Element = ComponentRef<typeof Primitive.span>;
|
|
5
|
+
type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
7
6
|
}
|
|
8
7
|
export declare const McpServerPrimitiveToolName: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
9
|
-
|
|
8
|
+
asChild?: boolean;
|
|
10
9
|
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=McpServerToolName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerToolName.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerToolName.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerToolName.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,0BAA0B,CAAC;IAC1C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,0BAA0B;;2DAUrC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useMcpServerTool } from "./McpServerTools.js";
|
|
2
2
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef } from "@assistant-ui/tap/react-shim";
|
|
4
5
|
import { Primitive } from "@radix-ui/react-primitive";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/primitives/server/McpServerToolName.tsx
|
|
7
7
|
const McpServerPrimitiveToolName = forwardRef((props, ref) => {
|
|
8
8
|
const $ = c(5);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
//#region src/primitives/server/McpServerTools.d.ts
|
|
1
|
+
import { type FC, type ReactNode } from "react";
|
|
2
|
+
import type { MCPToolInfo } from "../../mcp-scope.js";
|
|
4
3
|
export declare const useMcpServerTool: () => MCPToolInfo;
|
|
5
4
|
export declare namespace McpServerPrimitiveTools {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
type Props = {
|
|
6
|
+
children: ReactNode | ((tool: MCPToolInfo) => ReactNode);
|
|
7
|
+
};
|
|
9
8
|
}
|
|
10
9
|
export declare const McpServerPrimitiveTools: FC<McpServerPrimitiveTools.Props>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=McpServerTools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerTools.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerTools.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerTools.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAwB;AAInD,eAAO,MAAM,gBAAgB,QAAO,WAQnC,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,KAAK,GAAG;QAClB,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,SAAS,CAAC,CAAC;KAC1D,CAAC;CACH;AAED,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAcrE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useAuiState } from "@assistant-ui/store";
|
|
2
1
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
3
|
-
import {
|
|
2
|
+
import { useAuiState } from "@assistant-ui/store";
|
|
4
3
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
+
import { createContext, useContext } from "@assistant-ui/tap/react-shim";
|
|
5
5
|
//#region src/primitives/server/McpServerTools.tsx
|
|
6
6
|
const ToolContext = createContext(null);
|
|
7
7
|
const useMcpServerTool = () => {
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare namespace server_d_exports {
|
|
13
|
-
export { McpServerPrimitiveConnectButton as ConnectButton, McpServerPrimitiveDisconnectButton as DisconnectButton, McpServerPrimitiveError as Error, McpServerPrimitiveIcon as Icon, McpServerPrimitiveName as Name, McpServerPrimitiveOAuthLink as OAuthLink, McpServerPrimitiveRemoveButton as RemoveButton, McpServerPrimitiveRoot as Root, McpServerPrimitiveStatus as Status, McpServerPrimitiveToolName as ToolName, McpServerPrimitiveTools as Tools, useMcpServerTool };
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { McpServerPrimitiveConnectButton as ConnectButton, McpServerPrimitiveDisconnectButton as DisconnectButton, McpServerPrimitiveError as Error, McpServerPrimitiveIcon as Icon, McpServerPrimitiveName as Name, McpServerPrimitiveOAuthLink as OAuthLink, McpServerPrimitiveRemoveButton as RemoveButton, McpServerPrimitiveRoot as Root, McpServerPrimitiveStatus as Status, McpServerPrimitiveToolName as ToolName, McpServerPrimitiveTools as Tools, server_d_exports, useMcpServerTool };
|
|
1
|
+
export { McpServerPrimitiveRoot as Root } from "./server/McpServerRoot.js";
|
|
2
|
+
export { McpServerPrimitiveName as Name } from "./server/McpServerName.js";
|
|
3
|
+
export { McpServerPrimitiveStatus as Status } from "./server/McpServerStatus.js";
|
|
4
|
+
export { McpServerPrimitiveError as Error } from "./server/McpServerError.js";
|
|
5
|
+
export { McpServerPrimitiveIcon as Icon } from "./server/McpServerIcon.js";
|
|
6
|
+
export { McpServerPrimitiveConnectButton as ConnectButton } from "./server/McpServerConnectButton.js";
|
|
7
|
+
export { McpServerPrimitiveDisconnectButton as DisconnectButton } from "./server/McpServerDisconnectButton.js";
|
|
8
|
+
export { McpServerPrimitiveRemoveButton as RemoveButton } from "./server/McpServerRemoveButton.js";
|
|
9
|
+
export { McpServerPrimitiveOAuthLink as OAuthLink } from "./server/McpServerOAuthLink.js";
|
|
10
|
+
export { McpServerPrimitiveTools as Tools, useMcpServerTool, } from "./server/McpServerTools.js";
|
|
11
|
+
export { McpServerPrimitiveToolName as ToolName } from "./server/McpServerToolName.js";
|
|
17
12
|
//# sourceMappingURL=server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/primitives/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,IAAI,IAAI,EAAE,kCAA+B;AACxE,OAAO,EAAE,sBAAsB,IAAI,IAAI,EAAE,kCAA+B;AACxE,OAAO,EAAE,wBAAwB,IAAI,MAAM,EAAE,oCAAiC;AAC9E,OAAO,EAAE,uBAAuB,IAAI,KAAK,EAAE,mCAAgC;AAC3E,OAAO,EAAE,sBAAsB,IAAI,IAAI,EAAE,kCAA+B;AACxE,OAAO,EAAE,+BAA+B,IAAI,aAAa,EAAE,2CAAwC;AACnG,OAAO,EAAE,kCAAkC,IAAI,gBAAgB,EAAE,8CAA2C;AAC5G,OAAO,EAAE,8BAA8B,IAAI,YAAY,EAAE,0CAAuC;AAChG,OAAO,EAAE,2BAA2B,IAAI,SAAS,EAAE,uCAAoC;AACvF,OAAO,EACL,uBAAuB,IAAI,KAAK,EAChC,gBAAgB,GACjB,mCAAgC;AACjC,OAAO,EAAE,0BAA0B,IAAI,QAAQ,EAAE,sCAAmC"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MCPStorageElement } from "./storage/types.js";
|
|
3
|
-
import {
|
|
4
|
-
//#region src/resources/McpManagerResource.d.ts
|
|
1
|
+
import { type ClientOutput } from "@assistant-ui/store";
|
|
2
|
+
import type { MCPStorageElement } from "./storage/types.js";
|
|
3
|
+
import type { MCPConnector } from "../mcp-scope.js";
|
|
5
4
|
export type McpManagerResourceProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
connectors?: MCPConnector[] | undefined;
|
|
6
|
+
storage?: MCPStorageElement | undefined;
|
|
7
|
+
/** OAuth redirect target. Defaults to `${origin}/mcp/callback`. */
|
|
8
|
+
oauthRedirectUri?: string | undefined;
|
|
9
|
+
/** Connect on mount when usable auth exists. Default true. */
|
|
10
|
+
autoConnect?: boolean | undefined;
|
|
11
|
+
/** Optional timeout in milliseconds for connect/listTools calls. Disabled by default. */
|
|
12
|
+
connectionTimeout?: number | undefined;
|
|
14
13
|
};
|
|
15
14
|
export declare const McpManagerResource: import("@assistant-ui/tap").Resource<ClientOutput<"mcp">, [props: McpManagerResourceProps]>;
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=McpManagerResource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpManagerResource.d.ts","
|
|
1
|
+
{"version":3,"file":"McpManagerResource.d.ts","sourceRoot":"","sources":["../../src/resources/McpManagerResource.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAc,iBAAiB,EAAE,2BAAwB;AAErE,OAAO,KAAK,EAEV,YAAY,EAGb,wBAAqB;AAEtB,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,CAAC,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACxC,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAycF,eAAO,MAAM,kBAAkB,6FAAkC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { clearOAuthProviderAuthState } from "../auth/createOAuthProvider.js";
|
|
1
2
|
import { assertUniqueServerIds } from "../utils/serverId.js";
|
|
2
3
|
import { createMcpId } from "../utils/createMcpId.js";
|
|
3
|
-
import { clearOAuthProviderAuthState } from "../auth/createOAuthProvider.js";
|
|
4
4
|
import { withMcpServerRemovalFence } from "./McpServerRemovalFence.js";
|
|
5
5
|
import { McpServerResource } from "./McpServerResource.js";
|
|
6
6
|
import { McpLocalStorage } from "./storage/McpLocalStorage.js";
|
|
7
|
-
import { attachTransformScopes, useAssistantClientRef, useClientLookup } from "@assistant-ui/store";
|
|
8
7
|
import { c } from "@assistant-ui/tap/react-shim/compiler-runtime";
|
|
8
|
+
import { attachTransformScopes, useAssistantClientRef, useClientLookup } from "@assistant-ui/store";
|
|
9
9
|
import { useEffect, useEffectEvent, useRef, useState } from "@assistant-ui/tap/react-shim";
|
|
10
10
|
import { resource, useResource, withKey } from "@assistant-ui/tap";
|
|
11
11
|
import { useAssistantScopeEffect } from "@assistant-ui/store/client";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { McpServerResourceProps } from "./McpServerResource.js";
|
|
2
|
-
//#region src/resources/McpServerRemovalFence.d.ts
|
|
1
|
+
import type { McpServerResourceProps } from "./McpServerResource.js";
|
|
3
2
|
export declare const withMcpServerRemovalFence: (props: McpServerResourceProps, beginRemovalFence: () => () => void) => McpServerResourceProps;
|
|
4
3
|
export declare const beginMcpServerRemovalFence: (props: McpServerResourceProps) => (() => void) | undefined;
|
|
5
|
-
//#endregion
|
|
6
4
|
//# sourceMappingURL=McpServerRemovalFence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerRemovalFence.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerRemovalFence.d.ts","sourceRoot":"","sources":["../../src/resources/McpServerRemovalFence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,+BAA4B;AAQlE,eAAO,MAAM,yBAAyB,GACpC,OAAO,sBAAsB,EAC7B,mBAAmB,MAAM,MAAM,IAAI,KAClC,sBAI2B,CAAC;AAE/B,eAAO,MAAM,0BAA0B,GACrC,OAAO,sBAAsB,KAC5B,CAAC,MAAM,IAAI,CAAC,GAAG,SACsD,CAAC"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MCPStorage } from "./storage/types.js";
|
|
3
|
-
import {
|
|
4
|
-
//#region src/resources/McpServerResource.d.ts
|
|
1
|
+
import type { ClientOutput } from "@assistant-ui/store";
|
|
2
|
+
import type { MCPStorage } from "./storage/types.js";
|
|
3
|
+
import type { MCPAuthConfig, MCPServerKind } from "../mcp-scope.js";
|
|
5
4
|
export type McpServerResourceProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
id: string;
|
|
6
|
+
kind: MCPServerKind;
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
icon?: string | undefined;
|
|
10
|
+
auth: MCPAuthConfig;
|
|
11
|
+
storage: MCPStorage;
|
|
12
|
+
redirectUri: string;
|
|
13
|
+
autoConnect: boolean;
|
|
14
|
+
connectionTimeout?: number | undefined;
|
|
15
|
+
cache?: {
|
|
16
|
+
readonly defaultTtlMs?: number;
|
|
17
|
+
} | undefined;
|
|
18
|
+
readonly elicitation?: boolean;
|
|
19
|
+
onRemove: () => Promise<void>;
|
|
21
20
|
};
|
|
22
21
|
export declare const getConnectionDependencies: (props: McpServerResourceProps) => readonly unknown[];
|
|
23
22
|
export declare const McpServerResource: import("@assistant-ui/tap").Resource<ClientOutput<"mcpServer">, [props: McpServerResourceProps]>;
|
|
24
|
-
//#endregion
|
|
25
23
|
//# sourceMappingURL=McpServerResource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpServerResource.d.ts","
|
|
1
|
+
{"version":3,"file":"McpServerResource.d.ts","sourceRoot":"","sources":["../../src/resources/McpServerResource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAuBxD,OAAO,KAAK,EAAE,UAAU,EAAE,2BAAwB;AAClD,OAAO,KAAK,EACV,aAAa,EAIb,aAAa,EAGd,wBAAqB;AAItB,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,CAAC;AAMF,eAAO,MAAM,yBAAyB,GACpC,OAAO,sBAAsB,KAC5B,SAAS,OAAO,EA2BlB,CAAC;AAqrBF,eAAO,MAAM,iBAAiB,kGAwB5B,CAAC"}
|