Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultAddr = "127.0.0.1:9551"
DefaultAddr is the default MCP server listen address.
Variables ¶
This section is empty.
Functions ¶
func LoadOrCreateToken ¶
LoadOrCreateToken reads the bearer token from <dataDir>/mcp-token. If missing, generates a 32-byte hex token and persists it.
Types ¶
type Config ¶
type Config struct {
Store FlowReader
Proxy ProxyInfo
Scripts ScriptManager
Throttle ThrottleController
Addr string // listen address (default "127.0.0.1:9551")
Token string // bearer token for auth
}
Config holds dependencies for the MCP server.
type FlowReader ¶
type FlowReader interface {
List(filter store.Filter, offset, limit int) ([]store.FlowMeta, int)
Get(id store.FlowID) (*store.FlowMeta, *store.FlowData, error)
}
FlowReader is the read-only port for accessing captured flows.
type ScriptManager ¶
type ScriptManager interface {
Scripts() []scripting.ScriptInfo
ScriptByID(id string) (scripting.ScriptInfo, bool)
Toggle(filePath string) error
Delete(filePath string) error
CreateNew() (string, error)
QuickAddMapLocal(pattern, localPath string) (string, error)
ScriptDir() string
Reload()
}
ScriptManager exposes script operations.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the MCP server that exposes httpmon tools to LLM agents.
Click to show internal directories.
Click to hide internal directories.