basalt / ai-mcp/src / Session
Interface: Session
Defined in: ai-mcp/src/session.ts:37
Resolved per-server session: workspace root, env, and how to read/plan.
Properties
allowUnconfirmedApply
> readonly allowUnconfirmedApply: boolean
Defined in: ai-mcp/src/session.ts:44
Whether an apply may proceed when the client cannot confirm it.
env
> readonly env: Record<string, string | undefined>
Defined in: ai-mcp/src/session.ts:39
workspaceRoot
> readonly workspaceRoot: string
Defined in: ai-mcp/src/session.ts:38
Methods
provider()
> provider(): AIProvider
Defined in: ai-mcp/src/session.ts:42
Build the AI provider on demand — only the provider-backed tools call this.
Returns
AIProvider
reader()
> reader(root): ProjectReader
Defined in: ai-mcp/src/session.ts:40
Parameters
root
string
Returns
ProjectReader