@superinterface/server 1.0.38 → 1.0.40
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_btwyo7 +1 -1
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/chunks/[root-of-the-server]__29b43490._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__29b43490._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__441cee00._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__441cee00._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__dd176cb5._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__dd176cb5._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__eb816e13._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__eb816e13._.js.map +1 -1
- package/.next/server/chunks/supercorp_superinterface_bebd2c96._.js +1 -1
- package/.next/server/chunks/supercorp_superinterface_bebd2c96._.js.map +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/trace +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/buildRoute.d.ts +6 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/buildRoute.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/buildRoute.js +13 -2
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.d.ts +6 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/buildRoute.d.ts +4 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/buildRoute.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/buildRoute.js +13 -2
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts +4 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts.map +1 -1
- package/dist/lib/functions/handleFunction/handleRequest.d.ts.map +1 -1
- package/dist/lib/functions/handleFunction/handleRequest.js +21 -8
- package/dist/lib/mcpServers/mcpServerSchema.d.ts +16 -0
- package/dist/lib/mcpServers/mcpServerSchema.d.ts.map +1 -1
- package/dist/lib/mcpServers/mcpServerSchema.js +3 -0
- package/dist/lib/mcpServers/serializeApiMcpServer.d.ts +2 -0
- package/dist/lib/mcpServers/serializeApiMcpServer.d.ts.map +1 -1
- package/dist/lib/mcpServers/serializeApiMcpServer.js +2 -0
- package/dist/lib/tools/tools/index.d.ts.map +1 -1
- package/dist/lib/tools/tools/index.js +10 -9
- package/package.json +1 -1
- package/prisma/McpServer.prisma +2 -0
- package/prisma/migrations/20251016001510_add_mcp_server_name_description/migration.sql +3 -0
- /package/.next/static/{TU89T_3Duqf8mLJKcxOWt → wuIqo1AC4IH0KlhrbfHcA}/_buildManifest.js +0 -0
- /package/.next/static/{TU89T_3Duqf8mLJKcxOWt → wuIqo1AC4IH0KlhrbfHcA}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{TU89T_3Duqf8mLJKcxOWt → wuIqo1AC4IH0KlhrbfHcA}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--wuIqo1AC4IH0KlhrbfHcA--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/76a8a50dbf44f000.js"/><script src="/_next/static/chunks/079ce3572ffa07f6.js" async=""></script><script src="/_next/static/chunks/4649e58e35bcde4b.js" async=""></script><script src="/_next/static/chunks/turbopack-11882cf18a9eb231.js" async=""></script><script src="/_next/static/chunks/03d938d038bc30e3.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/76a8a50dbf44f000.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[96352,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n3:I[17753,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n4:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"OutletBoundary\"]\n6:I[33159,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"AsyncMetadataOutlet\"]\n8:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"ViewportBoundary\"]\na:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[25098,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"wuIqo1AC4IH0KlhrbfHcA\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/03d938d038bc30e3.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script><script src="/_next/static/chunks/22bca0be24d1dbb3.js" defer=""></script><script src="/_next/static/chunks/bd1a5816a611d718.js" defer=""></script><script src="/_next/static/chunks/turbopack-3bdbb570d8566903.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-67ff8c1c5b1ad9a8.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script><script src="/_next/static/chunks/22bca0be24d1dbb3.js" defer=""></script><script src="/_next/static/chunks/bd1a5816a611d718.js" defer=""></script><script src="/_next/static/chunks/turbopack-3bdbb570d8566903.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-67ff8c1c5b1ad9a8.js" defer=""></script><script src="/_next/static/wuIqo1AC4IH0KlhrbfHcA/_ssgManifest.js" defer=""></script><script src="/_next/static/wuIqo1AC4IH0KlhrbfHcA/_buildManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"wuIqo1AC4IH0KlhrbfHcA","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":122,"timestamp":664515786581,"id":4,"parentId":1,"tags":{},"startTime":1760556030017,"traceId":"cbfdb4b0c9b33424"},{"name":"load-custom-routes","duration":163,"timestamp":664515786751,"id":5,"parentId":1,"tags":{},"startTime":1760556030017,"traceId":"cbfdb4b0c9b33424"},{"name":"create-dist-dir","duration":852,"timestamp":664515849357,"id":6,"parentId":1,"tags":{},"startTime":1760556030080,"traceId":"cbfdb4b0c9b33424"},{"name":"create-pages-mapping","duration":112,"timestamp":664515916624,"id":7,"parentId":1,"tags":{},"startTime":1760556030147,"traceId":"cbfdb4b0c9b33424"},{"name":"collect-app-files","duration":8461,"timestamp":664515916786,"id":8,"parentId":1,"tags":{},"startTime":1760556030147,"traceId":"cbfdb4b0c9b33424"},{"name":"create-app-mapping","duration":874,"timestamp":664515925273,"id":9,"parentId":1,"tags":{},"startTime":1760556030156,"traceId":"cbfdb4b0c9b33424"},{"name":"create-app-layouts","duration":186,"timestamp":664515926163,"id":10,"parentId":1,"tags":{},"startTime":1760556030156,"traceId":"cbfdb4b0c9b33424"},{"name":"collect-default-files","duration":3742,"timestamp":664515927655,"id":12,"parentId":1,"tags":{},"startTime":1760556030158,"traceId":"cbfdb4b0c9b33424"},{"name":"generate-route-types","duration":18099,"timestamp":664515926914,"id":11,"parentId":1,"tags":{},"startTime":1760556030157,"traceId":"cbfdb4b0c9b33424"},{"name":"public-dir-conflict-check","duration":684,"timestamp":664515945059,"id":13,"parentId":1,"tags":{},"startTime":1760556030175,"traceId":"cbfdb4b0c9b33424"},{"name":"generate-routes-manifest","duration":1273,"timestamp":664515945863,"id":14,"parentId":1,"tags":{},"startTime":1760556030176,"traceId":"cbfdb4b0c9b33424"},{"name":"run-turbopack-compiler","duration":6244777,"timestamp":664515949742,"id":16,"parentId":1,"tags":{},"startTime":1760556030180,"traceId":"cbfdb4b0c9b33424"},{"name":"verify-and-lint","duration":2031190,"timestamp":664522214383,"id":19,"parentId":1,"tags":{},"startTime":1760556036445,"traceId":"cbfdb4b0c9b33424"},{"name":"verify-typescript-setup","duration":7773133,"timestamp":664522211948,"id":18,"parentId":1,"tags":{},"startTime":1760556036442,"traceId":"cbfdb4b0c9b33424"},{"name":"check-static-error-page","duration":3296,"timestamp":664530010334,"id":22,"parentId":21,"tags":{},"startTime":1760556044241,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":2376,"timestamp":664530105830,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1760556044336,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":1366,"timestamp":664530106851,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":1456,"timestamp":664530106762,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":359893,"timestamp":664530126548,"id":54,"parentId":41,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":379365,"timestamp":664530107110,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":369440,"timestamp":664530117082,"id":51,"parentId":29,"tags":{},"startTime":1760556044348,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":379566,"timestamp":664530106964,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":362049,"timestamp":664530126455,"id":53,"parentId":34,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":381456,"timestamp":664530107074,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":360506,"timestamp":664530134245,"id":57,"parentId":28,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":388117,"timestamp":664530106956,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":369325,"timestamp":664530134598,"id":59,"parentId":33,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":396891,"timestamp":664530107066,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":377383,"timestamp":664530126606,"id":55,"parentId":43,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":396876,"timestamp":664530107120,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":370777,"timestamp":664530134514,"id":58,"parentId":30,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":398356,"timestamp":664530106972,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":386346,"timestamp":664530126095,"id":52,"parentId":32,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":407412,"timestamp":664530107054,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":385464,"timestamp":664530134612,"id":60,"parentId":42,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":412986,"timestamp":664530107115,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":408845,"timestamp":664530134618,"id":61,"parentId":45,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":436564,"timestamp":664530107130,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":410742,"timestamp":664530134802,"id":65,"parentId":35,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":438488,"timestamp":664530107080,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":413312,"timestamp":664530136243,"id":67,"parentId":47,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":442443,"timestamp":664530107139,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":432549,"timestamp":664530136282,"id":68,"parentId":46,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":461753,"timestamp":664530107134,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":437950,"timestamp":664530136333,"id":69,"parentId":48,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":467166,"timestamp":664530107144,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":457107,"timestamp":664530126968,"id":56,"parentId":31,"tags":{},"startTime":1760556044357,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":477063,"timestamp":664530107041,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":476567,"timestamp":664530113996,"id":50,"parentId":27,"tags":{},"startTime":1760556044345,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":483649,"timestamp":664530106940,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":467656,"timestamp":664530136364,"id":70,"parentId":26,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":497206,"timestamp":664530106868,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1760556044337,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":467777,"timestamp":664530157638,"id":73,"parentId":49,"tags":{},"startTime":1760556044388,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":518318,"timestamp":664530107149,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":605379,"timestamp":664530134696,"id":64,"parentId":39,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":635935,"timestamp":664530107100,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":629116,"timestamp":664530134691,"id":62,"parentId":36,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":656758,"timestamp":664530107085,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":659484,"timestamp":664530134694,"id":63,"parentId":40,"tags":{},"startTime":1760556044365,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":687128,"timestamp":664530107105,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":672030,"timestamp":664530136151,"id":66,"parentId":44,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":701165,"timestamp":664530107125,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":687695,"timestamp":664530136410,"id":71,"parentId":37,"tags":{},"startTime":1760556044367,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":717041,"timestamp":664530107090,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"is-page-static","duration":722171,"timestamp":664530141271,"id":72,"parentId":38,"tags":{},"startTime":1760556044372,"traceId":"cbfdb4b0c9b33424"},{"name":"check-page","duration":756398,"timestamp":664530107095,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1760556044338,"traceId":"cbfdb4b0c9b33424"},{"name":"static-check","duration":853762,"timestamp":664530009779,"id":21,"parentId":1,"tags":{},"startTime":1760556044240,"traceId":"cbfdb4b0c9b33424"},{"name":"generate-required-server-files","duration":250,"timestamp":664530864199,"id":75,"parentId":1,"tags":{},"startTime":1760556045095,"traceId":"cbfdb4b0c9b33424"},{"name":"write-routes-manifest","duration":955,"timestamp":664530872191,"id":77,"parentId":1,"tags":{},"startTime":1760556045103,"traceId":"cbfdb4b0c9b33424"},{"name":"load-dotenv","duration":16,"timestamp":664530901424,"id":80,"parentId":79,"tags":{},"startTime":1760556045132,"traceId":"cbfdb4b0c9b33424"},{"name":"run-export-path-map","duration":287,"timestamp":664531046313,"id":81,"parentId":79,"tags":{},"startTime":1760556045277,"traceId":"cbfdb4b0c9b33424"},{"name":"next-export","duration":868338,"timestamp":664530900904,"id":79,"parentId":1,"tags":{},"startTime":1760556045131,"traceId":"cbfdb4b0c9b33424"},{"name":"move-exported-app-not-found-","duration":4835,"timestamp":664531770255,"id":82,"parentId":78,"tags":{},"startTime":1760556046001,"traceId":"cbfdb4b0c9b33424"},{"name":"move-exported-page","duration":14917,"timestamp":664531775198,"id":83,"parentId":78,"tags":{},"startTime":1760556046006,"traceId":"cbfdb4b0c9b33424"},{"name":"static-generation","duration":1153644,"timestamp":664530883583,"id":78,"parentId":1,"tags":{},"startTime":1760556045114,"traceId":"cbfdb4b0c9b33424"},{"name":"write-routes-manifest","duration":876457,"timestamp":664532037525,"id":84,"parentId":1,"tags":{},"startTime":1760556046268,"traceId":"cbfdb4b0c9b33424"},{"name":"node-file-trace-build","duration":4303032,"timestamp":664530868207,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1760556045099,"traceId":"cbfdb4b0c9b33424"},{"name":"apply-include-excludes","duration":314,"timestamp":664535171257,"id":85,"parentId":1,"tags":{},"startTime":1760556049402,"traceId":"cbfdb4b0c9b33424"},{"name":"print-tree-view","duration":1955,"timestamp":664535171929,"id":86,"parentId":1,"tags":{},"startTime":1760556049402,"traceId":"cbfdb4b0c9b33424"},{"name":"telemetry-flush","duration":29,"timestamp":664535173893,"id":87,"parentId":1,"tags":{},"startTime":1760556049404,"traceId":"cbfdb4b0c9b33424"},{"name":"next-build","duration":19726589,"timestamp":664515447336,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1760556029678,"traceId":"cbfdb4b0c9b33424"}]
|
|
1
|
+
[{"name":"generate-buildid","duration":126,"timestamp":682252296127,"id":4,"parentId":1,"tags":{},"startTime":1760573766609,"traceId":"9ca6badc1dfd1c2e"},{"name":"load-custom-routes","duration":182,"timestamp":682252296302,"id":5,"parentId":1,"tags":{},"startTime":1760573766609,"traceId":"9ca6badc1dfd1c2e"},{"name":"create-dist-dir","duration":962,"timestamp":682252327361,"id":6,"parentId":1,"tags":{},"startTime":1760573766640,"traceId":"9ca6badc1dfd1c2e"},{"name":"create-pages-mapping","duration":107,"timestamp":682252367489,"id":7,"parentId":1,"tags":{},"startTime":1760573766680,"traceId":"9ca6badc1dfd1c2e"},{"name":"collect-app-files","duration":2785,"timestamp":682252367617,"id":8,"parentId":1,"tags":{},"startTime":1760573766680,"traceId":"9ca6badc1dfd1c2e"},{"name":"create-app-mapping","duration":849,"timestamp":682252370420,"id":9,"parentId":1,"tags":{},"startTime":1760573766683,"traceId":"9ca6badc1dfd1c2e"},{"name":"create-app-layouts","duration":188,"timestamp":682252371286,"id":10,"parentId":1,"tags":{},"startTime":1760573766684,"traceId":"9ca6badc1dfd1c2e"},{"name":"collect-default-files","duration":6052,"timestamp":682252380815,"id":12,"parentId":1,"tags":{},"startTime":1760573766694,"traceId":"9ca6badc1dfd1c2e"},{"name":"generate-route-types","duration":31044,"timestamp":682252371828,"id":11,"parentId":1,"tags":{},"startTime":1760573766685,"traceId":"9ca6badc1dfd1c2e"},{"name":"public-dir-conflict-check","duration":887,"timestamp":682252403195,"id":13,"parentId":1,"tags":{},"startTime":1760573766716,"traceId":"9ca6badc1dfd1c2e"},{"name":"generate-routes-manifest","duration":1239,"timestamp":682252404189,"id":14,"parentId":1,"tags":{},"startTime":1760573766717,"traceId":"9ca6badc1dfd1c2e"},{"name":"run-turbopack-compiler","duration":7127427,"timestamp":682252409756,"id":16,"parentId":1,"tags":{},"startTime":1760573766723,"traceId":"9ca6badc1dfd1c2e"},{"name":"verify-and-lint","duration":1826439,"timestamp":682259552380,"id":19,"parentId":1,"tags":{},"startTime":1760573773865,"traceId":"9ca6badc1dfd1c2e"},{"name":"verify-typescript-setup","duration":4595228,"timestamp":682259550018,"id":18,"parentId":1,"tags":{},"startTime":1760573773863,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-static-error-page","duration":2373,"timestamp":682264158119,"id":22,"parentId":21,"tags":{},"startTime":1760573778471,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":4140,"timestamp":682264204131,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1760573778517,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":1999,"timestamp":682264206283,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1760573778519,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":2897,"timestamp":682264205386,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1760573778518,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":207167,"timestamp":682264212324,"id":50,"parentId":26,"tags":{},"startTime":1760573778525,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":213205,"timestamp":682264206325,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1760573778519,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":241175,"timestamp":682264217598,"id":51,"parentId":28,"tags":{},"startTime":1760573778531,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":252332,"timestamp":682264206521,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1760573778519,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":273498,"timestamp":682264219134,"id":54,"parentId":42,"tags":{},"startTime":1760573778532,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":285562,"timestamp":682264207122,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":273774,"timestamp":682264219047,"id":53,"parentId":33,"tags":{},"startTime":1760573778532,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":285938,"timestamp":682264206908,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":275522,"timestamp":682264220861,"id":59,"parentId":35,"tags":{},"startTime":1760573778534,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":289460,"timestamp":682264206956,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":287834,"timestamp":682264219188,"id":55,"parentId":45,"tags":{},"startTime":1760573778532,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":299939,"timestamp":682264207138,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":298880,"timestamp":682264218825,"id":52,"parentId":30,"tags":{},"startTime":1760573778532,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":311202,"timestamp":682264206571,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":304065,"timestamp":682264228407,"id":63,"parentId":46,"tags":{},"startTime":1760573778541,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":325360,"timestamp":682264207143,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":335425,"timestamp":682264228567,"id":64,"parentId":47,"tags":{},"startTime":1760573778542,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":356984,"timestamp":682264207147,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":339275,"timestamp":682264228892,"id":65,"parentId":48,"tags":{},"startTime":1760573778542,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":361040,"timestamp":682264207152,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":343302,"timestamp":682264229795,"id":66,"parentId":27,"tags":{},"startTime":1760573778543,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":366638,"timestamp":682264206482,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1760573778519,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":351364,"timestamp":682264229826,"id":67,"parentId":29,"tags":{},"startTime":1760573778543,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":374723,"timestamp":682264206547,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":356878,"timestamp":682264229829,"id":68,"parentId":32,"tags":{},"startTime":1760573778543,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":379892,"timestamp":682264206842,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":359516,"timestamp":682264229832,"id":69,"parentId":34,"tags":{},"startTime":1760573778543,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":382455,"timestamp":682264206935,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":365063,"timestamp":682264229834,"id":70,"parentId":41,"tags":{},"startTime":1760573778543,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":387832,"timestamp":682264207117,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":382145,"timestamp":682264229837,"id":71,"parentId":43,"tags":{},"startTime":1760573778543,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":404886,"timestamp":682264207127,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":384995,"timestamp":682264229938,"id":72,"parentId":31,"tags":{},"startTime":1760573778543,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":408350,"timestamp":682264206604,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":403821,"timestamp":682264232113,"id":73,"parentId":49,"tags":{},"startTime":1760573778545,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":428829,"timestamp":682264207157,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":556239,"timestamp":682264220312,"id":57,"parentId":39,"tags":{},"startTime":1760573778533,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":569512,"timestamp":682264207105,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":580137,"timestamp":682264220259,"id":56,"parentId":36,"tags":{},"startTime":1760573778533,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":593452,"timestamp":682264206975,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":580085,"timestamp":682264220363,"id":58,"parentId":40,"tags":{},"startTime":1760573778533,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":593342,"timestamp":682264207112,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":598269,"timestamp":682264221040,"id":60,"parentId":37,"tags":{},"startTime":1760573778534,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":612414,"timestamp":682264207083,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":612912,"timestamp":682264228228,"id":62,"parentId":44,"tags":{},"startTime":1760573778541,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":634044,"timestamp":682264207133,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"is-page-static","duration":647439,"timestamp":682264226277,"id":61,"parentId":38,"tags":{},"startTime":1760573778539,"traceId":"9ca6badc1dfd1c2e"},{"name":"check-page","duration":666646,"timestamp":682264207099,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1760573778520,"traceId":"9ca6badc1dfd1c2e"},{"name":"static-check","duration":716195,"timestamp":682264157574,"id":21,"parentId":1,"tags":{},"startTime":1760573778471,"traceId":"9ca6badc1dfd1c2e"},{"name":"generate-required-server-files","duration":270,"timestamp":682264874976,"id":75,"parentId":1,"tags":{},"startTime":1760573779188,"traceId":"9ca6badc1dfd1c2e"},{"name":"write-routes-manifest","duration":694,"timestamp":682264883530,"id":77,"parentId":1,"tags":{},"startTime":1760573779197,"traceId":"9ca6badc1dfd1c2e"},{"name":"load-dotenv","duration":22,"timestamp":682264898518,"id":80,"parentId":79,"tags":{},"startTime":1760573779211,"traceId":"9ca6badc1dfd1c2e"},{"name":"run-export-path-map","duration":261,"timestamp":682265021506,"id":81,"parentId":79,"tags":{},"startTime":1760573779334,"traceId":"9ca6badc1dfd1c2e"},{"name":"next-export","duration":1091411,"timestamp":682264897967,"id":79,"parentId":1,"tags":{},"startTime":1760573779211,"traceId":"9ca6badc1dfd1c2e"},{"name":"move-exported-app-not-found-","duration":7970,"timestamp":682265990386,"id":82,"parentId":78,"tags":{},"startTime":1760573780303,"traceId":"9ca6badc1dfd1c2e"},{"name":"move-exported-page","duration":40776,"timestamp":682265998459,"id":83,"parentId":78,"tags":{},"startTime":1760573780311,"traceId":"9ca6badc1dfd1c2e"},{"name":"static-generation","duration":1477574,"timestamp":682264892820,"id":78,"parentId":1,"tags":{},"startTime":1760573779206,"traceId":"9ca6badc1dfd1c2e"},{"name":"write-routes-manifest","duration":9435,"timestamp":682266370611,"id":84,"parentId":1,"tags":{},"startTime":1760573780684,"traceId":"9ca6badc1dfd1c2e"},{"name":"node-file-trace-build","duration":3804506,"timestamp":682264877642,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1760573779191,"traceId":"9ca6badc1dfd1c2e"},{"name":"apply-include-excludes","duration":280,"timestamp":682268682162,"id":85,"parentId":1,"tags":{},"startTime":1760573782995,"traceId":"9ca6badc1dfd1c2e"},{"name":"print-tree-view","duration":2218,"timestamp":682268682780,"id":86,"parentId":1,"tags":{},"startTime":1760573782996,"traceId":"9ca6badc1dfd1c2e"},{"name":"telemetry-flush","duration":31,"timestamp":682268685008,"id":87,"parentId":1,"tags":{},"startTime":1760573782998,"traceId":"9ca6badc1dfd1c2e"},{"name":"next-build","duration":16659647,"timestamp":682252025396,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1760573766338,"traceId":"9ca6badc1dfd1c2e"}]
|
|
@@ -13,6 +13,8 @@ export declare const buildGET: ({ prisma }: {
|
|
|
13
13
|
}> | NextResponse<{
|
|
14
14
|
mcpServer: {
|
|
15
15
|
id: string;
|
|
16
|
+
name: string | null;
|
|
17
|
+
description: string | null;
|
|
16
18
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
17
19
|
sseTransport: {
|
|
18
20
|
id: string;
|
|
@@ -39,6 +41,8 @@ export declare const buildPATCH: ({ prisma }: {
|
|
|
39
41
|
}> | NextResponse<{
|
|
40
42
|
mcpServer: {
|
|
41
43
|
id: string;
|
|
44
|
+
name: string | null;
|
|
45
|
+
description: string | null;
|
|
42
46
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
43
47
|
sseTransport: {
|
|
44
48
|
id: string;
|
|
@@ -65,6 +69,8 @@ export declare const buildDELETE: ({ prisma }: {
|
|
|
65
69
|
}> | NextResponse<{
|
|
66
70
|
mcpServer: {
|
|
67
71
|
id: string;
|
|
72
|
+
name: string | null;
|
|
73
|
+
description: string | null;
|
|
68
74
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
69
75
|
sseTransport: {
|
|
70
76
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildRoute.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/buildRoute.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAO5D,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC9D,CAAA;
|
|
1
|
+
{"version":3,"file":"buildRoute.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/buildRoute.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAO5D,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC9D,CAAA;AA6BD,eAAO,MAAM,QAAQ,GAClB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,UAAU,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;GAoD9C,CAAA;AAEH,eAAO,MAAM,UAAU,GACpB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,SAAS,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;GAkG7C,CAAA;AAEH,eAAO,MAAM,WAAW,GACrB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,UAAU,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;GAwD9C,CAAA;AAEH,eAAO,MAAM,YAAY,8BAMtB,CAAA"}
|
|
@@ -6,6 +6,13 @@ import { getApiKey } from '../../../../../../lib/apiKeys/getApiKey';
|
|
|
6
6
|
import { validate } from 'uuid';
|
|
7
7
|
import { serializeApiMcpServer } from '../../../../../../lib/mcpServers/serializeApiMcpServer';
|
|
8
8
|
import { mcpServerSchema } from '../../../../../../lib/mcpServers/mcpServerSchema';
|
|
9
|
+
const normalizeOptionalString = (value) => {
|
|
10
|
+
if (value === undefined)
|
|
11
|
+
return undefined;
|
|
12
|
+
if (value === null)
|
|
13
|
+
return null;
|
|
14
|
+
return value.trim();
|
|
15
|
+
};
|
|
9
16
|
const validateIds = ({ assistantId, mcpServerId, }) => {
|
|
10
17
|
if (!validate(assistantId)) {
|
|
11
18
|
return NextResponse.json({ error: 'Invalid assistant id' }, { status: 400 });
|
|
@@ -76,7 +83,9 @@ export const buildPATCH = ({ prisma }) => async (request, props) => {
|
|
|
76
83
|
if (!parsed.success) {
|
|
77
84
|
return NextResponse.json({ error: 'Invalid payload' }, { status: 400 });
|
|
78
85
|
}
|
|
79
|
-
const { transportType, sseTransport, httpTransport } = parsed.data;
|
|
86
|
+
const { transportType, sseTransport, httpTransport, name, description } = parsed.data;
|
|
87
|
+
const normalizedName = normalizeOptionalString(name);
|
|
88
|
+
const normalizedDescription = normalizeOptionalString(description);
|
|
80
89
|
const mcpServer = await prisma.mcpServer.findFirst({
|
|
81
90
|
where: {
|
|
82
91
|
id: mcpServerId,
|
|
@@ -93,7 +102,9 @@ export const buildPATCH = ({ prisma }) => async (request, props) => {
|
|
|
93
102
|
where: {
|
|
94
103
|
id: mcpServerId,
|
|
95
104
|
},
|
|
96
|
-
data: Object.assign(Object.assign({ transportType }, (
|
|
105
|
+
data: Object.assign(Object.assign(Object.assign(Object.assign({ transportType }, (normalizedName !== undefined ? { name: normalizedName } : {})), (normalizedDescription !== undefined
|
|
106
|
+
? { description: normalizedDescription }
|
|
107
|
+
: {})), (transportType === TransportType.SSE
|
|
97
108
|
? {
|
|
98
109
|
sseTransport: {
|
|
99
110
|
update: {
|
|
@@ -8,6 +8,8 @@ export declare const GET: (_request: import("next/server").NextRequest, props: {
|
|
|
8
8
|
}> | import("next/server").NextResponse<{
|
|
9
9
|
mcpServer: {
|
|
10
10
|
id: string;
|
|
11
|
+
name: string | null;
|
|
12
|
+
description: string | null;
|
|
11
13
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
12
14
|
sseTransport: {
|
|
13
15
|
id: string;
|
|
@@ -37,6 +39,8 @@ export declare const PATCH: (request: import("next/server").NextRequest, props:
|
|
|
37
39
|
}> | import("next/server").NextResponse<{
|
|
38
40
|
mcpServer: {
|
|
39
41
|
id: string;
|
|
42
|
+
name: string | null;
|
|
43
|
+
description: string | null;
|
|
40
44
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
41
45
|
sseTransport: {
|
|
42
46
|
id: string;
|
|
@@ -66,6 +70,8 @@ export declare const DELETE: (_request: import("next/server").NextRequest, props
|
|
|
66
70
|
}> | import("next/server").NextResponse<{
|
|
67
71
|
mcpServer: {
|
|
68
72
|
id: string;
|
|
73
|
+
name: string | null;
|
|
74
|
+
description: string | null;
|
|
69
75
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
70
76
|
sseTransport: {
|
|
71
77
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuB,CAAA;AAEvC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyB,CAAA;AAE3C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0B,CAAA;AAE7C,eAAO,MAAM,OAAO,8CAAiB,CAAA"}
|
|
@@ -12,6 +12,8 @@ export declare const buildGET: ({ prisma }: {
|
|
|
12
12
|
}> | NextResponse<{
|
|
13
13
|
mcpServers: {
|
|
14
14
|
id: string;
|
|
15
|
+
name: string | null;
|
|
16
|
+
description: string | null;
|
|
15
17
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
16
18
|
sseTransport: {
|
|
17
19
|
id: string;
|
|
@@ -38,6 +40,8 @@ export declare const buildPOST: ({ prisma }: {
|
|
|
38
40
|
}> | NextResponse<{
|
|
39
41
|
mcpServer: {
|
|
40
42
|
id: string;
|
|
43
|
+
name: string | null;
|
|
44
|
+
description: string | null;
|
|
41
45
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
42
46
|
sseTransport: {
|
|
43
47
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildRoute.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/assistants/[assistantId]/mcp-servers/buildRoute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAO7E,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzC,CAAA;
|
|
1
|
+
{"version":3,"file":"buildRoute.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/assistants/[assistantId]/mcp-servers/buildRoute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAO7E,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzC,CAAA;AAQD,eAAO,MAAM,QAAQ,GAClB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,UAAU,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;GAuD9C,CAAA;AAEH,eAAO,MAAM,SAAS,GACnB,YAAY;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,MAC9B,SAAS,WAAW,EAAE,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;GA2F7C,CAAA;AAEH,eAAO,MAAM,YAAY,8BAMtB,CAAA"}
|
|
@@ -5,6 +5,13 @@ import { cacheHeaders } from '../../../../../lib/cache/cacheHeaders';
|
|
|
5
5
|
import { getApiKey } from '../../../../../lib/apiKeys/getApiKey';
|
|
6
6
|
import { serializeApiMcpServer } from '../../../../../lib/mcpServers/serializeApiMcpServer';
|
|
7
7
|
import { mcpServerSchema } from '../../../../../lib/mcpServers/mcpServerSchema';
|
|
8
|
+
const normalizeOptionalString = (value) => {
|
|
9
|
+
if (value === undefined)
|
|
10
|
+
return undefined;
|
|
11
|
+
if (value === null)
|
|
12
|
+
return null;
|
|
13
|
+
return value.trim();
|
|
14
|
+
};
|
|
8
15
|
export const buildGET = ({ prisma }) => async (_request, props) => {
|
|
9
16
|
const { assistantId } = await props.params;
|
|
10
17
|
const headersList = await headers();
|
|
@@ -67,7 +74,9 @@ export const buildPOST = ({ prisma }) => async (request, props) => {
|
|
|
67
74
|
if (!parsed.success) {
|
|
68
75
|
return NextResponse.json({ error: 'Invalid payload' }, { status: 400 });
|
|
69
76
|
}
|
|
70
|
-
const { transportType, sseTransport, httpTransport } = parsed.data;
|
|
77
|
+
const { transportType, sseTransport, httpTransport, name, description } = parsed.data;
|
|
78
|
+
const normalizedName = normalizeOptionalString(name);
|
|
79
|
+
const normalizedDescription = normalizeOptionalString(description);
|
|
71
80
|
const workspaceId = privateApiKey.workspaceId;
|
|
72
81
|
const assistant = await prisma.assistant.findFirst({
|
|
73
82
|
where: { id: assistantId, workspaceId },
|
|
@@ -76,7 +85,7 @@ export const buildPOST = ({ prisma }) => async (request, props) => {
|
|
|
76
85
|
return NextResponse.json({ error: 'No assistant found' }, { status: 400 });
|
|
77
86
|
}
|
|
78
87
|
const mcpServer = await prisma.mcpServer.create({
|
|
79
|
-
data: Object.assign(Object.assign(Object.assign({ transportType }, (transportType === TransportType.SSE
|
|
88
|
+
data: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ transportType }, (transportType === TransportType.SSE
|
|
80
89
|
? {
|
|
81
90
|
sseTransport: {
|
|
82
91
|
create: {
|
|
@@ -94,6 +103,8 @@ export const buildPOST = ({ prisma }) => async (request, props) => {
|
|
|
94
103
|
},
|
|
95
104
|
},
|
|
96
105
|
}
|
|
106
|
+
: {})), (normalizedName !== undefined ? { name: normalizedName } : {})), (normalizedDescription !== undefined
|
|
107
|
+
? { description: normalizedDescription }
|
|
97
108
|
: {})), { assistant: {
|
|
98
109
|
connect: {
|
|
99
110
|
id: assistantId,
|
|
@@ -7,6 +7,8 @@ export declare const GET: (_request: import("next/server").NextRequest, props: {
|
|
|
7
7
|
}> | import("next/server").NextResponse<{
|
|
8
8
|
mcpServers: {
|
|
9
9
|
id: string;
|
|
10
|
+
name: string | null;
|
|
11
|
+
description: string | null;
|
|
10
12
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
11
13
|
sseTransport: {
|
|
12
14
|
id: string;
|
|
@@ -35,6 +37,8 @@ export declare const POST: (request: import("next/server").NextRequest, props: {
|
|
|
35
37
|
}> | import("next/server").NextResponse<{
|
|
36
38
|
mcpServer: {
|
|
37
39
|
id: string;
|
|
40
|
+
name: string | null;
|
|
41
|
+
description: string | null;
|
|
38
42
|
transportType: import("@prisma/client").$Enums.TransportType;
|
|
39
43
|
sseTransport: {
|
|
40
44
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/assistants/[assistantId]/mcp-servers/route.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/assistants/[assistantId]/mcp-servers/route.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuB,CAAA;AAEvC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwB,CAAA;AAEzC,eAAO,MAAM,OAAO,8CAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/functions/handleFunction/handleRequest.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EACL,cAAc,EACd,SAAS,EACT,MAAM,EAIN,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"handleRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/functions/handleFunction/handleRequest.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EACL,cAAc,EACd,SAAS,EACT,MAAM,EAIN,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AA4GvB,eAAO,MAAM,aAAa,GAAU,0DAMjC;IACD,cAAc,EAAE,cAAc,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAA;IACjE,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAA;CACrB;;;EAkKA,CAAA"}
|
|
@@ -8,15 +8,28 @@ const url = ({ requestHandler, args, thread, assistant, }) => {
|
|
|
8
8
|
thread,
|
|
9
9
|
assistant,
|
|
10
10
|
});
|
|
11
|
-
if (requestHandler.method
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
if (requestHandler.method !== 'GET') {
|
|
12
|
+
return { url: value, missing };
|
|
13
|
+
}
|
|
14
|
+
if (!args || !Object.keys(args).length) {
|
|
15
|
+
return { url: value, missing };
|
|
16
|
+
}
|
|
17
|
+
const [path, existingQuery = ''] = String(value).split('?');
|
|
18
|
+
const params = new URLSearchParams(existingQuery);
|
|
19
|
+
for (const [k, v] of Object.entries(args)) {
|
|
20
|
+
if (Array.isArray(v)) {
|
|
21
|
+
// Replace existing key with multiple values
|
|
22
|
+
params.delete(k);
|
|
23
|
+
for (const item of v) {
|
|
24
|
+
params.append(k, String(item));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
params.set(k, String(v));
|
|
29
|
+
}
|
|
18
30
|
}
|
|
19
|
-
|
|
31
|
+
const qs = params.toString();
|
|
32
|
+
return { url: qs ? `${path}?${qs}` : path, missing };
|
|
20
33
|
};
|
|
21
34
|
const body = ({ requestHandler, args, thread, assistant, }) => {
|
|
22
35
|
if (requestHandler.method === 'GET') {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const baseSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3
5
|
transportType: z.ZodEffects<z.ZodNativeEnum<{
|
|
4
6
|
STDIO: "STDIO";
|
|
5
7
|
SSE: "SSE";
|
|
@@ -27,6 +29,7 @@ export declare const baseSchema: z.ZodObject<{
|
|
|
27
29
|
}>>>;
|
|
28
30
|
}, "strip", z.ZodTypeAny, {
|
|
29
31
|
transportType: "SSE" | "HTTP";
|
|
32
|
+
name?: string | null | undefined;
|
|
30
33
|
httpTransport?: {
|
|
31
34
|
headers: string;
|
|
32
35
|
url: string;
|
|
@@ -35,8 +38,10 @@ export declare const baseSchema: z.ZodObject<{
|
|
|
35
38
|
headers: string;
|
|
36
39
|
url: string;
|
|
37
40
|
} | null | undefined;
|
|
41
|
+
description?: string | null | undefined;
|
|
38
42
|
}, {
|
|
39
43
|
transportType: "STDIO" | "SSE" | "HTTP";
|
|
44
|
+
name?: string | null | undefined;
|
|
40
45
|
httpTransport?: {
|
|
41
46
|
headers: string;
|
|
42
47
|
url: string;
|
|
@@ -45,9 +50,12 @@ export declare const baseSchema: z.ZodObject<{
|
|
|
45
50
|
headers: string;
|
|
46
51
|
url: string;
|
|
47
52
|
} | null | undefined;
|
|
53
|
+
description?: string | null | undefined;
|
|
48
54
|
}>;
|
|
49
55
|
export declare const superRefine: (values: any, ctx: any) => void;
|
|
50
56
|
export declare const mcpServerSchema: z.ZodEffects<z.ZodObject<{
|
|
57
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
58
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
59
|
transportType: z.ZodEffects<z.ZodNativeEnum<{
|
|
52
60
|
STDIO: "STDIO";
|
|
53
61
|
SSE: "SSE";
|
|
@@ -75,6 +83,7 @@ export declare const mcpServerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
75
83
|
}>>>;
|
|
76
84
|
}, "strip", z.ZodTypeAny, {
|
|
77
85
|
transportType: "SSE" | "HTTP";
|
|
86
|
+
name?: string | null | undefined;
|
|
78
87
|
httpTransport?: {
|
|
79
88
|
headers: string;
|
|
80
89
|
url: string;
|
|
@@ -83,8 +92,10 @@ export declare const mcpServerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
83
92
|
headers: string;
|
|
84
93
|
url: string;
|
|
85
94
|
} | null | undefined;
|
|
95
|
+
description?: string | null | undefined;
|
|
86
96
|
}, {
|
|
87
97
|
transportType: "STDIO" | "SSE" | "HTTP";
|
|
98
|
+
name?: string | null | undefined;
|
|
88
99
|
httpTransport?: {
|
|
89
100
|
headers: string;
|
|
90
101
|
url: string;
|
|
@@ -93,8 +104,10 @@ export declare const mcpServerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
93
104
|
headers: string;
|
|
94
105
|
url: string;
|
|
95
106
|
} | null | undefined;
|
|
107
|
+
description?: string | null | undefined;
|
|
96
108
|
}>, {
|
|
97
109
|
transportType: "SSE" | "HTTP";
|
|
110
|
+
name?: string | null | undefined;
|
|
98
111
|
httpTransport?: {
|
|
99
112
|
headers: string;
|
|
100
113
|
url: string;
|
|
@@ -103,8 +116,10 @@ export declare const mcpServerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
103
116
|
headers: string;
|
|
104
117
|
url: string;
|
|
105
118
|
} | null | undefined;
|
|
119
|
+
description?: string | null | undefined;
|
|
106
120
|
}, {
|
|
107
121
|
transportType: "STDIO" | "SSE" | "HTTP";
|
|
122
|
+
name?: string | null | undefined;
|
|
108
123
|
httpTransport?: {
|
|
109
124
|
headers: string;
|
|
110
125
|
url: string;
|
|
@@ -113,5 +128,6 @@ export declare const mcpServerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
113
128
|
headers: string;
|
|
114
129
|
url: string;
|
|
115
130
|
} | null | undefined;
|
|
131
|
+
description?: string | null | undefined;
|
|
116
132
|
}>;
|
|
117
133
|
//# sourceMappingURL=mcpServerSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpServerSchema.d.ts","sourceRoot":"","sources":["../../../src/lib/mcpServers/mcpServerSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"mcpServerSchema.d.ts","sourceRoot":"","sources":["../../../src/lib/mcpServers/mcpServerSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyBvB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAA;AAGF,eAAO,MAAM,WAAW,GAAI,QAAQ,GAAG,EAAE,KAAK,GAAG,SAwChD,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAA"}
|
|
@@ -17,7 +17,10 @@ const httpTransportSchema = z.object({
|
|
|
17
17
|
message: 'Must be a valid JSON string.',
|
|
18
18
|
}),
|
|
19
19
|
});
|
|
20
|
+
const optionalTrimmedString = z.string().trim().min(1).optional().nullable();
|
|
20
21
|
export const baseSchema = z.object({
|
|
22
|
+
name: optionalTrimmedString,
|
|
23
|
+
description: optionalTrimmedString,
|
|
21
24
|
transportType: z
|
|
22
25
|
.nativeEnum(TransportType)
|
|
23
26
|
.refine((t) => t !== TransportType.STDIO, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializeApiMcpServer.d.ts","sourceRoot":"","sources":["../../../src/lib/mcpServers/serializeApiMcpServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAA+B,MAAM,gBAAgB,CAAA;AA0BzE,eAAO,MAAM,qBAAqB,GAAI,gBAEnC;IACD,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;QACpC,OAAO,EAAE;YACP,YAAY,EAAE,IAAI,CAAA;YAClB,aAAa,EAAE,IAAI,CAAA;SACpB,CAAA;KACF,CAAC,CAAA;CACH
|
|
1
|
+
{"version":3,"file":"serializeApiMcpServer.d.ts","sourceRoot":"","sources":["../../../src/lib/mcpServers/serializeApiMcpServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAA+B,MAAM,gBAAgB,CAAA;AA0BzE,eAAO,MAAM,qBAAqB,GAAI,gBAEnC;IACD,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;QACpC,OAAO,EAAE;YACP,YAAY,EAAE,IAAI,CAAA;YAClB,aAAa,EAAE,IAAI,CAAA;SACpB,CAAA;KACF,CAAC,CAAA;CACH;;;;;;;;;;;;;;;;;;;;;CAiBC,CAAA"}
|
|
@@ -14,6 +14,8 @@ const serializeApiHttpTransport = ({ httpTransport, }) => ({
|
|
|
14
14
|
});
|
|
15
15
|
export const serializeApiMcpServer = ({ mcpServer, }) => ({
|
|
16
16
|
id: mcpServer.id,
|
|
17
|
+
name: mcpServer.name,
|
|
18
|
+
description: mcpServer.description,
|
|
17
19
|
transportType: mcpServer.transportType,
|
|
18
20
|
sseTransport: mcpServer.sseTransport
|
|
19
21
|
? serializeApiSseTransport({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/tools/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAOlE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/tools/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAOlE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AA8RhC,eAAO,MAAM,KAAK,GAAU,gCAIzB;IACD,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;QACpC,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP,cAAc,EAAE,IAAI,CAAA;oBACpB,aAAa,EAAE,IAAI,CAAA;oBACnB,mBAAmB,EAAE,IAAI,CAAA;oBACzB,mBAAmB,EAAE,IAAI,CAAA;oBACzB,eAAe,EAAE,IAAI,CAAA;iBACtB,CAAA;aACF,CAAA;YACD,SAAS,EAAE,IAAI,CAAA;YACf,aAAa,EAAE,IAAI,CAAA;YACnB,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,eAAe,EAAE,IAAI,CAAA;oBACrB,cAAc,EAAE,IAAI,CAAA;oBACpB,aAAa,EAAE,IAAI,CAAA;oBACnB,YAAY,EAAE,IAAI,CAAA;iBACnB,CAAA;aACF,CAAA;SACF,CAAA;KACF,CAAC,CAAA;IACF,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAA;CACrB;;;WAkBQ,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;EAE9C,CAAA"}
|
|
@@ -131,15 +131,16 @@ const mcpServerTools = async ({ assistant, thread, prisma, }) => {
|
|
|
131
131
|
}) &&
|
|
132
132
|
!assistant.modelSlug.match('computer-use')) {
|
|
133
133
|
const httpMcpServers = nonComputerUseMcpServers.filter((mcpServer) => mcpServer.transportType === TransportType.HTTP);
|
|
134
|
-
const nativeMcpServerTools = httpMcpServers.map((mcpServer) =>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
134
|
+
const nativeMcpServerTools = httpMcpServers.map((mcpServer) => {
|
|
135
|
+
var _a;
|
|
136
|
+
const serverLabel = (_a = mcpServer.name) !== null && _a !== void 0 ? _a : `mcp-server-${mcpServer.id}`;
|
|
137
|
+
return {
|
|
138
|
+
type: 'mcp',
|
|
139
|
+
mcp: Object.assign(Object.assign({ server_label: serverLabel }, (mcpServer.description
|
|
140
|
+
? { server_description: mcpServer.description }
|
|
141
|
+
: {})), { server_url: url({ thread, mcpServer, assistant, prisma }), headers: headers({ thread, mcpServer, assistant, prisma }), require_approval: 'never' }),
|
|
142
|
+
};
|
|
143
|
+
});
|
|
143
144
|
const sseMcpServers = nonComputerUseMcpServers.filter((mcpServer) => mcpServer.transportType === TransportType.SSE);
|
|
144
145
|
return [
|
|
145
146
|
...nativeMcpServerTools,
|
package/package.json
CHANGED
package/prisma/McpServer.prisma
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
model McpServer {
|
|
2
2
|
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
|
3
3
|
transportType TransportType @default(STDIO)
|
|
4
|
+
name String?
|
|
5
|
+
description String?
|
|
4
6
|
assistantId String @db.Uuid
|
|
5
7
|
assistant Assistant @relation(fields: [assistantId], references: [id], onDelete: Cascade)
|
|
6
8
|
computerUseTool ComputerUseTool?
|
|
File without changes
|
/package/.next/static/{TU89T_3Duqf8mLJKcxOWt → wuIqo1AC4IH0KlhrbfHcA}/_clientMiddlewareManifest.json
RENAMED
|
File without changes
|
|
File without changes
|