@torqon/mcp 0.1.1 → 0.1.2

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/dist/index.js CHANGED
@@ -1,4 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ // If --client flag is passed, run installer instead of MCP server
3
+ if (process.argv.some(a => a.startsWith('--client'))) {
4
+ await import('./install.js');
5
+ process.exit(0);
6
+ }
2
7
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
8
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
9
  import { z } from 'zod';
package/dist/install.js CHANGED
@@ -68,4 +68,7 @@ function install(client, apiUrl) {
68
68
  const args = process.argv.slice(2);
69
69
  const clientArg = args.find(a => a.startsWith('--client='))?.split('=')[1] ?? 'claude';
70
70
  const apiArg = args.find(a => a.startsWith('--api-url='))?.split('=')[1] ?? TORQON_API_URL;
71
+ export default function run() {
72
+ install(clientArg, apiArg);
73
+ }
71
74
  install(clientArg, apiArg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torqon/mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {