File tree Expand file tree Collapse file tree 3 files changed +91
-1
lines changed
Expand file tree Collapse file tree 3 files changed +91
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [created]
6+ workflow_dispatch :
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ id-token : write # required for github-oidc login
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 20'
21+ registry-url : ' https://registry.npmjs.org'
22+
23+ - name : Install & build
24+ run : npm ci && npm run build
25+
26+ - name : Publish to npm
27+ run : npm publish --access public
28+ env :
29+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
30+
31+ - name : Install mcp-publisher
32+ run : |
33+ curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" \
34+ | tar xz mcp-publisher
35+
36+ - name : Login to MCP Registry
37+ run : ./mcp-publisher login github-oidc
38+
39+ - name : Publish to MCP Registry
40+ run : ./mcp-publisher publish
Original file line number Diff line number Diff line change 22 "name" : " dbatools-mcp-server" ,
33 "mcpName" : " io.github.dataplat/dbatools-mcp-server" ,
44 "version" : " 0.1.0" ,
5- "description" : " MCP server for the dbatools PowerShell module — exposes dbatools commands as MCP tools driven by comment-based help " ,
5+ "description" : " MCP server for dbatools — exposes SQL Server management commands as MCP tools" ,
66 "keywords" : [
77 " dbatools" ,
88 " mcp" ,
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json" ,
3+ "name" : " io.github.dataplat/dbatools-mcp-server" ,
4+ "description" : " MCP server for dbatools — exposes SQL Server management commands as MCP tools" ,
5+ "repository" : {
6+ "url" : " https://github.com/dataplat/dbatools-mcp-server" ,
7+ "source" : " github"
8+ },
9+ "version" : " 0.1.0" ,
10+ "packages" : [
11+ {
12+ "registryType" : " npm" ,
13+ "identifier" : " dbatools-mcp-server" ,
14+ "version" : " 0.1.0" ,
15+ "transport" : {
16+ "type" : " stdio"
17+ },
18+ "environmentVariables" : [
19+ {
20+ "name" : " DBATOOLS_SAFE_MODE" ,
21+ "description" : " Set to 'false' to allow write/destructive dbatools operations. Defaults to true (read-only safe mode)." ,
22+ "isRequired" : false ,
23+ "isSecret" : false ,
24+ "format" : " string"
25+ },
26+ {
27+ "name" : " MAX_OUTPUT_ROWS" ,
28+ "description" : " Maximum number of rows returned per command. Defaults to 100. Allowed range: 1–10000." ,
29+ "isRequired" : false ,
30+ "isSecret" : false ,
31+ "format" : " number"
32+ },
33+ {
34+ "name" : " COMMAND_TIMEOUT_SECONDS" ,
35+ "description" : " Timeout in seconds for each dbatools command. Defaults to 60. Allowed range: 5–3600." ,
36+ "isRequired" : false ,
37+ "isSecret" : false ,
38+ "format" : " number"
39+ },
40+ {
41+ "name" : " PWSH_EXE" ,
42+ "description" : " Path to the PowerShell executable. Defaults to 'pwsh'." ,
43+ "isRequired" : false ,
44+ "isSecret" : false ,
45+ "format" : " string"
46+ }
47+ ]
48+ }
49+ ]
50+ }
You can’t perform that action at this time.
0 commit comments