Skip to content

feat: add --tool flag to mcp subcommand and fix codex support#64

Merged
aptend merged 5 commits intomatrixorigin:mainfrom
aptend:feat/setup
Mar 20, 2026
Merged

feat: add --tool flag to mcp subcommand and fix codex support#64
aptend merged 5 commits intomatrixorigin:mainfrom
aptend:feat/setup

Conversation

@aptend
Copy link
Contributor

@aptend aptend commented Mar 20, 2026

What type of PR is this?

  • feat (new feature)
  • fix (bug fix)

Which issue(s) this PR fixes

Fixes #

What this PR does / why we need it

--tool flag for memoria mcp

Adds --tool <kiro|cursor|claude|codex> argument (also readable from MEMORIA_TOOL env var) to the mcp subcommand. When set, the value is forwarded as an X-Memoria-Tool HTTP header on every request to the remote API, allowing the server to identify which AI tool initiated the call.

The memoria init command now embeds --tool <toolname> in the generated MCP config args for each tool, so the header is set automatically without any manual configuration.

Fix codex embedded-mode env vars

configure_codex was silently dropping all EMBEDDING_* environment variables — they were present in the JSON entry but never written to ~/.codex/config.toml. Now generates a [mcp_servers.memoria.env] TOML section alongside the command/args.

Fix codex config pre-fill in interactive wizard

load_existing_config only read kiro/cursor/claude JSON files, so the interactive wizard had no defaults when re-running for a codex setup. Now also parses ~/.codex/config.toml to detect an existing codex entry and extract db/embedding defaults.

@aptend aptend merged commit 1701094 into matrixorigin:main Mar 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant