-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsmithery.yaml
More file actions
31 lines (30 loc) · 1.12 KB
/
smithery.yaml
File metadata and controls
31 lines (30 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required: []
properties:
bcServerUrl:
type: string
default: "https://api.businesscentral.dynamics.com/v2.0/{tenant}/{environment}/api/v2.0"
description: The Business Central API server URL (include tenant and environment).
bcCompany:
type: string
default: ""
description: The company name to connect to in Business Central.
bcAuthType:
type: string
default: azure_cli
description: Authentication type (currently only azure_cli is supported).
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
config => {
const env = {};
if (config.bcServerUrl) env.BC_URL_SERVER = config.bcServerUrl;
if (config.bcCompany) env.BC_COMPANY = config.bcCompany;
if (config.bcAuthType) env.BC_AUTH_TYPE = config.bcAuthType;
return {command: 'node', args: ['build/index.js'], env};
}