By the end of this page you will be able to:
- add mmw-agent to your client’s config;
- change the hint language, state directory and sync frequency;
- check that the agent sees the same settings as your client.
Running example: you use Claude Code and Codex on one laptop, your key is bound to the “backend” project, and you want your session history kept in MMW.
All settings
Section titled “All settings”The agent is configured only through environment variables. It has no config file of its own.
| Variable | Type | Default | Description |
|---|---|---|---|
MMW_API_KEY | string | — | API key from your account, starts with mmw_. Required. |
MMW_CREDENTIAL | string | — | Fallback name for the key, read only without MMW_API_KEY. |
MMW_ENDPOINT | URL | regional default | Server address. Set https://mcp.mmwhub.tech; /mcp at the end is optional. |
MMW_LANG | en or ru | by server address | Language of hints, errors and the mmw_sync_status description. |
MMW_AGENT_HOME | path | ~/.mmw | Where agent.json lives: device ID and consent receipt. |
MMW_SESSIONS_HOME | path | home directory | Where to look for .claude/projects and .codex/sessions. The default MMW_AGENT_HOME is also derived from it. |
MMW_SYNC_INTERVAL | seconds | 15 | Pause between sync cycles. |
Client configs
Section titled “Client configs”In every case the agent is started with uvx --from <wheel> mmw-agent. Wheel URL: https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl.
With a command:
claude mcp add mmw \ -e MMW_API_KEY=mmw_your_key \ -e MMW_ENDPOINT=https://mcp.mmwhub.tech \ -- uvx --from https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl mmw-agentAdd more variables with extra -e flags, for example -e MMW_SYNC_INTERVAL=60.
By hand — the mcpServers.mmw block in ~/.claude.json:
{ "mcpServers": { "mmw": { "command": "uvx", "args": ["--from", "https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl", "mmw-agent"], "env": { "MMW_API_KEY": "mmw_your_key", "MMW_ENDPOINT": "https://mcp.mmwhub.tech" } } }}Settings → Developer → Edit Config opens claude_desktop_config.json.
{ "mcpServers": { "mmw": { "command": "uvx", "args": ["--from", "https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl", "mmw-agent"], "env": { "MMW_API_KEY": "mmw_your_key", "MMW_ENDPOINT": "https://mcp.mmwhub.tech" } } }}Save the file and fully restart Claude Desktop.
{ "mcpServers": { "mmw": { "command": "uvx", "args": ["--from", "https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl", "mmw-agent"], "env": { "MMW_API_KEY": "mmw_your_key", "MMW_ENDPOINT": "https://mcp.mmwhub.tech" } } }}[mcp_servers.mmw]command = "uvx"args = ["--from", "https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl", "mmw-agent"]env = { MMW_API_KEY = "mmw_your_key", MMW_ENDPOINT = "https://mcp.mmwhub.tech" }Restart the client after editing its config: it fetches the tool list when it launches the agent.
Examples
Section titled “Examples”Force the hint language
Section titled “Force the hint language”"env": { "MMW_API_KEY": "mmw_your_key", "MMW_ENDPOINT": "https://mcp.mmwhub.tech", "MMW_LANG": "en"}Sync less often
Section titled “Sync less often”By default the agent checks for new session lines every 15 seconds. To check once a minute instead:
[mcp_servers.mmw]command = "uvx"args = ["--from", "https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl", "mmw-agent"]env = { MMW_API_KEY = "mmw_your_key", MMW_ENDPOINT = "https://mcp.mmwhub.tech", MMW_SYNC_INTERVAL = "60" }A custom state directory
Section titled “A custom state directory”If you set MMW_AGENT_HOME in the client config, set the same variable in your terminal when you run consent, revoke and status. Otherwise the terminal writes consent to ~/.mmw while the agent launched by the client looks elsewhere and never sees it.
export MMW_AGENT_HOME="$HOME/.config/mmw"export MMW_API_KEY=mmw_your_keyexport MMW_ENDPOINT=https://mcp.mmwhub.techuvx --from https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl mmw-agent consentDirect connection without the agent
Section titled “Direct connection without the agent”If you do not need session history and your client supports remote MCP servers over HTTP, you can skip the agent:
{ "mcpServers": { "mmw": { "url": "https://mcp.mmwhub.tech/mcp", "headers": { "Authorization": "Bearer mmw_your_key" } } }}In this mode there is no mmw_sync_status and no session sync. The server is stateless: every request stands on its own, so there is nothing to reconnect after a pause.
Verify
Section titled “Verify”Run status in a terminal with the same variables as in your config:
MMW_API_KEY=mmw_your_key MMW_ENDPOINT=https://mcp.mmwhub.tech \ uvx --from https://app.mmwhub.tech/downloads/mmw-agent/mmw_agent-0.1.4-py3-none-any.whl mmw-agent statusIf the output contains "server": { "registered": …, "sources": … }, the key and address are correct. If it shows "server": { "error": "Offline: …" }, the agent could not reach the server; see Agent troubleshooting.