Skip to content

Commit d22faf1

Browse files
Add Smithery configuration
1 parent 1a3bfb2 commit d22faf1

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

smithery.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
- xeroClientId
10+
- xeroClientSecret
11+
- xeroRedirectUri
12+
properties:
13+
xeroClientId:
14+
type: string
15+
description: Your Xero OAuth2 Client ID
16+
xeroClientSecret:
17+
type: string
18+
description: Your Xero OAuth2 Client Secret
19+
xeroRedirectUri:
20+
type: string
21+
description: Your Xero OAuth2 Redirect URI, e.g., http://localhost:5000/callback
22+
commandFunction:
23+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
24+
|-
25+
(config) => ({
26+
command: 'node',
27+
args: ['build/index.js'],
28+
env: {
29+
XERO_CLIENT_ID: config.xeroClientId,
30+
XERO_CLIENT_SECRET: config.xeroClientSecret,
31+
XERO_REDIRECT_URI: config.xeroRedirectUri
32+
}
33+
})
34+
exampleConfig:
35+
xeroClientId: dummy_client_id
36+
xeroClientSecret: dummy_client_secret
37+
xeroRedirectUri: http://localhost:5000/callback

0 commit comments

Comments
 (0)