@opennous/mcp 0.10.0 → 0.10.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/package.json +1 -1
- package/src/client.js +13 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -3,8 +3,19 @@
|
|
|
3
3
|
* Thin HTTP wrapper that handles auth, workspace context, and error handling.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// Resolve an env var defensively — Claude Code plugins use ${user_config.X}
|
|
7
|
+
// substitution; when an optional userConfig field is left blank, the literal
|
|
8
|
+
// "${user_config.field}" string can leak through. Treat any value that looks
|
|
9
|
+
// like an unresolved substitution as missing.
|
|
10
|
+
function resolvedEnv(name) {
|
|
11
|
+
const v = process.env[name];
|
|
12
|
+
if (!v) return undefined;
|
|
13
|
+
if (v.includes("${")) return undefined; // unresolved substitution marker
|
|
14
|
+
return v;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const API_URL = resolvedEnv("NOUS_API_URL") || "https://api.opennous.cloud";
|
|
18
|
+
const API_KEY = resolvedEnv("NOUS_API_KEY");
|
|
8
19
|
|
|
9
20
|
export function validateConfig() {
|
|
10
21
|
if (!API_KEY) {
|
package/src/index.js
CHANGED
|
@@ -48,7 +48,7 @@ validateConfig();
|
|
|
48
48
|
|
|
49
49
|
const server = new McpServer({
|
|
50
50
|
name: "nous",
|
|
51
|
-
version: "0.10.
|
|
51
|
+
version: "0.10.1",
|
|
52
52
|
description:
|
|
53
53
|
"Nous — the context layer for GTM agents. Call get_context before drafting outreach or " +
|
|
54
54
|
"preparing for a meeting. Call record after every interaction, or whenever you learn something.",
|