types

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityTypeAlert      = "alert"
	EntityTypeCase       = "case"
	EntityTypeTask       = "task"
	EntityTypeObservable = "observable"
)

Entity type constants for TheHive entities

View Source
const DefaultMaxCompletionRetries = 3
View Source
const DefaultMaxCompletionTime = 60 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type CtxKey

type CtxKey string
const HiveAPIKeyCtxKey CtxKey = "hive_api_key"
const HiveClientCtxKey CtxKey = "hive_client"
const HiveOrgCtxKey CtxKey = "hive_org"
const HiveURLCtxKey CtxKey = "hive_url"
const OpenAIRequestStartTimeCtxKey CtxKey = "openai_request_start_time"
const PermissionsCtxKey CtxKey = "permissions"
const RequestIDCtxKey CtxKey = "request_id"
const SamplingModelRequestStartTimeCtxKey CtxKey = "sampling_model_request_start_time"

type EnvKey

type EnvKey string
const EnvKeyBindHost EnvKey = "MCP_BIND_HOST"
const EnvKeyLogLevel EnvKey = "LOG_LEVEL"
const EnvKeyMCPHeartbeatInterval EnvKey = "MCP_HEARTBEAT_INTERVAL"
const EnvKeyMCPPort EnvKey = "MCP_PORT"
const EnvKeyMCPServerEndpoint EnvKey = "MCP_SERVER_ENDPOINT"
const EnvKeyOpenAIAPIKey EnvKey = "OPENAI_API_KEY"
const EnvKeyOpenAIBaseURL EnvKey = "OPENAI_BASE_URL"
const EnvKeyOpenAIMaxTokens EnvKey = "OPENAI_MAX_TOKENS"
const EnvKeyOpenAIModel EnvKey = "OPENAI_MODEL"
const EnvKeyPermissionsConfig EnvKey = "PERMISSIONS_CONFIG"
const EnvKeyTheHiveAPIKey EnvKey = "THEHIVE_API_KEY"
const EnvKeyTheHiveOrganisation EnvKey = "THEHIVE_ORGANISATION"
const EnvKeyTheHivePassword EnvKey = "THEHIVE_PASSWORD"
const EnvKeyTheHiveURL EnvKey = "THEHIVE_URL"
const EnvKeyTheHiveUsername EnvKey = "THEHIVE_USERNAME"

type FlagVar

type FlagVar string
const FlagVarBindAddr FlagVar = "addr"
const FlagVarLogLevel FlagVar = "log-level"
const FlagVarMCPHeartbeatInterval FlagVar = "mcp-heartbeat-interval"
const FlagVarMCPServerEndpointPath FlagVar = "mcp-endpoint-path"
const FlagVarOpenAIAPIKey FlagVar = "openai-api-key"
const FlagVarOpenAIBaseURL FlagVar = "openai-base-url"
const FlagVarOpenAIMaxTokens FlagVar = "openai-max-tokens"
const FlagVarOpenAIModel FlagVar = "openai-model"
const FlagVarPermissionsConfig FlagVar = "permissions-config"
const FlagVarTheHiveAPIKey FlagVar = "thehive-api-key"
const FlagVarTheHiveOrganisation FlagVar = "thehive-organisation"
const FlagVarTheHivePassword FlagVar = "thehive-password"
const FlagVarTheHiveURL FlagVar = "thehive-url"
const FlagVarTheHiveUsername FlagVar = "thehive-username"
const FlagVarTransportType FlagVar = "transport"

type HeaderKey

type HeaderKey string
const HeaderKeyTheHiveAPIKey HeaderKey = "X-TheHive-Api-Key"
const HeaderKeyTheHiveOrganisation HeaderKey = "X-TheHive-Org"
const HeaderKeyTheHiveURL HeaderKey = "X-TheHive-Url"

type PermissionConfig

type PermissionConfig string
const PermissionConfigAdmin PermissionConfig = "admin"
const PermissionConfigReadOnly PermissionConfig = "read_only"

type TheHiveMcpDefaultOptions

type TheHiveMcpDefaultOptions struct {
	// TheHiveURL is the URL of TheHive instance
	TheHiveURL string
	// TheHiveAPIKey is the API key for TheHive
	TheHiveAPIKey string
	// TheHiveUsername is the username for TheHive (for basic auth)
	TheHiveUsername string
	// TheHivePassword is the password for TheHive (for basic auth)
	TheHivePassword string
	// TheHiveOrganisation is the organisation for TheHive (optional)
	TheHiveOrganisation string
	// PermissionsConfigPath is the path to the permissions configuration file (optional, defaults to embedded read-only config)
	PermissionsConfigPath string
	// MCPServerEndpointPath is the endpoint path for the MCP server (default: /mcp)
	MCPServerEndpointPath string
	// MCPHeartbeatInterval is the heartbeat interval for the MCP server (default: 30s)
	MCPHeartbeatInterval string
	// TransportType is the transport type for the MCP server (default: http)
	TransportType string
	// BindAddr is the address to bind the HTTP server to (if using HTTP transport)
	BindAddr string
	// LogLevel is the logging level for the application
	LogLevel string
	// OpenAIBaseURL is the base URL for OpenAI API (optional)
	OpenAIBaseURL string
	// OpenAIAPIKey is the API key for OpenAI
	OpenAIAPIKey string
	// OpenAIModel is the model to use for OpenAI
	OpenAIModel string
	// OpenAIMaxTokens is the maximum tokens for OpenAI responses (default: 320000)
	OpenAIMaxTokens int
}

func NewTheHiveMcpDefaultOptions

func NewTheHiveMcpDefaultOptions() (*TheHiveMcpDefaultOptions, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL