Skip to content

Commit b8f8e55

Browse files
committed
Add Smithery configuration
1 parent 4813a6b commit b8f8e55

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

smithery.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
- restBaseUrl
10+
properties:
11+
restBaseUrl:
12+
type: string
13+
description: The base URL for the REST API.
14+
authBasicUsername:
15+
type: string
16+
description: The username for Basic Authentication.
17+
authBasicPassword:
18+
type: string
19+
description: The password for Basic Authentication.
20+
authBearer:
21+
type: string
22+
description: The bearer token for authentication.
23+
authApiKeyHeaderName:
24+
type: string
25+
description: The header name for API Key Authentication.
26+
authApiKeyValue:
27+
type: string
28+
description: The API key value for API Key Authentication.
29+
restEnableSslVerify:
30+
type: boolean
31+
default: true
32+
description: Enable or disable SSL verification.
33+
restResponseSizeLimit:
34+
type: number
35+
default: 10000
36+
description: The maximum response size limit in bytes.
37+
commandFunction:
38+
# A function that produces the CLI command to start the MCP on stdio.
39+
|-
40+
config => ({ command: 'node', args: ['build/index.js'], env: { REST_BASE_URL: config.restBaseUrl, AUTH_BASIC_USERNAME: config.authBasicUsername, AUTH_BASIC_PASSWORD: config.authBasicPassword, AUTH_BEARER: config.authBearer, AUTH_APIKEY_HEADER_NAME: config.authApiKeyHeaderName, AUTH_APIKEY_VALUE: config.authApiKeyValue, REST_ENABLE_SSL_VERIFY: config.restEnableSslVerify.toString(), REST_RESPONSE_SIZE_LIMIT: config.restResponseSizeLimit.toString() } })

0 commit comments

Comments
 (0)