ReMe/reme/utils
jinliyl 3d2ecc60d2
feat(service): expose MCP through HTTP backend (#498)
* feat(service): expose MCP through HTTP backend

Serve JSON/SSE job endpoints and streamable HTTP MCP from one FastAPI application, sharing the same jobs and application lifecycle. Preserve the standalone MCP backend, add configurable MCP HTTP settings, update startup metadata and integration docs, and cover routing, lifecycle, configuration, and compatibility behavior with unit tests.

* fix(service): preserve MCP request protections

Route the exact MCP path through the complete FastMCP ASGI application so its middleware and state remain active. Reject non-literal MCP paths and validate reserved Job conflicts before tolerant service registration. Add regression coverage for middleware preservation, route syntax, and startup failure.

* fix(service): reject encoded MCP paths

Reject percent signs in mcp_path so ASGI path decoding cannot turn an accepted configuration into an unreachable route. Cover encoded slash, space, and double-encoded slash inputs.
2026-08-27 17:23:11 +08:00
..
__init__.py feat: add entry-point plugin system and extract Auto Fin (#459) 2026-08-19 17:23:23 +08:00
agent_state_io.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
common_utils.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
counter.py feat(evaluation): track job calls and agent token usage in benchmarks (#406) 2026-08-04 11:42:18 +08:00
env_utils.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
evaluation_interface.py feat(evaluation): track job calls and agent token usage in benchmarks (#406) 2026-08-04 11:42:18 +08:00
jsonl_zst.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
line_anchor.py feat: simplify wikilink semantics and support line anchors (#412) 2026-08-05 11:47:50 +08:00
link_expansion.py feat: simplify wikilink semantics and support line anchors (#412) 2026-08-05 11:47:50 +08:00
logger_utils.py feat: add Auto Fin cookbook and managed outbound proxy support (#392) 2026-07-25 18:09:39 +08:00
logo_utils.py feat(service): expose MCP through HTTP backend (#498) 2026-08-27 17:23:11 +08:00
service_utils.py feat: add entry-point plugin system and extract Auto Fin (#459) 2026-08-19 17:23:23 +08:00
similarity_utils.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
token_utils.py init: reme version 0.4.0 (#284) 2026-06-22 15:41:19 +08:00
tushare.py refactor: rebuild auto-fin and daily-paper cookbooks on structured-output agents (#432) 2026-08-07 23:53:14 +08:00
web_static.py refactor(packaging): reorganize published packages (#495) 2026-08-27 14:02:09 +08:00
wikilink_handler.py feat: simplify wikilink semantics and support line anchors (#412) 2026-08-05 11:47:50 +08:00