Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DryRunEnabled bool
var GlobalConfigPath string
var RootCmd = &cobra.Command{ Use: "leanproxy-mcp", Short: "LeanProxy MCP - A JSON-RPC streaming proxy with token validation", Long: `LeanProxy MCP provides secure JSON-RPC streaming proxy capabilities with token validation, MCP server registry, and configurable redaction. Features: - JSON-RPC streaming proxy - Token validation and authentication - MCP server registry management - Configurable redaction patterns For full documentation, see: https://github.com/mmornati/leanproxy-mcp#readme`, SilenceUsage: true, }
Functions ¶
Types ¶
type Pool ¶
type Pool interface {
SendRequest(ctx context.Context, serverName string, req *proxy.JSONRPCRequest, timeout time.Duration) (*proxy.JSONRPCResponse, error)
}
type SecurityCategory ¶ added in v1.1.1
type SecurityCategory struct {
ID string `json:"id"`
Name string `json:"name"`
Checks []SecurityCheck `json:"checks"`
}
SecurityCategory is one OWASP MCP Top 10 category and its checks.
type SecurityCheck ¶ added in v1.1.1
type SecurityCheck struct {
ID string `json:"id"`
Title string `json:"title"`
Status SecurityStatus `json:"status"`
Evidence string `json:"evidence,omitempty"`
Fix string `json:"fix,omitempty"`
}
SecurityCheck is one evaluated check within an OWASP MCP Top 10 category.
type SecurityReport ¶ added in v1.1.1
type SecurityReport struct {
Schema string `json:"schema"`
GeneratedAt time.Time `json:"generated_at"`
ConfigPath string `json:"config_path,omitempty"`
Categories []SecurityCategory `json:"categories"`
Summary SecuritySummary `json:"summary"`
}
SecurityReport is the full `doctor security` report: the versioned JSON schema documented in docs/security.md.
func (*SecurityReport) ExitCode ¶ added in v1.1.1
func (r *SecurityReport) ExitCode() int
ExitCode is 1 when any check failed (❌), 0 otherwise. Warnings and info items never fail the exit code, so the report can be used as a pre-commit or CI gate on hard findings only.
type SecurityStatus ¶ added in v1.1.1
type SecurityStatus string
SecurityStatus is one check's verdict.
const ( StatusOK SecurityStatus = "ok" StatusWarn SecurityStatus = "warn" StatusFail SecurityStatus = "fail" // StatusInfo marks a check that could not be evaluated statically // (e.g. it needs a running proxy) rather than a pass/fail verdict. StatusInfo SecurityStatus = "info" )
Source Files
¶
- add.go
- admin.go
- bouncer.go
- cache.go
- codemode_off.go
- compactor.go
- completion.go
- connect.go
- cost.go
- daemon.go
- doctor.go
- doctor_security.go
- http_frontend.go
- marketplace.go
- marketplace_search.go
- marketplace_update.go
- migrate.go
- namespace.go
- policy.go
- reload_unix.go
- report.go
- root.go
- savings.go
- serve.go
- serve_auth.go
- serve_listener.go
- server.go
- status.go
- stdio_frontend.go
- telemetry.go
- tools_pins.go
- usage_endpoints.go
- usage_snapshot.go
- version.go