@lightupai/polaris 0.0.17 → 0.0.19
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/bin/polaris-mcp +12 -0
- package/package.json +3 -2
- package/src/cli/cli.ts +4 -2
package/bin/polaris-mcp
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Polaris MCP server — runs as a child process of Claude Code
|
|
3
|
+
SCRIPT="$(realpath "$0" 2>/dev/null || readlink -f "$0" 2>/dev/null || echo "$0")"
|
|
4
|
+
DIR="$(cd "$(dirname "$SCRIPT")/.." && pwd)"
|
|
5
|
+
|
|
6
|
+
if command -v bun &>/dev/null; then
|
|
7
|
+
exec bun "$DIR/src/client/client.ts" "$@"
|
|
8
|
+
elif command -v bunx &>/dev/null; then
|
|
9
|
+
exec bunx bun "$DIR/src/client/client.ts" "$@"
|
|
10
|
+
else
|
|
11
|
+
exec npx --yes bun "$DIR/src/client/client.ts" "$@"
|
|
12
|
+
fi
|
package/package.json
CHANGED
package/src/cli/cli.ts
CHANGED
|
@@ -110,12 +110,14 @@ async function install(participantId?: string) {
|
|
|
110
110
|
await mkdir(CLAUDE_DIR, { recursive: true });
|
|
111
111
|
|
|
112
112
|
// MCP server config
|
|
113
|
-
|
|
113
|
+
// Use npx to run polaris-mcp from the published package. This avoids
|
|
114
|
+
// dangling file paths when installed via npx (temp directory gets cleaned up).
|
|
115
|
+
// The polaris-mcp bin entry resolves to src/client/client.ts within the package.
|
|
114
116
|
const mcpConfig = {
|
|
115
117
|
mcpServers: {
|
|
116
118
|
polaris: {
|
|
117
119
|
command: "npx",
|
|
118
|
-
args: ["
|
|
120
|
+
args: ["-y", "polaris-mcp"],
|
|
119
121
|
env: {
|
|
120
122
|
POLARIS_DAEMON_URL: "http://127.0.0.1:4322",
|
|
121
123
|
},
|