pub struct Discovery {
pub context: ContextConfig,
pub skills: SkillsConfig,
pub templates: TemplatesConfig,
pub hooks: HooksConfig,
pub tools: ToolsConfig,
pub mcp: McpConfig,
}Expand description
Where every session’s workspace discovery looks.
The defaults are basis’s own — workspace files plus the user-global roots
— and this is the operator’s knob to say otherwise: a server that must not
honor the developer’s global mcp.json pins McpConfig { global_dir: None, .. } here, and an offline test pins every root the same way. It
lives on the template because discovery is part of what the operator
promised every session, not something a client can renegotiate per
session/new.
Fields§
§context: ContextConfigWhere context files (AGENTS.md) are discovered.
skills: SkillsConfigWhere skills are discovered.
templates: TemplatesConfigWhere prompt templates are discovered.
hooks: HooksConfigWhere subprocess hooks are discovered.
tools: ToolsConfigWhere declared subprocess tools are discovered.
mcp: McpConfigWhere MCP servers are discovered, before the client’s own land on top.