Documentation
¶
Overview ¶
Package models defines domain types used across the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompiledRule ¶
CompiledRule is a precompiled method+path matching rule.
type OperationMatcher ¶
type OperationMatcher struct {
Allow []CompiledRule
Block []CompiledRule
}
OperationMatcher evaluates allow/block rules for API operations.
func NewOperationMatcher ¶
func NewOperationMatcher(allow, block []CompiledRule) *OperationMatcher
NewOperationMatcher creates a matcher with the given allow and block rules.
func (*OperationMatcher) IsAllowed ¶
func (m *OperationMatcher) IsAllowed(method, path string) bool
IsAllowed returns true if the method+path is allowed and not blocked.
type ToolDefinition ¶
type ToolDefinition struct {
OperationID string
Method string
Path string
Description string
InputSchema json.RawMessage
OutputSchema json.RawMessage
Params []ToolParam
HasBody bool
}
ToolDefinition describes an API operation exposed as an MCP tool.
Click to show internal directories.
Click to hide internal directories.