Class ToolsConfig

java.lang.Object
io.agentscope.harness.agent.tools.ToolsConfig

public class ToolsConfig extends Object
Workspace-level tool configuration loaded from workspace/tools.json.

Two responsibilities:

  • allow / deny — filter the product catalog tool surface (filesystem, shell, web, …).
  • mcpServers — declare additional tools served by external MCP servers.

Filter semantics: when allow is non-empty, catalogued tools not listed are removed; HarnessPlatformTools (subagents, teams, tasks, plan, skills, memory helpers, …) always survive allow. deny always wins. Empty/absent values mean "no filtering on this side".

  • Constructor Details

    • ToolsConfig

      public ToolsConfig()
  • Method Details

    • isStrictAllow

      public boolean isStrictAllow()
    • setStrictAllow

      public void setStrictAllow(boolean value)
    • isDefaultToolsEnabled

      public boolean isDefaultToolsEnabled()
    • setDefaultToolsEnabled

      public void setDefaultToolsEnabled(boolean value)
    • getAllow

      public List<String> getAllow()
    • setAllow

      public void setAllow(List<String> allow)
    • getDeny

      public List<String> getDeny()
    • setDeny

      public void setDeny(List<String> deny)
    • getMcpServers

      public Map<String,McpServerConfig> getMcpServers()
    • setMcpServers

      public void setMcpServers(Map<String,McpServerConfig> mcpServers)