Repository navigation
feat(persona): plain npx -y ai-hist-mcp + enable trajectory memory on persona-maker #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -284,9 +284,9 @@ function buildRelaycastMcpServer(relay: RelayMcpConfig): McpServerSpec { | |||||
| * Build the stdio MCP server spec for ai-hist — the unified retrieval surface | ||||||
| * that serves both the "why" (this persona's compacted decision trajectories) | ||||||
| * and the "how" (cross-tool prompt/session history). Launched via | ||||||
| * `npx -y -p ai-hist ai-hist-mcp`: the `ai-hist-mcp` bin ships inside the | ||||||
| * published `ai-hist` package, so this needs no separately-published wrapper. | ||||||
| * Env carries the trajectory root + optional DB override. | ||||||
| * `npx -y ai-hist-mcp` — the published, provenance-signed wrapper package that | ||||||
| * re-exports the server from `ai-hist`. Env carries the trajectory root + | ||||||
| * optional DB override. | ||||||
| */ | ||||||
| function buildAiHistMcpServer(cfg: AiHistMcpConfig): McpServerSpec { | ||||||
| const env: Record<string, string> = {}; | ||||||
|
|
@@ -295,7 +295,7 @@ function buildAiHistMcpServer(cfg: AiHistMcpConfig): McpServerSpec { | |||||
| return { | ||||||
| type: 'stdio', | ||||||
| command: 'npx', | ||||||
| args: ['-y', '-p', 'ai-hist', 'ai-hist-mcp'], | ||||||
| args: ['-y', 'ai-hist-mcp'], | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Running
Suggested change
|
||||||
| env | ||||||
| }; | ||||||
| } | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ function assertAiHistServer(server: unknown, env: Record<string, string>): void | |
| assert.deepEqual(server, { | ||
| type: 'stdio', | ||
| command: 'npx', | ||
| args: ['-y', '-p', 'ai-hist', 'ai-hist-mcp'], | ||
| args: ['-y', 'ai-hist-mcp'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| env | ||
| }); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the test assertion to match the pinned version of
ai-hist-mcp.