@skedulo/memory-hub-mcp 0.2.6 → 0.2.7
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/assets/session-start.sh
CHANGED
|
@@ -7,12 +7,12 @@ set -u
|
|
|
7
7
|
# The team's one deployed memory-hub function. MEMORY_HUB_FUNCTION_URL only needs to
|
|
8
8
|
# be set to override this (e.g. pointing at a local `sked function dev` instance).
|
|
9
9
|
FUNCTION_URL="${MEMORY_HUB_FUNCTION_URL:-https://dev-api.test.skl.io/function/memory-hub/memory-hub}"
|
|
10
|
-
TOKEN="${MEMORY_HUB_MCP_TOKEN:-}"
|
|
10
|
+
TOKEN="${MEMORY_HUB_MCP_TOKEN:-${CLAUDE_PLUGIN_OPTION_TOKEN:-}}"
|
|
11
11
|
|
|
12
12
|
if [ -z "$TOKEN" ]; then
|
|
13
13
|
# A plugin install has no setup step of its own, so it says how to add the token.
|
|
14
14
|
if [ -n "${CLAUDE_PLUGIN_ROOT:-}" ]; then
|
|
15
|
-
printf '%s\n' '{"hookSpecificOutput": {"hookEventName": "SessionStart", "additionalContext": "memory-hub plugin: MEMORY_HUB_MCP_TOKEN is not set, so memory is off this session. Tell the user to run `npx -y @skedulo/memory-hub-mcp setup --code` in a terminal,
|
|
15
|
+
printf '%s\n' '{"hookSpecificOutput": {"hookEventName": "SessionStart", "additionalContext": "memory-hub plugin: MEMORY_HUB_MCP_TOKEN is not set, so memory is off this session. Tell the user to run `npx -y @skedulo/memory-hub-mcp setup --code` in a terminal (it logs in with sked and stores a token), or to paste a Skedulo API token with /plugin configure memory-hub@se-ai-memory-hub. Then restart Claude Code."}}'
|
|
16
16
|
fi
|
|
17
17
|
exit 0
|
|
18
18
|
fi
|
package/package.json
CHANGED