Option C Tools
Loading...
Searching...
No Matches
oct.mcp.policy.ToolSpec Class Reference

Public Member Functions

None __post_init__ (self)

Static Public Attributes

frozenset permissions = field(default_factory=frozenset)
bool destructive = False
bool auto_approve = True
dict TOOL_MANIFEST

Detailed Description

Metadata for one entry in the tool manifest.

Attributes
----------
cli
    The ``oct`` CLI subcommand string (e.g. ``"lint"``, ``"git status"``).
permissions
    Set of permission tokens required by this tool (``"read"``,
    ``"exec"``). Phase 5A tools are read-only (``{"read"}`` or
    ``{"read", "exec"}``).
destructive
    True if the tool can mutate the filesystem. All Phase 5A tools
    are ``False``; write tools will be ``True`` in Phase 5B.
auto_approve
    True if the tool may execute without explicit user confirmation.
    All Phase 5A tools are ``True``.

Definition at line 64 of file policy.py.

Member Function Documentation

◆ __post_init__()

None oct.mcp.policy.ToolSpec.__post_init__ ( self)

Definition at line 88 of file policy.py.

Member Data Documentation

◆ auto_approve

bool oct.mcp.policy.ToolSpec.auto_approve = True
static

Definition at line 86 of file policy.py.

◆ destructive

bool oct.mcp.policy.ToolSpec.destructive = False
static

Definition at line 85 of file policy.py.

◆ permissions

oct.mcp.policy.ToolSpec.permissions = field(default_factory=frozenset)
static

Definition at line 84 of file policy.py.

◆ TOOL_MANIFEST

dict oct.mcp.policy.ToolSpec.TOOL_MANIFEST
static

Definition at line 97 of file policy.py.


The documentation for this class was generated from the following file:
  • G:/PythonApps/Option_C/oct/oct/mcp/policy.py