blockchain-pattern-mcp
by olk
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | HTTP bind host. | 0.0.0.0 |
| PORT | No | HTTP bind port. | 8050 |
| TRANSPORT | No | Transport mode: stdio, streamable-http. | streamable-http |
| CONFIG_PATH | No | Config file path. | ~/.config/blockchain-pattern-mcp/config.json |
| LOGGING_LEVEL | No | Logging level. | INFO |
| LOGGING_FORMAT | No | Logging format: json, text. | json |
| EMBEDDING_CACHE | No | Dense-leg snapshot path: reloaded on restart (zero corpus re-embedding), rebuilt on any embedder/corpus/probe change. 0/false/off/no disables. | |
| GENERATOR_MODEL | No | Model name; final model string is <GENERATOR_PROVIDER>/<GENERATOR_MODEL> (LiteLLM syntax). | gpt-4o-mini |
| GENERATOR_TOP_K | No | Top-k sampling. | 20 |
| GENERATOR_TOP_P | No | Top-p sampling. | 1.0 |
| EMBEDDER_API_KEY | No | Forwarded as the LiteLLM api_key for the embedder (any non-empty string satisfies a no-auth TEI). | |
| GENERATOR_STREAM | No | Enable streaming responses. | false |
| RERANKER_TIMEOUT | No | Reranker timeout (seconds). | 30.0 |
| EMBEDDER_BASE_URL | No | TEI embedder URL. | http://127.0.0.1:8080 |
| EMBEDDER_PROVIDER | No | Embedder provider. | tei |
| GENERATOR_API_KEY | Yes | API key for your LLM provider (passed to LiteLLM as api_key). Required. | |
| PATTERN_DIRECTORY | No | Pattern files directory (the image bakes the 109-pattern catalogue there). | /app/pattern |
| REASONING_ENABLED | No | Server-side reasoning MCP integration — opt-in, off by default. | false |
| RERANKER_BASE_URL | No | TEI reranker endpoint (host:port); model is fixed to gte-reranker-modernbert-base. | |
| GENERATOR_BASE_URL | No | API base URL (passed to LiteLLM as api_base). | https://api.openai.com/v1 |
| GENERATOR_PROVIDER | No | LiteLLM provider prefix: openai, anthropic, openrouter, … — see LiteLLM Providers. | openai |
| EMBEDDER_BATCH_SIZE | No | Embedding batch size. | 16 |
| REASONING_FAIL_FAST | No | Fail server startup when a reasoning tool is unreachable. | true |
| RETRIEVAL_MAX_TRIES | No | Max design loop attempts. | 3 |
| RETRIEVAL_BM25_TOP_K | No | BM25 stage-1 recall cap (0=full corpus). | 0 |
| GENERATOR_TEMPERATURE | No | Sampling temperature. | 0.1 |
| RETRIEVAL_BM25_WEIGHT | No | Stage-1 fusion leg weight on the BM25 leg. See RETRIEVAL_DENSE_WEIGHT. | 0.3 |
| RETRIEVAL_DENSE_TOP_K | No | Dense stage-1 recall cap (0=full corpus). | 0 |
| REASONING_QUIET_STDERR | No | Silence reasoning-subprocess stderr; set false to debug spawn failures. | true |
| RETRIEVAL_DENSE_WEIGHT | No | Stage-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_N | No | Rerank top N (slug-cut after CE). | 10 |
| VALIDATION_MAX_RETRIES | No | Max self-healing retry attempts. | 2 |
| RERANKER_MAX_BATCH_SIZE | No | Max texts per TEI /rerank request; must be ≤ min(MAX_CLIENT_BATCH_SIZE, MAX_CONCURRENT_REQUESTS) of the reranker sidecar. | 48 |
| TASKS_HEARTBEAT_ENABLED | No | Emit progress notifications during long tool calls. | true |
| PIPELINE_TIMEOUT_SECONDS | No | Wall-clock budget (seconds) for one complete design run — all phases (analyze → generate → evaluate → refine) and every retry attempt. | 1200 |
| RETRIEVAL_TOP_K_PATTERNS | No | Number of patterns to select. | 5 |
| RETRIEVAL_VERBOSE_TIMING | No | Log phase timings at INFO level. | false |
| VALIDATION_RETRY_ON_FAIL | No | Retry on validation failure. | true |
| EMBEDDER_TEXT_INSTRUCTION | No | Text instruction prefix. | |
| REASONING_MAX_TOTAL_STEPS | No | Hard cap on reasoning steps per phase. | 8 |
| BLOCKCHAIN_PATTERN_JOBS_DB | No | SQLite path for async job trio. Default ~/.config/blockchain-pattern-mcp/jobs.db. Override for test isolation. | |
| EMBEDDER_QUERY_INSTRUCTION | No | Query instruction prefix. | |
| RETRIEVAL_MIN_FUSION_SCORE | No | Relevance 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_SCORE | No | Early-stop quality threshold. | 50.0 |
| REASONING_CODE_REASONING_CMD | No | JSON list command for code-reasoning. | |
| REASONING_SHANNONTHINKING_CMD | No | JSON list command for shannonthinking (e.g. ["npx","-y","server-shannon-thinking@latest"]). | |
| RETRIEVAL_FUSION_BLEND_WEIGHT | No | Weight on fusion score in blend. | 0.3 |
| REASONING_STEP_TIMEOUT_SECONDS | No | Per-thought tool-call timeout. | 20 |
| RETRIEVAL_USE_LEAN_WIRE_SCHEMA | No | Use lean response schema. | false |
| REASONING_SPAWN_TIMEOUT_SECONDS | No | Subprocess spawn timeout per reasoning tool. | 10 |
| RETRIEVAL_ANALYSIS_BLEND_WEIGHT | No | Weight on analysis score in blend. | 0.7 |
| RETRIEVAL_STYLE_SCORE_THRESHOLD | No | Min analysis score for style recommendation. | 50.0 |
| RETRIEVAL_WEIGHT_SMOOTHING_ALPHA | No | Weight smoothing alpha. | 0.7 |
| TASKS_HEARTBEAT_INTERVAL_SECONDS | No | Heartbeat 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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues