feat(mcp): add agent-friendly query capabilities

Add get_mcp_capabilities so remote agents can discover enabled tool groups and preferred entrypoints.

Add ask_wiki as a one-call query wrapper with structured result fields while keeping the legacy answer field for compatibility.

Update MCP startup guidance and docs, and cover the new query/capability behavior with tests.
This commit is contained in:
Codex
2026-07-08 16:53:59 +00:00
parent 1150107aa3
commit ee7defe8bf
8 changed files with 368 additions and 15 deletions
+3 -2
View File
@@ -427,8 +427,9 @@ def render_remote_config(
query_section = (
"\n"
"Wiki query tools:\n"
"Use start_wiki_query, get_wiki_query_status, get_wiki_query_result, "
"cancel_wiki_query, and check_query_opencode_readiness.\n"
"Use ask_wiki for ordinary wiki, business facts, or hybrid questions.\n"
"For long-running jobs, use start_wiki_query, get_wiki_query_status, "
"get_wiki_query_result, cancel_wiki_query, and check_query_opencode_readiness.\n"
)
return (
"MCP service is running.\n"