@forklaunch/core 0.15.12 → 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 +9 -2
package/lib/http/index.js
CHANGED
|
@@ -3151,7 +3151,7 @@ function generateInputSchema(schemaValidator, body, params, query, requestHeader
|
|
|
3151
3151
|
} : {}
|
|
3152
3152
|
});
|
|
3153
3153
|
}
|
|
3154
|
-
function generateMcpServer(schemaValidator, protocol, host, port, version, application, appOptions, options2, contentTypeMap) {
|
|
3154
|
+
function generateMcpServer(schemaValidator, protocol, host, port, version, application, appOptions, options2, contentTypeMap, authenticate) {
|
|
3155
3155
|
if (!(schemaValidator instanceof import_zod.ZodSchemaValidator)) {
|
|
3156
3156
|
throw new Error(
|
|
3157
3157
|
"Schema validator must be an instance of ZodSchemaValidator"
|
|
@@ -3160,7 +3160,8 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
|
|
|
3160
3160
|
const mcpServer = new import_fastmcp_fork.FastMCP({
|
|
3161
3161
|
...options2,
|
|
3162
3162
|
name: options2?.name ?? "mcp-server",
|
|
3163
|
-
version
|
|
3163
|
+
version,
|
|
3164
|
+
authenticate
|
|
3164
3165
|
});
|
|
3165
3166
|
[
|
|
3166
3167
|
{
|