Skip to main content
Glama
blockchain-pattern-mcp
by olk

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoHTTP bind host.0.0.0.0
PORTNoHTTP bind port.8050
TRANSPORTNoTransport mode: stdio, streamable-http.streamable-http
CONFIG_PATHNoConfig file path.~/.config/blockchain-pattern-mcp/config.json
LOGGING_LEVELNoLogging level.INFO
LOGGING_FORMATNoLogging format: json, text.json
EMBEDDING_CACHENoDense-leg snapshot path: reloaded on restart (zero corpus re-embedding), rebuilt on any embedder/corpus/probe change. 0/false/off/no disables.
GENERATOR_MODELNoModel name; final model string is <GENERATOR_PROVIDER>/<GENERATOR_MODEL> (LiteLLM syntax).gpt-4o-mini
GENERATOR_TOP_KNoTop-k sampling.20
GENERATOR_TOP_PNoTop-p sampling.1.0
EMBEDDER_API_KEYNoForwarded as the LiteLLM api_key for the embedder (any non-empty string satisfies a no-auth TEI).
GENERATOR_STREAMNoEnable streaming responses.false
RERANKER_TIMEOUTNoReranker timeout (seconds).30.0
EMBEDDER_BASE_URLNoTEI embedder URL.http://127.0.0.1:8080
EMBEDDER_PROVIDERNoEmbedder provider.tei
GENERATOR_API_KEYYesAPI key for your LLM provider (passed to LiteLLM as api_key). Required.
PATTERN_DIRECTORYNoPattern files directory (the image bakes the 109-pattern catalogue there)./app/pattern
REASONING_ENABLEDNoServer-side reasoning MCP integration — opt-in, off by default.false
RERANKER_BASE_URLNoTEI reranker endpoint (host:port); model is fixed to gte-reranker-modernbert-base.
GENERATOR_BASE_URLNoAPI base URL (passed to LiteLLM as api_base).https://api.openai.com/v1
GENERATOR_PROVIDERNoLiteLLM provider prefix: openai, anthropic, openrouter, … — see LiteLLM Providers.openai
EMBEDDER_BATCH_SIZENoEmbedding batch size.16
REASONING_FAIL_FASTNoFail server startup when a reasoning tool is unreachable.true
RETRIEVAL_MAX_TRIESNoMax design loop attempts.3
RETRIEVAL_BM25_TOP_KNoBM25 stage-1 recall cap (0=full corpus).0
GENERATOR_TEMPERATURENoSampling temperature.0.1
RETRIEVAL_BM25_WEIGHTNoStage-1 fusion leg weight on the BM25 leg. See RETRIEVAL_DENSE_WEIGHT.0.3
RETRIEVAL_DENSE_TOP_KNoDense stage-1 recall cap (0=full corpus).0
REASONING_QUIET_STDERRNoSilence reasoning-subprocess stderr; set false to debug spawn failures.true
RETRIEVAL_DENSE_WEIGHTNoStage-1 fusion leg weight on the dense leg. Pairs with RETRIEVAL_BM25_WEIGHT; both must be > 0 and sum to 1.0 (±1e-3, startup validation).0.7
RETRIEVAL_RERANK_TOP_NNoRerank top N (slug-cut after CE).10
VALIDATION_MAX_RETRIESNoMax self-healing retry attempts.2
RERANKER_MAX_BATCH_SIZENoMax texts per TEI /rerank request; must be ≤ min(MAX_CLIENT_BATCH_SIZE, MAX_CONCURRENT_REQUESTS) of the reranker sidecar.48
TASKS_HEARTBEAT_ENABLEDNoEmit progress notifications during long tool calls.true
PIPELINE_TIMEOUT_SECONDSNoWall-clock budget (seconds) for one complete design run — all phases (analyze → generate → evaluate → refine) and every retry attempt.1200
RETRIEVAL_TOP_K_PATTERNSNoNumber of patterns to select.5
RETRIEVAL_VERBOSE_TIMINGNoLog phase timings at INFO level.false
VALIDATION_RETRY_ON_FAILNoRetry on validation failure.true
EMBEDDER_TEXT_INSTRUCTIONNoText instruction prefix.
REASONING_MAX_TOTAL_STEPSNoHard cap on reasoning steps per phase.8
BLOCKCHAIN_PATTERN_JOBS_DBNoSQLite path for async job trio. Default ~/.config/blockchain-pattern-mcp/jobs.db. Override for test isolation.
EMBEDDER_QUERY_INSTRUCTIONNoQuery instruction prefix.
RETRIEVAL_MIN_FUSION_SCORENoRelevance floor on the rank_fusion blend value (range [0, 2/60] ≈ [0, 0.033]). Default 0.0 (gate disabled). Values above the blend maximum are rejected at startup.0.0
RETRIEVAL_MIN_QUALITY_SCORENoEarly-stop quality threshold.50.0
REASONING_CODE_REASONING_CMDNoJSON list command for code-reasoning.
REASONING_SHANNONTHINKING_CMDNoJSON list command for shannonthinking (e.g. ["npx","-y","server-shannon-thinking@latest"]).
RETRIEVAL_FUSION_BLEND_WEIGHTNoWeight on fusion score in blend.0.3
REASONING_STEP_TIMEOUT_SECONDSNoPer-thought tool-call timeout.20
RETRIEVAL_USE_LEAN_WIRE_SCHEMANoUse lean response schema.false
REASONING_SPAWN_TIMEOUT_SECONDSNoSubprocess spawn timeout per reasoning tool.10
RETRIEVAL_ANALYSIS_BLEND_WEIGHTNoWeight on analysis score in blend.0.7
RETRIEVAL_STYLE_SCORE_THRESHOLDNoMin analysis score for style recommendation.50.0
RETRIEVAL_WEIGHT_SMOOTHING_ALPHANoWeight smoothing alpha.0.7
TASKS_HEARTBEAT_INTERVAL_SECONDSNoHeartbeat interval in seconds (keep below client idle timeout).30

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources