@forklaunch/core 0.15.11 → 0.16.0
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/lib/apiDefinition.types-BYizofKE.d.mts +1064 -0
- package/lib/apiDefinition.types-BYizofKE.d.ts +1064 -0
- package/lib/http/index.d.mts +14 -1055
- package/lib/http/index.d.ts +14 -1055
- package/lib/http/index.js +3 -2
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +3 -2
- package/lib/http/index.mjs.map +1 -1
- package/lib/ws/index.d.mts +65 -0
- package/lib/ws/index.d.ts +65 -0
- package/lib/ws/index.js +254 -0
- package/lib/ws/index.js.map +1 -0
- package/lib/ws/index.mjs +223 -0
- package/lib/ws/index.mjs.map +1 -0
- package/package.json +11 -4
package/lib/http/index.mjs
CHANGED
|
@@ -3088,7 +3088,7 @@ function generateInputSchema(schemaValidator, body, params, query, requestHeader
|
|
|
3088
3088
|
} : {}
|
|
3089
3089
|
});
|
|
3090
3090
|
}
|
|
3091
|
-
function generateMcpServer(schemaValidator, protocol, host, port, version, application, appOptions, options2, contentTypeMap) {
|
|
3091
|
+
function generateMcpServer(schemaValidator, protocol, host, port, version, application, appOptions, options2, contentTypeMap, authenticate) {
|
|
3092
3092
|
if (!(schemaValidator instanceof ZodSchemaValidator)) {
|
|
3093
3093
|
throw new Error(
|
|
3094
3094
|
"Schema validator must be an instance of ZodSchemaValidator"
|
|
@@ -3097,7 +3097,8 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
|
|
|
3097
3097
|
const mcpServer = new FastMCP({
|
|
3098
3098
|
...options2,
|
|
3099
3099
|
name: options2?.name ?? "mcp-server",
|
|
3100
|
-
version
|
|
3100
|
+
version,
|
|
3101
|
+
authenticate
|
|
3101
3102
|
});
|
|
3102
3103
|
[
|
|
3103
3104
|
{
|