WeKnora/internal/agent/tools
ninesun 1e36e071ec
feat(mcp): add per-tool enable toggle (#2989)
* feat(mcp): add per-tool enable toggle

* style: format migration test

* fix(mcp): keep enable and approval updates from overwriting each other

Partial policy writes now touch only the supplied columns, and a missing
tenant fails closed so a disabled tool cannot slip through.

---------

Co-authored-by: myysophia <myysophia@users.noreply.github.com>
Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-09-05 17:19:20 +08:00
..
capabilities.go
…
data_analysis.go
…
data_analysis_duckdb_test.go
…
data_analysis_materialize_test.go
…
data_analysis_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
data_schema.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
database_query.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
database_query_test.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
definitions.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
exec_context.go
…
execution_policy.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
faq_snippet.go
…
faq_snippet_test.go
…
file_mutation_queue.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
file_mutation_queue_test.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
get_document_info.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
grep_chunks.go
…
grep_chunks_aggregate_test.go
…
grep_chunks_scope_test.go
…
grep_chunks_snippet_test.go
…
image_markdown_output_test.go
…
json_repair.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
json_repair_test.go fix(agent): recover tool arguments with a stray trailing fragment 2026-09-02 10:12:55 +08:00
knowledge_search.go fix(agent): stop using the chat model to rerank knowledge search 2026-08-27 11:44:30 +08:00
knowledge_search_metadata_test.go refactor(knowledge): keep metadata document scoped 2026-07-28 20:23:48 +08:00
knowledge_search_mmr_test.go perf(agent): make knowledge_search MMR selection incremental 2026-08-20 15:44:32 +08:00
knowledge_search_rerank_test.go fix(agent): stop using the chat model to rerank knowledge search 2026-08-27 11:44:30 +08:00
list_knowledge_chunks.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
mcp_oauth.go
…
mcp_tool.go feat(mcp): add per-tool enable toggle (#2989) 2026-09-05 17:19:20 +08:00
mcp_tool_enabled_test.go feat(mcp): add per-tool enable toggle (#2989) 2026-09-05 17:19:20 +08:00
mcp_tool_image_test.go
…
mcp_tool_test.go
…
normalize_id.go
…
normalize_id_test.go
…
output_budget.go
…
output_budget_test.go
…
output_links.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
output_links_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
param_cast.go
…
param_cast_test.go
…
param_validate.go
…
param_validate_test.go
…
persist.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
persist_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
python_syntax.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
python_syntax_test.go refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
query_knowledge_graph.go
…
query_knowledge_graph_test.go
…
read_file.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
read_file_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
registry.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
registry_outcome_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
registry_test.go
…
sandbox_diff.go feat(agent): stream live +/- progress for sandbox write and edit 2026-09-02 23:36:58 +08:00
sandbox_diff_test.go feat(agent): stream live +/- progress for sandbox write and edit 2026-09-02 23:36:58 +08:00
sandbox_edit.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
sandbox_edit_test.go feat(agent): stream live +/- progress for sandbox write and edit 2026-09-02 23:36:58 +08:00
sandbox_ls.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
sandbox_write.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
sandbox_write_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
sanitize_messages.go
…
sanitize_messages_test.go
…
scope_authorization.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
scope_authorization_test.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
search_conversations.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
search_memory.go feat(memory): introduce long-term memory feature with i18n updates 2026-08-13 18:00:02 +08:00
search_memory_test.go feat(memory): introduce long-term memory feature with i18n updates 2026-08-13 18:00:02 +08:00
sequentialthinking.go
…
shell_env_extract.go fix(sandbox): make skill env capture fill blanks only 2026-08-27 14:32:00 +08:00
shell_env_extract_test.go fix(sandbox): make skill env capture fill blanks only 2026-08-27 14:32:00 +08:00
shell_exec.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
shell_exec_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
shell_runtime_integration_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
shell_stdin_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
skill_file.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
skill_file_test.go refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
skill_file_tree_test.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
skill_resources.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
skill_runtime_guard.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
skill_runtime_guard_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
strip_think.go
…
strip_think_test.go
…
think_stream.go
…
think_stream_test.go
…
todo_write.go
…
tool.go
…
tool_policy_coverage_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
truncate.go
…
truncate_test.go
…
web_fetch.go fix(agent): web_fetch 兼容 LLM 双重序列化的 items 参数 2026-09-04 17:34:24 +08:00
web_fetch_test.go fix(agent): web_fetch 兼容 LLM 双重序列化的 items 参数 2026-09-04 17:34:24 +08:00
web_search.go fix(agent): preserve web evidence when page fetches fail 2026-07-28 22:17:31 +08:00
wiki_delete_page.go
…
wiki_flag_issue.go
…
wiki_index_overview_test.go
…
wiki_link_mutation.go
…
wiki_link_mutation_test.go
…
wiki_read_issue.go
…
wiki_read_page_budget_test.go
…
wiki_read_source_doc.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
wiki_rename_page.go
…
wiki_replace_text.go fix: replace all exact wiki text matches 2026-08-05 19:30:40 +08:00
wiki_replace_text_test.go fix: replace all exact wiki text matches 2026-08-05 19:30:40 +08:00
wiki_route_resolver.go
…
wiki_tools.go Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
wiki_tools_test.go
…
wiki_update_issue.go
…
wiki_write_page.go
…
wiki_write_page_test.go
…
workspace_reader.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
workspace_reader_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00