@ebowwa/run-path-mcp 1.0.0
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 +85 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +117 -0
- package/package.json +52 -0
- package/src/index.ts +495 -0
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# @ebowwa/run-path-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for PATH manipulation across all package managers.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add @ebowwa/run-path-mcp
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Add to Claude Code
|
|
14
|
+
|
|
15
|
+
Add to your `~/.claude.json` or `.claude/config.json`:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"mcpServers": {
|
|
20
|
+
"run-path": {
|
|
21
|
+
"command": "bun",
|
|
22
|
+
"args": ["/path/to/run-path-mcp/dist/index.js"]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Tools
|
|
29
|
+
|
|
30
|
+
### Main PATH Tools
|
|
31
|
+
|
|
32
|
+
| Tool | Description |
|
|
33
|
+
|------|-------------|
|
|
34
|
+
| `get_run_path` | Get augmented PATH with all package manager binaries |
|
|
35
|
+
| `get_run_path_env` | Get complete env object with augmented PATH |
|
|
36
|
+
|
|
37
|
+
### Package Manager Specific
|
|
38
|
+
|
|
39
|
+
| Tool | Description |
|
|
40
|
+
|------|-------------|
|
|
41
|
+
| `get_bun_path` | PATH with only Bun paths |
|
|
42
|
+
| `get_npm_path` | PATH with only npm paths |
|
|
43
|
+
| `get_pnpm_path` | PATH with only pnpm paths |
|
|
44
|
+
| `get_yarn_path` | PATH with only Yarn paths |
|
|
45
|
+
|
|
46
|
+
### Utility Tools
|
|
47
|
+
|
|
48
|
+
| Tool | Description |
|
|
49
|
+
|------|-------------|
|
|
50
|
+
| `detect_package_managers` | Detect installed package managers |
|
|
51
|
+
| `get_bin_paths` | List all binary directories |
|
|
52
|
+
|
|
53
|
+
## Example
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
// Call get_run_path_env before spawning processes
|
|
57
|
+
{
|
|
58
|
+
"cwd": "/Users/user/project"
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Returns:
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"PATH": "/Users/user/project/node_modules/.bin:/Users/user/.bun/bin:/usr/local/bin:...",
|
|
66
|
+
"HOME": "/Users/user",
|
|
67
|
+
...
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Supported Package Managers
|
|
72
|
+
|
|
73
|
+
- **npm / npx** - `node_modules/.bin`, npm global prefix
|
|
74
|
+
- **bun** - `~/.bun/bin`, `~/.bun/install/global/`
|
|
75
|
+
- **pnpm** - `PNPM_HOME`, pnpm global bin
|
|
76
|
+
- **yarn** - `~/.yarn/bin`, yarn global dir
|
|
77
|
+
- **deno** - `~/.deno/bin`
|
|
78
|
+
|
|
79
|
+
## Transport
|
|
80
|
+
|
|
81
|
+
Currently uses **stdio** transport. HTTP/SSE transport planned for future versions.
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|