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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user