krs-poland-mcp-server 1.0.6 → 1.0.7

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/build/index.mjs +9 -9
  2. package/package.json +1 -1
package/build/index.mjs CHANGED
@@ -14047,18 +14047,18 @@ var StdioServerTransport = class {
14047
14047
 
14048
14048
  // src/index.ts
14049
14049
  async function main() {
14050
- const transport = new StdioServerTransport();
14051
- await server.connect(transport);
14052
- console.error("KRS MCP Server running on stdio");
14053
- await new Promise(() => {
14054
- });
14055
- }
14056
- if (process.argv[1] === (import.meta && import.meta.url && new URL(import.meta.url).pathname)) {
14057
- main().catch((error) => {
14050
+ try {
14051
+ const transport = new StdioServerTransport();
14052
+ await server.connect(transport);
14053
+ console.error("KRS MCP Server running on stdio");
14054
+ await new Promise(() => {
14055
+ });
14056
+ } catch (error) {
14058
14057
  console.error("Fatal error in main():", error);
14059
14058
  process.exit(1);
14060
- });
14059
+ }
14061
14060
  }
14061
+ main();
14062
14062
  /*! Bundled license information:
14063
14063
 
14064
14064
  uri-js/dist/es5/uri.all.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "krs-poland-mcp-server",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "The MCP server for KRS Poland public API.",
5
5
  "main": "./build/index.mjs",
6
6
  "scripts": {