MCPcopy Create free account
hub / github.com/IBM/mcp-cli / ToolPatternRule

Class ToolPatternRule

src/mcp_cli/utils/preferences.py:48–54  ·  view source on GitHub ↗

Pattern-based rule for tool confirmations - no dict goop!

Source from the content-addressed store, hash-verified

46
47
48class ToolPatternRule(BaseModel):
49 """Pattern-based rule for tool confirmations - no dict goop!"""
50
51 pattern: str = Field(description="Glob pattern for tool names")
52 action: str = Field(description="Action: always/never or risk level")
53
54 model_config = {"frozen": True}
55
56
57class ToolConfirmationPreferences(BaseModel):

Callers 1

add_tool_patternMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected