@hasna/microservices 0.0.28 → 0.0.30

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/bin/mcp.js +7 -2
  2. package/package.json +1 -1
package/bin/mcp.js CHANGED
@@ -21304,7 +21304,7 @@ Microservices MCP server (stdio transport by default)
21304
21304
 
21305
21305
  Options:
21306
21306
  --http Serve MCP over Streamable HTTP (127.0.0.1)
21307
- --port <number> HTTP port (default: 8825, env: MCP_HTTP_PORT)
21307
+ --port <number> HTTP port (default: ${DEFAULT_MCP_HTTP_PORT}, env: MCP_HTTP_PORT)
21308
21308
  -h, --help Show help
21309
21309
  -V, --version Show version
21310
21310
  `);
@@ -21735,7 +21735,12 @@ async function main() {
21735
21735
  handle.close().finally(() => process.exit(0));
21736
21736
  });
21737
21737
  }
21738
- main().catch(console.error);
21738
+ if (import.meta.main) {
21739
+ main().catch((error2) => {
21740
+ console.error(error2);
21741
+ process.exitCode = 1;
21742
+ });
21743
+ }
21739
21744
  export {
21740
21745
  buildServer
21741
21746
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/microservices",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "21 production-grade microservice building blocks for AI-native SaaS — auth, billing, LLM gateway, agent registry, RAG, guardrails, tracing, and more. Each with PostgreSQL, HTTP API, MCP server, and CLI.",
5
5
  "type": "module",
6
6
  "bin": {