@flexprice/mcp-server 2.1.3 → 2.1.4
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/bin/mcp-server.js +19 -19
- package/bin/mcp-server.js.map +9 -9
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/cli/serve/command.js +1 -1
- package/esm/mcp-server/cli/serve/command.js.map +1 -1
- package/esm/mcp-server/cli/start/command.js +1 -1
- package/esm/mcp-server/cli/start/command.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools.js +9 -9
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
- package/esm/models/windowsize.d.ts +2 -2
- package/esm/models/windowsize.js +2 -2
- package/esm/models/windowsize.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/serve/command.ts +1 -1
- package/src/mcp-server/cli/start/command.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools.ts +10 -10
- package/src/models/windowsize.ts +2 -2
package/bin/mcp-server.js
CHANGED
|
@@ -50571,9 +50571,9 @@ var init_config = __esm(() => {
|
|
|
50571
50571
|
SDK_METADATA = {
|
|
50572
50572
|
language: "typescript",
|
|
50573
50573
|
openapiDocVersion: "1.0",
|
|
50574
|
-
sdkVersion: "2.1.
|
|
50575
|
-
genVersion: "2.
|
|
50576
|
-
userAgent: "speakeasy-sdk/mcp-typescript 2.1.
|
|
50574
|
+
sdkVersion: "2.1.4",
|
|
50575
|
+
genVersion: "2.881.0",
|
|
50576
|
+
userAgent: "speakeasy-sdk/mcp-typescript 2.1.4 2.881.0 1.0 @flexprice/mcp-server"
|
|
50577
50577
|
};
|
|
50578
50578
|
});
|
|
50579
50579
|
|
|
@@ -51641,12 +51641,12 @@ function registerDynamicTools(logger, server, getSDK, toolMap, allowedScopes) {
|
|
|
51641
51641
|
|
|
51642
51642
|
`) }] };
|
|
51643
51643
|
});
|
|
51644
|
-
logger.debug("Registered dynamic meta-tool", { name: "
|
|
51644
|
+
logger.debug("Registered dynamic meta-tool", { name: "describe_tool_input" });
|
|
51645
51645
|
server.registerTool("execute_tool", {
|
|
51646
|
-
description: "Execute a tool by name with
|
|
51646
|
+
description: "Execute a tool by name with its arguments. If executing a given tool for the first time, it is recommended to call describe_tool_input first to understand the expected `arguments` shape.",
|
|
51647
51647
|
inputSchema: {
|
|
51648
|
-
|
|
51649
|
-
|
|
51648
|
+
name: string2().describe("The name of the tool to execute"),
|
|
51649
|
+
arguments: looseObject({}).optional().describe("Arguments for the target tool as a JSON object, matching the schema returned by describe_tool_input.")
|
|
51650
51650
|
},
|
|
51651
51651
|
annotations: {
|
|
51652
51652
|
title: "Execute Tool",
|
|
@@ -51656,16 +51656,16 @@ function registerDynamicTools(logger, server, getSDK, toolMap, allowedScopes) {
|
|
|
51656
51656
|
openWorldHint: true
|
|
51657
51657
|
}
|
|
51658
51658
|
}, async (args, ctx) => {
|
|
51659
|
-
const def = toolMap.get(args.
|
|
51659
|
+
const def = toolMap.get(args.name);
|
|
51660
51660
|
if (!def) {
|
|
51661
51661
|
return {
|
|
51662
|
-
content: [{ type: "text", text: `Unknown tool: ${args.
|
|
51662
|
+
content: [{ type: "text", text: `Unknown tool: ${args.name}` }],
|
|
51663
51663
|
isError: true
|
|
51664
51664
|
};
|
|
51665
51665
|
}
|
|
51666
51666
|
let validatedInput = {};
|
|
51667
51667
|
if (def.args) {
|
|
51668
|
-
const vres = object(def.args).safeParse(args.
|
|
51668
|
+
const vres = object(def.args).safeParse(args.arguments ?? {});
|
|
51669
51669
|
if (vres.success) {
|
|
51670
51670
|
validatedInput = vres.data;
|
|
51671
51671
|
} else {
|
|
@@ -51673,7 +51673,7 @@ function registerDynamicTools(logger, server, getSDK, toolMap, allowedScopes) {
|
|
|
51673
51673
|
return {
|
|
51674
51674
|
content: [{
|
|
51675
51675
|
type: "text",
|
|
51676
|
-
text: `Invalid input for tool ${args.
|
|
51676
|
+
text: `Invalid input for tool ${args.name}:
|
|
51677
51677
|
<issues>
|
|
51678
51678
|
${issues}
|
|
51679
51679
|
</issues>`
|
|
@@ -51693,7 +51693,7 @@ ${issues}
|
|
|
51693
51693
|
return {
|
|
51694
51694
|
content: [{
|
|
51695
51695
|
type: "text",
|
|
51696
|
-
text: `Error executing tool ${args.
|
|
51696
|
+
text: `Error executing tool ${args.name}: ${message}`
|
|
51697
51697
|
}],
|
|
51698
51698
|
isError: true
|
|
51699
51699
|
};
|
|
@@ -52795,7 +52795,6 @@ var WindowSize$zodSchema;
|
|
|
52795
52795
|
var init_windowsize = __esm(() => {
|
|
52796
52796
|
init_zod();
|
|
52797
52797
|
WindowSize$zodSchema = _enum([
|
|
52798
|
-
"MONTH",
|
|
52799
52798
|
"MINUTE",
|
|
52800
52799
|
"15MIN",
|
|
52801
52800
|
"30MIN",
|
|
@@ -52804,7 +52803,8 @@ var init_windowsize = __esm(() => {
|
|
|
52804
52803
|
"6HOUR",
|
|
52805
52804
|
"12HOUR",
|
|
52806
52805
|
"DAY",
|
|
52807
|
-
"WEEK"
|
|
52806
|
+
"WEEK",
|
|
52807
|
+
"MONTH"
|
|
52808
52808
|
]);
|
|
52809
52809
|
});
|
|
52810
52810
|
|
|
@@ -65248,7 +65248,7 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
65248
65248
|
function createMCPServer(deps) {
|
|
65249
65249
|
const server = new McpServer({
|
|
65250
65250
|
name: "Flexprice",
|
|
65251
|
-
version: "2.1.
|
|
65251
|
+
version: "2.1.4"
|
|
65252
65252
|
});
|
|
65253
65253
|
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
65254
65254
|
security: deps.security,
|
|
@@ -69220,7 +69220,7 @@ var serveCommand = buildCommand({
|
|
|
69220
69220
|
},
|
|
69221
69221
|
mode: {
|
|
69222
69222
|
kind: "enum",
|
|
69223
|
-
brief: "Server mode (dynamic: expose list_tools,
|
|
69223
|
+
brief: "Server mode (dynamic: expose list_tools, describe_tool_input, and execute_tool instead of individual tools)",
|
|
69224
69224
|
values: ["dynamic"],
|
|
69225
69225
|
optional: true
|
|
69226
69226
|
},
|
|
@@ -69326,7 +69326,7 @@ var startCommand = buildCommand({
|
|
|
69326
69326
|
},
|
|
69327
69327
|
mode: {
|
|
69328
69328
|
kind: "enum",
|
|
69329
|
-
brief: "Server mode (dynamic: expose list_tools,
|
|
69329
|
+
brief: "Server mode (dynamic: expose list_tools, describe_tool_input, and execute_tool instead of individual tools)",
|
|
69330
69330
|
values: ["dynamic"],
|
|
69331
69331
|
optional: true
|
|
69332
69332
|
},
|
|
@@ -69411,7 +69411,7 @@ var routes = buildRouteMap({
|
|
|
69411
69411
|
var app = buildApplication(routes, {
|
|
69412
69412
|
name: "mcp",
|
|
69413
69413
|
versionInfo: {
|
|
69414
|
-
currentVersion: "2.1.
|
|
69414
|
+
currentVersion: "2.1.4"
|
|
69415
69415
|
}
|
|
69416
69416
|
});
|
|
69417
69417
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -69419,5 +69419,5 @@ export {
|
|
|
69419
69419
|
app
|
|
69420
69420
|
};
|
|
69421
69421
|
|
|
69422
|
-
//# debugId=
|
|
69422
|
+
//# debugId=58E7265053304EF164756E2164756E21
|
|
69423
69423
|
//# sourceMappingURL=mcp-server.js.map
|