apiblaze 0.3.6 → 0.3.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 (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ var import_commander = require("commander");
28
28
  var import_chalk15 = __toESM(require("chalk"));
29
29
 
30
30
  // package.json
31
- var version = "0.3.6";
31
+ var version = "0.3.8";
32
32
 
33
33
  // src/types.ts
34
34
  var ApiError = class extends Error {
@@ -1792,6 +1792,7 @@ async function runMcp(projectArg, apiVersionArg, opts) {
1792
1792
  const projectId = match.projectId;
1793
1793
  const apiVersion = apiVersionArg || match.apiVersion;
1794
1794
  const environment = opts.environment || "prod";
1795
+ const mcpHost = match.tenant ? `${projectId}-${match.tenant}` : projectId;
1795
1796
  async function publish(ctx) {
1796
1797
  const spec = ctx.proposal;
1797
1798
  const pub = await agentCall(`/projects/${projectId}/${apiVersion}/mcp/spec`, "PUT", { environment, spec });
@@ -1800,7 +1801,7 @@ async function runMcp(projectArg, apiVersionArg, opts) {
1800
1801
  `));
1801
1802
  return;
1802
1803
  }
1803
- ctx.log(import_chalk14.default.green(` \u2713 Published MCP server \u2014 ${projectId}.mcp.apiblaze.com/${apiVersion}/${environment}.
1804
+ ctx.log(import_chalk14.default.green(` \u2713 Published MCP server \u2014 ${mcpHost}.mcp.apiblaze.com/${apiVersion}/${environment}.
1804
1805
  `));
1805
1806
  }
1806
1807
  await runAgentChatRepl({
@@ -1816,7 +1817,7 @@ async function runMcp(projectArg, apiVersionArg, opts) {
1816
1817
  return `Catalogue ready: ${tools.length} tool(s)${names ? ` \u2014 ${names}${tools.length > 12 ? ", \u2026" : ""}` : ""}.`;
1817
1818
  },
1818
1819
  commands: [
1819
- { name: "publish", describe: `to ${projectId}.mcp.apiblaze.com`, needsProposal: true, run: publish }
1820
+ { name: "publish", describe: `to ${mcpHost}.mcp.apiblaze.com`, needsProposal: true, run: publish }
1820
1821
  ]
1821
1822
  });
1822
1823
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apiblaze",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Dev tunnel CLI for APIblaze — route localhost projects through your APIblaze endpoints",
5
5
  "keywords": [
6
6
  "apiblaze",