taru-mcp 0.1.6 → 0.1.8
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/README.md +6 -6
- package/bin/taru-mcp.mjs +5 -4
- package/package.json +1 -1
- package/setup.sh +4 -2
package/README.md
CHANGED
|
@@ -53,10 +53,10 @@ cp node_modules/taru-mcp/samples/AGENTS.md ./AGENTS.md
|
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
55
|
# Claude Code
|
|
56
|
-
claude mcp add taru --
|
|
56
|
+
claude mcp add taru -- ./node_modules/.bin/taru-mcp --token xxv_your_token
|
|
57
57
|
|
|
58
58
|
# Codex
|
|
59
|
-
codex mcp add taru --
|
|
59
|
+
codex mcp add taru -- ./node_modules/.bin/taru-mcp --token xxv_your_token
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
### 4. Or configure MCP manually
|
|
@@ -67,8 +67,8 @@ If `claude mcp add` doesn't work, create `.mcp.json` in your project root:
|
|
|
67
67
|
{
|
|
68
68
|
"mcpServers": {
|
|
69
69
|
"taru": {
|
|
70
|
-
"command": "
|
|
71
|
-
"args": ["
|
|
70
|
+
"command": "./node_modules/.bin/taru-mcp",
|
|
71
|
+
"args": ["--token", "xxv_your_token"]
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -80,8 +80,8 @@ For Claude Code global config (`~/.claude.json`):
|
|
|
80
80
|
{
|
|
81
81
|
"mcpServers": {
|
|
82
82
|
"taru": {
|
|
83
|
-
"command": "
|
|
84
|
-
"args": ["
|
|
83
|
+
"command": "./node_modules/.bin/taru-mcp",
|
|
84
|
+
"args": ["--token", "xxv_your_token"]
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
package/bin/taru-mcp.mjs
CHANGED
|
@@ -27,12 +27,12 @@ Usage:
|
|
|
27
27
|
|
|
28
28
|
Options:
|
|
29
29
|
--workspace-id, -w Workspace UUID (env: TARU_WORKSPACE_ID)
|
|
30
|
-
--token, -t
|
|
30
|
+
--token, -t Workspace token (env: TARU_API_TOKEN)
|
|
31
31
|
--help, -h Show this help
|
|
32
32
|
|
|
33
33
|
Examples:
|
|
34
|
-
claude mcp add taru -- npx -y taru-mcp --token
|
|
35
|
-
codex mcp add taru -- npx -y taru-mcp --token
|
|
34
|
+
claude mcp add taru -- npx -y taru-mcp --token tru_...
|
|
35
|
+
codex mcp add taru -- npx -y taru-mcp --token tru_...
|
|
36
36
|
`);
|
|
37
37
|
process.exit(0);
|
|
38
38
|
}
|
|
@@ -44,7 +44,8 @@ const hasExplicitWorkspace = args.some(a => a === "--workspace-id" || a === "-w"
|
|
|
44
44
|
const endpoint = hasExplicitWorkspace ? `${url}/mcp/${workspaceId}` : `${url}/mcp`;
|
|
45
45
|
const isHttps = endpoint.startsWith("https://");
|
|
46
46
|
|
|
47
|
-
stderr
|
|
47
|
+
// Only log to stderr when debug is enabled (Codex kills transport on stderr output)
|
|
48
|
+
if (env.TARU_DEBUG) stderr.write(`[taru-mcp] endpoint: ${endpoint}\n`);
|
|
48
49
|
|
|
49
50
|
// --- JSON-RPC proxy: stdin → HTTP POST → stdout ---
|
|
50
51
|
|
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -90,12 +90,14 @@ register_mcp() {
|
|
|
90
90
|
token_args=" --token $TOKEN"
|
|
91
91
|
fi
|
|
92
92
|
|
|
93
|
+
local mcp_bin="$(pwd)/node_modules/.bin/taru-mcp"
|
|
94
|
+
|
|
93
95
|
if command -v "$cli" &>/dev/null; then
|
|
94
96
|
echo "==> Registering MCP server with $cli..."
|
|
95
|
-
$cli mcp add taru --
|
|
97
|
+
$cli mcp add taru -- "$mcp_bin" --url "$URL"$token_args
|
|
96
98
|
else
|
|
97
99
|
echo "==> '$cli' not found, skipping MCP registration."
|
|
98
|
-
echo " Run this later: $cli mcp add taru --
|
|
100
|
+
echo " Run this later: $cli mcp add taru -- $mcp_bin --url $URL$token_args"
|
|
99
101
|
fi
|
|
100
102
|
}
|
|
101
103
|
|