Repository navigation
Expand file tree
/
Copy pathenv.example
More file actions
102 lines (89 loc) · 3.97 KB
/
Copy pathenv.example
File metadata and controls
102 lines (89 loc) · 3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Splunk MCP Server Environment Configuration
# Copy this file to .env and update with your Splunk instance details
# Splunk Connection Settings
SPLUNK_HOST=so1
SPLUNK_PORT=8089
SPLUNK_USERNAME=admin
SPLUNK_PASSWORD=Chang3d!
# Default is true; false is for local/lab self-signed certs
SPLUNK_VERIFY_SSL=false
# Splunk Web UI (not the management port). Used for dashboard and job links.
# Cloud / reverse-proxy example:
# SPLUNK_WEB_URL=https://splunk-b839c1.deslicer.io
# Local Enterprise example (omit SPLUNK_WEB_URL; http scheme defaults to host:8000):
# SPLUNK_WEB_PORT=8000
# SPLUNK_WEB_LOCALE=en-US
# --- Splunk authentication (choose ONE of the following) -------------------
# 1) Username / password (set above), OR
# 2) Bearer / access token issued via Splunk Web (Settings -> Tokens) or
# the /services/authorization/tokens REST endpoint. When SPLUNK_TOKEN is
# set, it takes precedence over SPLUNK_USERNAME / SPLUNK_PASSWORD.
# SPLUNK_TOKEN=eyJraWQiOiJzcGx1bmsuc2VjcmV0...
#
# 3) (Advanced) Pre-existing splunkd session token. Maps to splunklib's
# ``token`` argument – use only if you already manage session tokens.
# SPLUNK_SESSION_TOKEN=Splunk_session_token_value
# Optional: Splunk Image for docker-compose
SPLUNK_IMAGE=splunk/splunk:latest
# MCP Server Settings (optional overrides)
MCP_SERVER_HOST=0.0.0.0
MCP_SERVER_PORT=8003
MCP_LOG_LEVEL=INFO
MCP_SERVER_MODE=docker
MCP_HOT_RELOAD=true
MCP_AUTH_DISABLED=true
# Per-client toolset filtering. Defaults header-less clients to the
# host's Splunk tools only; plugins (e.g. ITSI) are opt-in. Set to
# "splunk,itsi" or "all" to widen, or rely on the X-MCP-Toolsets
# request header for per-client selection.
MCP_DEFAULT_TOOLSETS=splunk
# ITSI MCP Server (Standalone) - exposes the Splunk IT Service Intelligence
# tools/resources/prompts. Defaults assume the same Splunk endpoint as the
# parent MCP server.
MCP_ITSI_SERVER_HOST=0.0.0.0
MCP_ITSI_SERVER_PORT=8004
MCP_ITSI_TRANSPORT=http
MCP_ITSI_LOG_LEVEL=INFO
ITSI_APP=SA-ITOA
ITSI_USER_NS=nobody
ITSI_API_VERSION=vLatest
ITSI_REQUEST_TIMEOUT=30
# HTTP transport behavior (recommended for local development)
# Enable stateless HTTP so clients don't require sticky sessions
MCP_STATELESS_HTTP=true
# Return JSON responses instead of SSE streams (improves compatibility with some clients)
MCP_JSON_RESPONSE=true
# How long run_splunk_search waits for Splunk before returning job_id for polling
MCP_SEARCH_WAIT_SECONDS=15
# Executed Workflows Storage
# Directory for latest executed workflows per (session_id, workflow_id)
EXECUTED_WORKFLOWS_DIR=./data/executed_workflows
# TTL for executed workflow records (seconds). Default 86400 (24h)
EXECUTED_WORKFLOWS_TTL_SECONDS=86400
# OpenAI Agent Settings
# OpenAI Rate Limiting & Retry Configuration
# Automatically handles rate limits with exponential backoff
# Sentry Monitoring (optional) - install with: pip install mcp-server-for-splunk[sentry]
# SENTRY_DSN=https://your-key@o123.ingest.sentry.io/project-id
SENTRY_ENVIRONMENT=development
# SENTRY_RELEASE defaults to the installed package version when unset.
SENTRY_TRACES_SAMPLE_RATE=1.0
SENTRY_PROFILE_SESSION_SAMPLE_RATE=0.1
# Legacy alias still honored by the server:
# SENTRY_PROFILES_SAMPLE_RATE=0.1
SENTRY_DEBUG=false
# When true, register LoggingIntegration (SDK 3 has no init(enable_logs=...)).
SENTRY_ENABLE_LOGS=true
# Enabling SENTRY_SEND_PII sends request data, including tool inputs, to Sentry.
SENTRY_SEND_PII=false
# OpenTelemetry distributed tracing (optional)
# Install with: pip install mcp-server-for-splunk[otel]
# Tracing activates ONLY when OTEL_EXPORTER_OTLP_ENDPOINT is set. When enabled,
# this service exports OTLP spans to your backend, continues an incoming W3C
# trace (traceparent), and emits JSON logs carrying trace IDs.
# OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
OTEL_SERVICE_NAME=splunk-mcp
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_TRACES_SAMPLER=parentbased_always_on
# deployment.environment is commonly used to filter traces by environment.
DEPLOYMENT_ENVIRONMENT=development