@hasna/connectors 1.1.7 → 1.1.8
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/index.js +1 -1
- package/bin/mcp.js +10 -12
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -12381,7 +12381,7 @@ var PRESETS = {
|
|
|
12381
12381
|
commerce: { description: "Commerce and finance", connectors: ["stripe", "shopify", "revolut", "mercury", "pandadoc"] }
|
|
12382
12382
|
};
|
|
12383
12383
|
var program2 = new Command;
|
|
12384
|
-
program2.name("connectors").description("Install API connectors for your project").version("1.1.
|
|
12384
|
+
program2.name("connectors").description("Install API connectors for your project").version("1.1.8").enablePositionalOptions();
|
|
12385
12385
|
program2.command("interactive", { isDefault: true }).alias("i").description("Interactive connector browser").action(() => {
|
|
12386
12386
|
if (!isTTY) {
|
|
12387
12387
|
console.log(`Non-interactive environment detected. Use a subcommand:
|
package/bin/mcp.js
CHANGED
|
@@ -25849,7 +25849,7 @@ async function getConnectorCommandHelp(name, command) {
|
|
|
25849
25849
|
loadConnectorVersions();
|
|
25850
25850
|
var server = new McpServer({
|
|
25851
25851
|
name: "connectors",
|
|
25852
|
-
version: "1.1.
|
|
25852
|
+
version: "1.1.8"
|
|
25853
25853
|
});
|
|
25854
25854
|
server.registerTool("search_connectors", {
|
|
25855
25855
|
title: "Search Connectors",
|
|
@@ -26154,20 +26154,18 @@ server.registerTool("run_connector_operation", {
|
|
|
26154
26154
|
description: "Execute an API operation on a connector. Pass the connector name and CLI arguments. Use list_connector_operations first to discover available commands. Example: name='stripe', args=['products', 'list', '--limit', '5']",
|
|
26155
26155
|
inputSchema: {
|
|
26156
26156
|
name: exports_external.string().describe("Connector name (e.g. stripe, gmail, anthropic)"),
|
|
26157
|
-
args: exports_external.
|
|
26158
|
-
if (typeof val === "string") {
|
|
26159
|
-
try {
|
|
26160
|
-
return JSON.parse(val);
|
|
26161
|
-
} catch {
|
|
26162
|
-
return [val];
|
|
26163
|
-
}
|
|
26164
|
-
}
|
|
26165
|
-
return val;
|
|
26166
|
-
}, exports_external.array(exports_external.string())).describe("CLI arguments for the connector command (e.g. ['products', 'list', '--limit', '5'])"),
|
|
26157
|
+
args: exports_external.union([exports_external.array(exports_external.string()), exports_external.string()]).describe("CLI arguments for the connector command (e.g. ['products', 'list', '--limit', '5'])"),
|
|
26167
26158
|
format: exports_external.enum(["json", "pretty"]).optional().describe("Output format (default: json for structured parsing)"),
|
|
26168
26159
|
timeout: exports_external.number().optional().describe("Timeout in milliseconds (default: 30000)")
|
|
26169
26160
|
}
|
|
26170
|
-
}, async ({ name, args, format, timeout }) => {
|
|
26161
|
+
}, async ({ name, args: rawArgs, format, timeout }) => {
|
|
26162
|
+
const args = typeof rawArgs === "string" ? (() => {
|
|
26163
|
+
try {
|
|
26164
|
+
return JSON.parse(rawArgs);
|
|
26165
|
+
} catch {
|
|
26166
|
+
return [rawArgs];
|
|
26167
|
+
}
|
|
26168
|
+
})() : rawArgs;
|
|
26171
26169
|
const meta = getConnector(name);
|
|
26172
26170
|
if (!meta) {
|
|
26173
26171
|
return {
|