indra_db_mcp 0.1.0 → 0.1.1
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 +3 -3
- package/package.json +1 -1
- package/src/indra-client.ts +3 -3
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ Add to your `claude_desktop_config.json`:
|
|
|
47
47
|
"command": "bun",
|
|
48
48
|
"args": ["run", "/path/to/indra_db_mcp/src/index.ts"],
|
|
49
49
|
"env": {
|
|
50
|
-
"INDRA_DB_PATH": "~/.
|
|
50
|
+
"INDRA_DB_PATH": "~/.indra"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -58,10 +58,10 @@ Add to your `claude_desktop_config.json`:
|
|
|
58
58
|
|
|
59
59
|
| Variable | Description | Default |
|
|
60
60
|
|----------|-------------|---------|
|
|
61
|
-
| `INDRA_DB_PATH` | Path to database file |
|
|
61
|
+
| `INDRA_DB_PATH` | Path to database file | `./.indra` (hidden file) |
|
|
62
62
|
|
|
63
63
|
When `INDRA_DB_PATH` is set, uses that path (supports `~` for home directory).
|
|
64
|
-
When unset, creates
|
|
64
|
+
When unset, creates a hidden `.indra` file in the current working directory.
|
|
65
65
|
|
|
66
66
|
## Available Tools
|
|
67
67
|
|
package/package.json
CHANGED
package/src/indra-client.ts
CHANGED
|
@@ -151,15 +151,15 @@ function resolveDatabasePath(): string {
|
|
|
151
151
|
// 1. Check environment variable
|
|
152
152
|
const envPath = process.env.INDRA_DB_PATH;
|
|
153
153
|
if (envPath) {
|
|
154
|
-
// If explicitly set, use
|
|
154
|
+
// If explicitly set, use that path
|
|
155
155
|
if (envPath.startsWith("~")) {
|
|
156
156
|
return join(homedir(), envPath.slice(1));
|
|
157
157
|
}
|
|
158
158
|
return envPath;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
// 2. Default to
|
|
162
|
-
return join(process.cwd(), "
|
|
161
|
+
// 2. Default to hidden .indra file in current directory
|
|
162
|
+
return join(process.cwd(), ".indra");
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// ============================================================================
|