+13
-5
@@ -5,4 +5,4 @@ #!/usr/bin/env node | ||
| import { createRequire } from "node:module"; | ||
| import { Command } from "commander"; | ||
| import { createProgram } from "@linkedctl/cli"; | ||
| import { Command, CommanderError } from "commander"; | ||
| import { createProgram, ExitCode } from "@linkedctl/cli"; | ||
| import { startStdioServer } from "@linkedctl/mcp/stdio"; | ||
@@ -22,6 +22,14 @@ const require = createRequire(import.meta.url); | ||
| catch (error) { | ||
| const message = error instanceof Error ? error.message : String(error); | ||
| console.error(`error: ${message}`); | ||
| process.exitCode = 1; | ||
| if (error instanceof CommanderError) { | ||
| if (error.exitCode !== 0) { | ||
| // Usage error — Commander already printed the message | ||
| process.exitCode = ExitCode.USAGE_ERROR; | ||
| } | ||
| } | ||
| else { | ||
| const message = error instanceof Error ? error.message : String(error); | ||
| console.error(`error: ${message}`); | ||
| process.exitCode = ExitCode.RUNTIME_ERROR; | ||
| } | ||
| } | ||
| //# sourceMappingURL=cli.js.map |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAwB,CAAC;AAEtE,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;AAEvC,MAAM,UAAU,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC;AACtC,UAAU,CAAC,WAAW,CAAC,yCAAyC,CAAC,CAA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AAE,CAAC;AAC3B,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAE/B,IAAI,CAAC;IACH,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,IAAI,KAAK,YAAY,cAAc,EAAE,CAAC;QACpC,IAAI,KAAK,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;YACzB,sDAAsD;YACtD,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC1C,CAAC;IACH,CAAC;SAAM,CAAC;QACN,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,CAAC,KAAK,CAAC,UAAU,OAAO,EAAE,CAAC,CAAC;QACnC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC;IAC5C,CAAC;AACH,CAAC"} |
+3
-3
| { | ||
| "name": "linkedctl", | ||
| "version": "0.1.0", | ||
| "version": "0.2.0", | ||
| "description": "The complete CLI & MCP for LinkedIn", | ||
@@ -41,4 +41,4 @@ "type": "module", | ||
| "commander": "^14.0.3", | ||
| "@linkedctl/cli": "^0.1.0", | ||
| "@linkedctl/mcp": "^0.1.0" | ||
| "@linkedctl/cli": "^0.2.0", | ||
| "@linkedctl/mcp": "^0.2.0" | ||
| }, | ||
@@ -45,0 +45,0 @@ "devDependencies": { |
+49
-3
@@ -0,1 +1,3 @@ | ||
|  | ||
| # LinkedCtl | ||
@@ -50,4 +52,25 @@ | ||
| ### Claude Code | ||
| ### MCP Client Configuration | ||
| <details> | ||
| <summary><b>Claude Desktop</b></summary> | ||
| Add to your Claude Desktop configuration (`claude_desktop_config.json`): | ||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "linkedctl": { | ||
| "command": "npx", | ||
| "args": ["linkedctl", "mcp"] | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| </details> | ||
| <details> | ||
| <summary><b>Claude Code</b></summary> | ||
| ```sh | ||
@@ -57,6 +80,9 @@ claude mcp add linkedctl -- npx linkedctl mcp | ||
| ### Claude Desktop | ||
| </details> | ||
| Add to `claude_desktop_config.json`: | ||
| <details> | ||
| <summary><b>Cursor</b></summary> | ||
| Add to `.cursor/mcp.json` in your project root: | ||
| ```json | ||
@@ -73,2 +99,22 @@ { | ||
| </details> | ||
| <details> | ||
| <summary><b>Windsurf</b></summary> | ||
| Add to `~/.codeium/windsurf/mcp_config.json`: | ||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "linkedctl": { | ||
| "command": "npx", | ||
| "args": ["linkedctl", "mcp"] | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| </details> | ||
| ### Available Tools | ||
@@ -75,0 +121,0 @@ |
50180
2.67%34
30.77%353
14.98%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated