@evantahler/mcpcli 0.4.0 → 0.5.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 +10 -10
- package/package.json +1 -1
- package/src/config/loader.ts +2 -2
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ mcpcli remove my-api --dry-run
|
|
|
134
134
|
|
|
135
135
|
## Configuration
|
|
136
136
|
|
|
137
|
-
Config lives in `~/.
|
|
137
|
+
Config lives in `~/.mcpcli/` (or the current directory). Three files:
|
|
138
138
|
|
|
139
139
|
### `servers.json` — MCP Server Definitions
|
|
140
140
|
|
|
@@ -231,18 +231,18 @@ Scenarios and keywords are extracted heuristically from tool names and descripti
|
|
|
231
231
|
1. `MCP_CONFIG_PATH` environment variable
|
|
232
232
|
2. `-c / --config` flag
|
|
233
233
|
3. `./servers.json` (current directory)
|
|
234
|
-
4. `~/.
|
|
234
|
+
4. `~/.mcpcli/servers.json`
|
|
235
235
|
|
|
236
236
|
## Environment Variables
|
|
237
237
|
|
|
238
|
-
| Variable | Purpose | Default
|
|
239
|
-
| ----------------- | --------------------------- |
|
|
240
|
-
| `MCP_CONFIG_PATH` | Config directory path | `~/.
|
|
241
|
-
| `MCP_DEBUG` | Enable debug output | `false`
|
|
242
|
-
| `MCP_TIMEOUT` | Request timeout (seconds) | `1800`
|
|
243
|
-
| `MCP_CONCURRENCY` | Parallel server connections | `5`
|
|
244
|
-
| `MCP_MAX_RETRIES` | Retry attempts | `3`
|
|
245
|
-
| `MCP_STRICT_ENV` | Error on missing `${VAR}` | `true`
|
|
238
|
+
| Variable | Purpose | Default |
|
|
239
|
+
| ----------------- | --------------------------- | ------------ |
|
|
240
|
+
| `MCP_CONFIG_PATH` | Config directory path | `~/.mcpcli/` |
|
|
241
|
+
| `MCP_DEBUG` | Enable debug output | `false` |
|
|
242
|
+
| `MCP_TIMEOUT` | Request timeout (seconds) | `1800` |
|
|
243
|
+
| `MCP_CONCURRENCY` | Parallel server connections | `5` |
|
|
244
|
+
| `MCP_MAX_RETRIES` | Retry attempts | `3` |
|
|
245
|
+
| `MCP_STRICT_ENV` | Error on missing `${VAR}` | `true` |
|
|
246
246
|
|
|
247
247
|
## OAuth Flow
|
|
248
248
|
|
package/package.json
CHANGED
package/src/config/loader.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
validateSearchIndex,
|
|
12
12
|
} from "./schemas.ts";
|
|
13
13
|
|
|
14
|
-
const DEFAULT_CONFIG_DIR = join(homedir(), ".
|
|
14
|
+
const DEFAULT_CONFIG_DIR = join(homedir(), ".mcpcli");
|
|
15
15
|
|
|
16
16
|
const EMPTY_SERVERS: ServersFile = { mcpServers: {} };
|
|
17
17
|
const EMPTY_AUTH: AuthFile = {};
|
|
@@ -42,7 +42,7 @@ function resolveConfigDir(configFlag?: string): string {
|
|
|
42
42
|
// 3. ./servers.json exists in cwd → use cwd
|
|
43
43
|
// (checked at load time, not here — we return the candidate dir)
|
|
44
44
|
|
|
45
|
-
// 4. Default ~/.
|
|
45
|
+
// 4. Default ~/.mcpcli/
|
|
46
46
|
return DEFAULT_CONFIG_DIR;
|
|
47
47
|
}
|
|
48
48
|
|