You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing ctx on macOS, the binary is installed to `~/.local/bin/ctx` by default. However, this directory may not be in your system's PATH, which can cause issues when using ctx with applications like Claude Desktop.
59
+
60
+
**Verifying Installation:**
61
+
```bash
62
+
which ctx
63
+
# Should output: /Users/yourusername/.local/bin/ctx
64
+
```
65
+
66
+
**Option 1: Use Full Path (Recommended for MCP)**
67
+
68
+
When configuring MCP servers in Claude Desktop or similar applications, use the full path to the ctx binary:
69
+
```json
70
+
{
71
+
"mcpServers": {
72
+
"ctx": {
73
+
"command": "/Users/yourusername/.local/bin/ctx",
74
+
"args": ["server", "-c", "/path/to/your/project"]
75
+
}
76
+
}
77
+
}
78
+
```
79
+
80
+
**Option 2: Add to System PATH**
81
+
82
+
To use `ctx` as a simple command everywhere, create a symlink in a system directory:
83
+
```bash
84
+
sudo ln -s ~/.local/bin/ctx /usr/local/bin/ctx
85
+
```
86
+
87
+
Or add `~/.local/bin` to your PATH by adding this line to `~/.zshrc` (or `~/.bash_profile` for bash):
88
+
```bash
89
+
export PATH="$HOME/.local/bin:$PATH"
90
+
```
91
+
92
+
Then reload your shell:
93
+
```bash
94
+
source~/.zshrc
95
+
```
96
+
97
+
**Note:** Applications like Claude Desktop may not inherit your shell's PATH. In such cases, using the full path in the configuration is the most reliable approach.
98
+
99
+
**Linux:**
100
+
101
+
On Linux, ctx is typically installed to `~/.local/bin/ctx` or `/usr/local/bin/ctx` depending on your installation method. The same PATH considerations apply as with macOS.
102
+
103
+
**Troubleshooting:**
104
+
105
+
If you encounter "command not found" errors:
106
+
1. Verify ctx is installed: `ls -la ~/.local/bin/ctx`
107
+
2. Check the binary is executable: `chmod +x ~/.local/bin/ctx`
108
+
3. Use the full path in your configuration
109
+
4. For shell usage, ensure `~/.local/bin` is in your PATH
110
+
111
+
54
112
---
55
113
56
114
<br>
@@ -68,4 +126,4 @@ the [GitHub releases page](https://github.com/context-hub/generator/releases)
0 commit comments