mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-27 23:58:47 +00:00
Some checks failed
CI / Python packages / Build and verify distributions (push) Waiting to run
CI / Python quality / GitHub Actions (push) Waiting to run
CI / Python quality / Pre-commit (push) Waiting to run
CI / Python tests / Unit Tests - py3.11 (push) Waiting to run
CI / Python tests / Unit Tests - py3.12 (push) Waiting to run
CI / Python tests / Unit Tests - py3.13 (push) Waiting to run
CI / Python tests / Unit Tests - py3.14 (push) Waiting to run
CI / Windows / CLI smoke - py3.11 (push) Waiting to run
CI and Release / Docker / Build and test / amd64 (push) Waiting to run
CI and Release / Docker / Build and test / arm64 (push) Waiting to run
CI and Release / Docker / Publish multi-platform tags (push) Blocked by required conditions
Security / CodeQL / Analyze javascript-typescript (push) Waiting to run
Security / CodeQL / Analyze python (push) Waiting to run
Deploy / Documentation / Build documentation (push) Has been cancelled
CI / ReMe Studio / Studio checks (push) Has been cancelled
Deploy / Documentation / deploy (push) Has been cancelled
* feat(qoder): add bundled memory plugin * fix(qoder): address plugin review feedback
23 lines
809 B
Python
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()
|