ReMe/integrations/claude_code/reme/hooks/mcp_bridge.py
Sen Huang 749c653f23
feat(integrations): add automatic memory plugins for Claude Code and Codex (#575)
* feat(integrations): add native Claude Code and Codex memory plugins

* docs(integrations): make plugin installation the coding agent entry point

* feat(integrations): configure plugin connections from user settings

* refactor(codex): use MCP tools and native plugin settings

* fix(codex): restore plugin hooks on current runtimes

* docs(codex): expand setup guide and reserve screenshot slots

* feat(codex): add configurable memory consolidation and status

* feat(codex): merge connection checks into a tabbed status app

* docs(codex): diagnose blocked status panel sandbox loading

* fix(codex): simplify status panel layout for narrow cards

* docs(codex): focus guides on connecting and using ReMe

* docs(codex): specify validated CLI and desktop version requirements

* feat(codex): add ReMe branding to plugin icons

* docs(codex): prepare manual screenshot workflow

* fix(codex): simplify ReMe status layout and activity

* docs(codex): explain Hook loading and local project context

* fix(codex): keep status refresh clear of host close control

* fix(codex): retain status resources for active MCP connections

* docs(codex): add real desktop screenshots to usage guides

* fix(integrations): address memory capture and consolidation review

* fix(codex): preserve capture endpoint during background delivery
2026-10-12 20:12:47 +08:00

23 lines
809 B
Python

#!/usr/bin/env python3
"""Host-managed stdio connection to the user's independently running ReMe service."""
from auto_memory import load_config
def main() -> None:
"""Resolve persistent settings on connection; leave MCP transport handling to FastMCP."""
config = load_config()
try:
from fastmcp.server import create_proxy
from fastmcp.server.providers.proxy import ProxyClient
except ImportError as exc:
raise SystemExit(
"ReMe MCP requires fastmcp>=3.1 in the host's python3 environment (included in reme-ai).",
) from exc
upstream = ProxyClient(config["mcp_url"], timeout=config["request_timeout"])
proxy = create_proxy(upstream, name="ReMe")
proxy.run(transport="stdio", show_banner=False)
if __name__ == "__main__":
main()