@zelklab/seevo-mcp-server 0.1.3 → 0.1.5

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 +22 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -177,8 +177,29 @@ Seevoダッシュボードで確認できます: http://localhost:3000/dashboard
177
177
  };
178
178
  }
179
179
  });
180
- // Start server
180
+ // Start server or run CLI
181
181
  async function main() {
182
+ const args = process.argv.slice(2);
183
+ // Debug: log args
184
+ console.error("DEBUG: process.argv =", process.argv);
185
+ console.error("DEBUG: args =", args);
186
+ // CLI mode: handle subcommands
187
+ if (args.length > 0 && args[0] === 'register') {
188
+ console.error("DEBUG: Running register subcommand");
189
+ // Dynamically import and run register command
190
+ // register.ts executes its top-level code when imported
191
+ await import('./register.js');
192
+ return;
193
+ }
194
+ if (args.length > 0 && args[0] === 'setup') {
195
+ console.error("DEBUG: Running setup subcommand");
196
+ // Dynamically import and run setup command
197
+ // setup.ts executes its top-level code when imported
198
+ await import('./setup.js');
199
+ return;
200
+ }
201
+ // MCP Server mode: start stdio server
202
+ console.error("DEBUG: Starting MCP server mode");
182
203
  const transport = new StdioServerTransport();
183
204
  await server.connect(transport);
184
205
  console.error("Seevo MCP Server running on stdio");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zelklab/seevo-mcp-server",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "MCP Server for Seevo - AI-powered project registration from Claude Code",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",