Skip to content

Commit e3201bc

Browse files
committed
Add Smithery configuration
1 parent 2b8344b commit e3201bc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

smithery.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required:
9+
- bitcoinNetwork
10+
properties:
11+
logLevel:
12+
type: string
13+
default: info
14+
description: The log level for the server (e.g., info, debug, error).
15+
bitcoinNetwork:
16+
type: string
17+
default: mainnet
18+
description: The Bitcoin network to interact with (e.g., mainnet, testnet).
19+
blockstreamApiBase:
20+
type: string
21+
description: The base URL for the Blockstream API.
22+
serverMode:
23+
type: string
24+
default: stdio
25+
description: The server mode (e.g., stdio, sse).
26+
port:
27+
type: number
28+
default: 3000
29+
description: The port for the server to run on.
30+
commandFunction:
31+
# A function that produces the CLI command to start the MCP on stdio.
32+
|-
33+
(config) => ({command:'node', args:['build/cli.js'], env: {LOG_LEVEL: config.logLevel || 'info', BITCOIN_NETWORK: config.bitcoinNetwork || 'mainnet', BLOCKSTREAM_API_BASE: config.blockstreamApiBase, SERVER_MODE: config.serverMode || 'stdio', PORT: config.port ? config.port.toString() : '3000'}})

0 commit comments

Comments
 (0)