@hasna/connectors 0.2.7 → 0.2.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.
Files changed (3) hide show
  1. package/bin/index.js +3 -3
  2. package/bin/mcp.js +19 -19
  3. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -6583,7 +6583,7 @@ var PRESETS = {
6583
6583
  commerce: { description: "Commerce and finance", connectors: ["stripe", "shopify", "revolut", "mercury", "pandadoc"] }
6584
6584
  };
6585
6585
  var program2 = new Command;
6586
- program2.name("connectors").description("Install API connectors for your project").version("0.2.7");
6586
+ program2.name("connectors").description("Install API connectors for your project").version("0.2.8");
6587
6587
  program2.command("interactive", { isDefault: true }).alias("i").description("Interactive connector browser").action(() => {
6588
6588
  if (!isTTY) {
6589
6589
  console.log(`Non-interactive environment detected. Use a subcommand:
@@ -7746,7 +7746,7 @@ program2.command("import").argument("<file>", "JSON backup file to import (use -
7746
7746
  }
7747
7747
  });
7748
7748
  program2.command("upgrade").alias("self-update").option("--check", "Only check for updates, don't install", false).option("--json", "Output as JSON", false).description("Check for updates and upgrade to the latest version").action(async (options) => {
7749
- const currentVersion = "0.2.7";
7749
+ const currentVersion = "0.2.8";
7750
7750
  try {
7751
7751
  const res = await fetch("https://registry.npmjs.org/@hasna/connectors/latest");
7752
7752
  if (!res.ok)
@@ -7962,7 +7962,7 @@ Available presets:
7962
7962
  program2.command("whoami").option("--json", "Output as JSON", false).description("Show current setup: config dir, installed connectors, auth status").action((options) => {
7963
7963
  const configDir = join5(homedir3(), ".connectors");
7964
7964
  const installed = getInstalledConnectors();
7965
- const version = "0.2.7";
7965
+ const version = "0.2.8";
7966
7966
  let configured = 0;
7967
7967
  let unconfigured = 0;
7968
7968
  const connectorDetails = [];
package/bin/mcp.js CHANGED
@@ -20275,13 +20275,13 @@ function guessKeyField(name) {
20275
20275
  loadConnectorVersions();
20276
20276
  var server = new McpServer({
20277
20277
  name: "connectors",
20278
- version: "0.2.7"
20278
+ version: "0.2.8"
20279
20279
  });
20280
20280
  server.registerTool("search_connectors", {
20281
20281
  title: "Search Connectors",
20282
- description: "Search the connector library by name, description, or keyword. " + "Use this to discover available API connectors (e.g. 'payment', 'ai', 'email').",
20282
+ description: "Search connectors by name, keyword, or description.",
20283
20283
  inputSchema: {
20284
- query: exports_external.string().describe("Search query (name, keyword, or description)")
20284
+ query: exports_external.string().describe("Search query")
20285
20285
  }
20286
20286
  }, async ({ query }) => {
20287
20287
  const results = searchConnectors(query);
@@ -20302,9 +20302,9 @@ server.registerTool("search_connectors", {
20302
20302
  });
20303
20303
  server.registerTool("list_connectors", {
20304
20304
  title: "List Connectors",
20305
- description: "List all available connectors, optionally filtered by category. " + "Returns name, version, category, and description for each connector.",
20305
+ description: "List connectors, optionally filtered by category.",
20306
20306
  inputSchema: {
20307
- category: exports_external.string().optional().describe("Filter by category. Available: " + CATEGORIES.join(", "))
20307
+ category: exports_external.string().optional().describe("Filter by category (e.g. 'AI & ML', 'Developer Tools')")
20308
20308
  }
20309
20309
  }, async ({ category }) => {
20310
20310
  let connectors = CONNECTORS;
@@ -20340,9 +20340,9 @@ server.registerTool("list_connectors", {
20340
20340
  });
20341
20341
  server.registerTool("connector_docs", {
20342
20342
  title: "Connector Documentation",
20343
- description: "Get detailed documentation for a connector including auth method, " + "required environment variables, CLI commands, and API capabilities. " + "Use this BEFORE installing a connector to understand how to use it.",
20343
+ description: "Get auth, env vars, CLI commands, and API docs for a connector.",
20344
20344
  inputSchema: {
20345
- name: exports_external.string().describe("Connector name (e.g. 'stripe', 'anthropic', 'gmail')")
20345
+ name: exports_external.string().describe("Connector name")
20346
20346
  }
20347
20347
  }, async ({ name }) => {
20348
20348
  const meta = getConnector(name);
@@ -20381,10 +20381,10 @@ server.registerTool("connector_docs", {
20381
20381
  });
20382
20382
  server.registerTool("install_connector", {
20383
20383
  title: "Install Connector",
20384
- description: "Install one or more API connectors into the current project. " + "Connectors are copied to .connectors/ with an auto-generated index.ts for imports.",
20384
+ description: "Install connectors into .connectors/ with auto-generated index.ts.",
20385
20385
  inputSchema: {
20386
- names: exports_external.array(exports_external.string()).describe("Connector names to install (e.g. ['stripe', 'figma'])"),
20387
- overwrite: exports_external.boolean().optional().describe("Overwrite if already installed (default: false)")
20386
+ names: exports_external.array(exports_external.string()).describe("Connector names to install"),
20387
+ overwrite: exports_external.boolean().optional().describe("Overwrite if already installed")
20388
20388
  }
20389
20389
  }, async ({ names, overwrite }) => {
20390
20390
  const results = names.map((name) => installConnector(name, { overwrite: overwrite ?? false }));
@@ -20422,7 +20422,7 @@ server.registerTool("remove_connector", {
20422
20422
  });
20423
20423
  server.registerTool("list_installed", {
20424
20424
  title: "List Installed Connectors",
20425
- description: "List connectors currently installed in the project's .connectors/ directory.",
20425
+ description: "List connectors installed in .connectors/.",
20426
20426
  inputSchema: {}
20427
20427
  }, async () => {
20428
20428
  const installed = getInstalledConnectors();
@@ -20437,7 +20437,7 @@ server.registerTool("list_installed", {
20437
20437
  });
20438
20438
  server.registerTool("connector_info", {
20439
20439
  title: "Connector Info",
20440
- description: "Get metadata about a specific connector including version, category, " + "tags, and whether it's currently installed.",
20440
+ description: "Get connector metadata: version, category, tags, installed status.",
20441
20441
  inputSchema: {
20442
20442
  name: exports_external.string().describe("Connector name")
20443
20443
  }
@@ -20462,9 +20462,9 @@ server.registerTool("connector_info", {
20462
20462
  });
20463
20463
  server.registerTool("connector_auth_status", {
20464
20464
  title: "Connector Auth Status",
20465
- description: "Check the authentication status of an installed connector. " + "Returns auth type (oauth/apikey/bearer), whether it's configured, " + "token expiry for OAuth connectors, and environment variable status.",
20465
+ description: "Check auth status: type (oauth/apikey/bearer), configured, token expiry, env vars.",
20466
20466
  inputSchema: {
20467
- name: exports_external.string().describe("Connector name (e.g. 'gmail', 'stripe', 'anthropic')")
20467
+ name: exports_external.string().describe("Connector name")
20468
20468
  }
20469
20469
  }, async ({ name }) => {
20470
20470
  const meta = getConnector(name);
@@ -20490,11 +20490,11 @@ server.registerTool("connector_auth_status", {
20490
20490
  });
20491
20491
  server.registerTool("configure_auth", {
20492
20492
  title: "Configure Auth",
20493
- description: "Save an API key or bearer token for a connector. " + "Stores credentials in ~/.connectors/connect-{name}/profiles/. " + "Use connector_docs to find required env vars and field names first.",
20493
+ description: "Save an API key or bearer token for a connector.",
20494
20494
  inputSchema: {
20495
- name: exports_external.string().describe("Connector name (e.g. 'stripe', 'anthropic', 'openai')"),
20496
- key: exports_external.string().describe("The API key or bearer token value"),
20497
- field: exports_external.string().optional().describe("Key field name (defaults to the connector's primary key field, usually 'apiKey')")
20495
+ name: exports_external.string().describe("Connector name"),
20496
+ key: exports_external.string().describe("API key or bearer token"),
20497
+ field: exports_external.string().optional().describe("Field name (default: 'apiKey')")
20498
20498
  }
20499
20499
  }, async ({ name, key, field }) => {
20500
20500
  try {
@@ -20521,7 +20521,7 @@ server.registerTool("configure_auth", {
20521
20521
  });
20522
20522
  server.registerTool("list_categories", {
20523
20523
  title: "List Categories",
20524
- description: "List all connector categories with the number of connectors in each.",
20524
+ description: "List connector categories with counts.",
20525
20525
  inputSchema: {}
20526
20526
  }, async () => {
20527
20527
  const categoryCounts = CATEGORIES.map((category) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/connectors",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Open source connector library - Install API connectors with a single command",
5
5
  "type": "module",
6
6
  "bin": {