skybridge 0.0.0-dev.913c10a → 0.0.0-dev.962ab3f
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/src/server/server.d.ts +1 -0
- package/dist/src/server/server.js +12 -1
- package/dist/src/server/server.js.map +1 -1
- package/dist/src/server/templates/development.hbs +1 -0
- package/dist/src/server/templates/production.hbs +3 -2
- package/dist/src/web/index.d.ts +0 -2
- package/dist/src/web/index.js +0 -2
- package/dist/src/web/index.js.map +1 -1
- package/dist/src/web/plugin.js +2 -4
- package/dist/src/web/plugin.js.map +1 -1
- package/dist/src/web/types.d.ts +1 -9
- package/dist/src/web/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/web/use-call-tool.d.ts +0 -42
- package/dist/src/web/use-call-tool.js +0 -57
- package/dist/src/web/use-call-tool.js.map +0 -1
- package/dist/src/web/use-tool-response-metadata.d.ts +0 -3
- package/dist/src/web/use-tool-response-metadata.js +0 -5
- package/dist/src/web/use-tool-response-metadata.js.map +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { McpServer as McpServerBase, } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { templateHelper } from "./templateHelper.js";
|
|
3
|
+
import { readFileSync } from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
3
5
|
export class McpServer extends McpServerBase {
|
|
4
6
|
widget(name, resourceConfig, toolConfig, toolCallback) {
|
|
5
7
|
const uri = `ui://widgets/${name}.html`;
|
|
@@ -17,7 +19,12 @@ export class McpServer extends McpServerBase {
|
|
|
17
19
|
: `http://localhost:3000`;
|
|
18
20
|
const templateData = {
|
|
19
21
|
serverUrl,
|
|
20
|
-
widgetName:
|
|
22
|
+
widgetName: process.env.NODE_ENV === "production"
|
|
23
|
+
? this.lookupWidgetName(`src/widgets/${name}.tsx`)
|
|
24
|
+
: name,
|
|
25
|
+
styleName: process.env.NODE_ENV === "production"
|
|
26
|
+
? this.lookupWidgetName("style.css")
|
|
27
|
+
: undefined,
|
|
21
28
|
};
|
|
22
29
|
const html = process.env.NODE_ENV === "production"
|
|
23
30
|
? templateHelper.renderProduction(templateData)
|
|
@@ -41,5 +48,9 @@ export class McpServer extends McpServerBase {
|
|
|
41
48
|
_meta: toolMeta,
|
|
42
49
|
}, toolCallback);
|
|
43
50
|
}
|
|
51
|
+
lookupWidgetName(key) {
|
|
52
|
+
const manifest = JSON.parse(readFileSync(path.join(process.cwd(), "dist", "assets", ".vite", "manifest.json"), "utf-8"));
|
|
53
|
+
return manifest[key]?.file;
|
|
54
|
+
}
|
|
44
55
|
}
|
|
45
56
|
//# sourceMappingURL=server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/server/server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,IAAI,aAAa,GAE3B,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/server/server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,IAAI,aAAa,GAE3B,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AA4B7B,MAAM,OAAO,SAAU,SAAQ,aAAa;IAC1C,MAAM,CACJ,IAAY,EACZ,cAA+C,EAC/C,UAGC,EACD,YAAqC;QAErC,MAAM,GAAG,GAAG,gBAAgB,IAAI,OAAO,CAAC;QACxC,MAAM,gBAAgB,GAAiB,EAAE,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,CAAC;QAC3E,IAAI,UAAU,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;YACzC,gBAAgB,CAAC,0BAA0B,C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YAAY,CACf,IAAI,EACJ;YACE,GAAG,UAAU;YACb,KAAK,EAAE,QAAQ;SAChB,EACD,YAAY,CACb,CAAC;IACJ,CAAC;IAEO,gBAAgB,CAAC,GAAW;QAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,YAAY,CACV,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,CAAC,EACpE,OAAO,CACR,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
<base href="{{serverUrl}}" />
|
|
1
2
|
<div id="root"></div>
|
|
2
3
|
<script type="module">
|
|
3
|
-
import('{{serverUrl}}/assets/{{widgetName}}
|
|
4
|
+
import('{{serverUrl}}/assets/{{widgetName}}');
|
|
4
5
|
</script>
|
|
5
|
-
<link rel="stylesheet" crossorigin href="{{serverUrl}}/assets/
|
|
6
|
+
<link rel="stylesheet" crossorigin href="{{serverUrl}}/assets/{{styleName}}" />
|
package/dist/src/web/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { useOpenAiGlobal } from "./use-openai-global.js";
|
|
2
2
|
export { useToolOutput } from "./use-tool-output.js";
|
|
3
|
-
export { useToolResponseMetadata } from "./use-tool-response-metadata.js";
|
|
4
|
-
export { useCallTool } from "./use-call-tool.js";
|
|
5
3
|
export * from "./types.js";
|
|
6
4
|
export { mountWidget } from "./mount-widget.js";
|
|
7
5
|
export { skybridge } from "./plugin.js";
|
package/dist/src/web/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { useOpenAiGlobal } from "./use-openai-global.js";
|
|
2
2
|
export { useToolOutput } from "./use-tool-output.js";
|
|
3
|
-
export { useToolResponseMetadata } from "./use-tool-response-metadata.js";
|
|
4
|
-
export { useCallTool } from "./use-call-tool.js";
|
|
5
3
|
export * from "./types.js";
|
|
6
4
|
export { mountWidget } from "./mount-widget.js";
|
|
7
5
|
export { skybridge } from "./plugin.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/web/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/web/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/src/web/plugin.js
CHANGED
|
@@ -12,15 +12,13 @@ export function skybridge() {
|
|
|
12
12
|
file,
|
|
13
13
|
]));
|
|
14
14
|
return {
|
|
15
|
+
base: "/assets",
|
|
15
16
|
build: {
|
|
17
|
+
manifest: true,
|
|
16
18
|
minify: true,
|
|
17
19
|
cssCodeSplit: false,
|
|
18
20
|
rollupOptions: {
|
|
19
21
|
input,
|
|
20
|
-
output: {
|
|
21
|
-
entryFileNames: "[name].js",
|
|
22
|
-
assetFileNames: "[name][extname]",
|
|
23
|
-
},
|
|
24
22
|
},
|
|
25
23
|
},
|
|
26
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/web/plugin.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,SAAS;IACvB,OAAO;QACL,IAAI,EAAE,WAAW;QAEjB,KAAK,CAAC,MAAM,CAAC,MAAM;YACjB,4EAA4E;YAC5E,MAAM,EAAE,QAAQ,EA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C,KAAK,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC3C,IAAI;aACL,CAAC,CACH,CAAC;YAEF,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE;oBACL,QAAQ,EAAE,IAAI;oBACd,MAAM,EAAE,IAAI;oBACZ,YAAY,EAAE,KAAK;oBACnB,aAAa,EAAE;wBACb,KAAK;qBACN;iBACF;aACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/src/web/types.d.ts
CHANGED
|
@@ -38,20 +38,12 @@ export type OpenAiGlobals<ToolInput extends UnknownObject = UnknownObject, ToolO
|
|
|
38
38
|
toolResponseMetadata: ToolResponseMetadata | null;
|
|
39
39
|
widgetState: WidgetState | null;
|
|
40
40
|
};
|
|
41
|
-
export type CallToolArgs = Record<string, unknown> | null;
|
|
42
41
|
export type CallToolResponse = {
|
|
43
|
-
content: {
|
|
44
|
-
type: "text";
|
|
45
|
-
text: string;
|
|
46
|
-
}[];
|
|
47
|
-
structuredContent: Record<string, unknown>;
|
|
48
|
-
isError: boolean;
|
|
49
42
|
result: string;
|
|
50
|
-
meta: Record<string, unknown>;
|
|
51
43
|
};
|
|
52
44
|
type API<WidgetState extends UnknownObject> = {
|
|
53
45
|
/** Calls a tool on your MCP. Returns the full response. */
|
|
54
|
-
callTool:
|
|
46
|
+
callTool: (name: string, args: Record<string, unknown>) => Promise<CallToolResponse>;
|
|
55
47
|
/** Triggers a followup turn in the ChatGPT conversation */
|
|
56
48
|
sendFollowUpMessage: (args: {
|
|
57
49
|
prompt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/web/types.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAC/D,MAAM,OAAO,iBAAkB,SAAQ,WAErC;IACkB,IAAI,GAAG,wBAAwB,CAAC;CACnD;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/web/types.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAC/D,MAAM,OAAO,iBAAkB,SAAQ,WAErC;IACkB,IAAI,GAAG,wBAAwB,CAAC;CACnD;AA+DD,sDAAsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,oBAAoB,CAAC;AAC3D,MAAM,OAAO,eAAgB,SAAQ,WAEnC;IACkB,IAAI,GAAG,sBAAsB,CAAC;CACjD"}
|
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { CallToolArgs, CallToolResponse } from "./types.js";
|
|
2
|
-
export declare const useCallTool: <ToolArgs extends CallToolArgs = null, ToolResponse extends CallToolResponse = CallToolResponse>(name: string) => {
|
|
3
|
-
callTool: (toolArgs: ToolArgs) => void;
|
|
4
|
-
callToolAsync: (toolArgs: ToolArgs) => Promise<ToolResponse>;
|
|
5
|
-
status: "idle";
|
|
6
|
-
data: undefined;
|
|
7
|
-
error: undefined;
|
|
8
|
-
isIdle: true;
|
|
9
|
-
isPending: false;
|
|
10
|
-
isSuccess: false;
|
|
11
|
-
isError: false;
|
|
12
|
-
} | {
|
|
13
|
-
callTool: (toolArgs: ToolArgs) => void;
|
|
14
|
-
callToolAsync: (toolArgs: ToolArgs) => Promise<ToolResponse>;
|
|
15
|
-
status: "pending";
|
|
16
|
-
data: undefined;
|
|
17
|
-
error: undefined;
|
|
18
|
-
isIdle: false;
|
|
19
|
-
isPending: true;
|
|
20
|
-
isSuccess: false;
|
|
21
|
-
isError: false;
|
|
22
|
-
} | {
|
|
23
|
-
callTool: (toolArgs: ToolArgs) => void;
|
|
24
|
-
callToolAsync: (toolArgs: ToolArgs) => Promise<ToolResponse>;
|
|
25
|
-
status: "error";
|
|
26
|
-
data: undefined;
|
|
27
|
-
error: unknown;
|
|
28
|
-
isIdle: false;
|
|
29
|
-
isPending: false;
|
|
30
|
-
isSuccess: false;
|
|
31
|
-
isError: true;
|
|
32
|
-
} | {
|
|
33
|
-
callTool: (toolArgs: ToolArgs) => void;
|
|
34
|
-
callToolAsync: (toolArgs: ToolArgs) => Promise<ToolResponse>;
|
|
35
|
-
status: "success";
|
|
36
|
-
data: ToolResponse;
|
|
37
|
-
error: undefined;
|
|
38
|
-
isIdle: false;
|
|
39
|
-
isPending: false;
|
|
40
|
-
isSuccess: true;
|
|
41
|
-
isError: false;
|
|
42
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
export const useCallTool = (name) => {
|
|
3
|
-
const [callToolState, setCallToolState] = useState({
|
|
4
|
-
status: "idle",
|
|
5
|
-
data: undefined,
|
|
6
|
-
error: undefined,
|
|
7
|
-
isIdle: true,
|
|
8
|
-
isPending: false,
|
|
9
|
-
isSuccess: false,
|
|
10
|
-
isError: false,
|
|
11
|
-
});
|
|
12
|
-
const callToolAsync = async (toolArgs) => {
|
|
13
|
-
setCallToolState({
|
|
14
|
-
status: "pending",
|
|
15
|
-
data: undefined,
|
|
16
|
-
error: undefined,
|
|
17
|
-
isIdle: false,
|
|
18
|
-
isPending: true,
|
|
19
|
-
isSuccess: false,
|
|
20
|
-
isError: false,
|
|
21
|
-
});
|
|
22
|
-
try {
|
|
23
|
-
const data = await window.openai.callTool(name, toolArgs);
|
|
24
|
-
setCallToolState({
|
|
25
|
-
status: "success",
|
|
26
|
-
data,
|
|
27
|
-
error: undefined,
|
|
28
|
-
isIdle: false,
|
|
29
|
-
isPending: false,
|
|
30
|
-
isSuccess: true,
|
|
31
|
-
isError: false,
|
|
32
|
-
});
|
|
33
|
-
return data;
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
setCallToolState({
|
|
37
|
-
status: "error",
|
|
38
|
-
data: undefined,
|
|
39
|
-
error,
|
|
40
|
-
isIdle: false,
|
|
41
|
-
isPending: false,
|
|
42
|
-
isSuccess: false,
|
|
43
|
-
isError: true,
|
|
44
|
-
});
|
|
45
|
-
throw error;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
const callTool = (toolArgs) => {
|
|
49
|
-
void callToolAsync(toolArgs);
|
|
50
|
-
};
|
|
51
|
-
return {
|
|
52
|
-
...callToolState,
|
|
53
|
-
callTool,
|
|
54
|
-
callToolAsync,
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=use-call-tool.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-call-tool.js","sourceRoot":"","sources":["../../../src/web/use-call-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AA+CjC,MAAM,CAAC,MAAM,WAAW,GAAG,CAIzB,IAAY,EACZ,EAAE;IACF,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAEhD;QACA,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,KAAK;KACf,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,EAAE,QAAkB,EAAE,EAAE;QACjD,gBAAgB,CAAC;YACf,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,KAAK;YACb,SAAS,EAAE,IAAI;YACf,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;QACH,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CACvC,IAAI,EACJ,QAAQ,CACT,CAAC;YACF,gBAAgB,CAAC;gBACf,MAAM,EAAE,SAAS;gBACjB,IAAI;gBACJ,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,KAAK;aACf,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,gBAAgB,CAAC;gBACf,MAAM,EAAE,OAAO;gBACf,IAAI,EAAE,SAAS;gBACf,KAAK;gBACL,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,KAAK;gBAChB,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;YACH,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,QAAkB,EAAE,EAAE;QACtC,KAAK,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC;IAEF,OAAO;QACL,GAAG,aAAa;QAChB,QAAQ;QACR,aAAa;KACd,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-tool-response-metadata.js","sourceRoot":"","sources":["../../../src/web/use-tool-response-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,UAAU,uBAAuB;IACrC,OAAO,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACjD,CAAC"}
|