Skip to content

Commit 08b5356

Browse files
authored
feat: add devops/ca toolsets W-19616705 (#230)
* feat: add devops/ca toolsets * chore: bump provider-api and disable CI autobump * chore: move CA tools to code-analysis * chore: remove ref to "other" toolset
1 parent 81b5fb4 commit 08b5356

File tree

11 files changed

+18
-27
lines changed

11 files changed

+18
-27
lines changed

.github/workflows/publish-providers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
162162

163163
- name: Update main server dependency
164-
if: ${{ steps.changelog.outputs.skipped == 'false' && steps.release.outputs.id != '' }}
164+
if: ${{ steps.changelog.outputs.skipped == 'false' && steps.release.outputs.id != '' && matrix.package != 'mcp-provider-api' }}
165165
run: |
166166
# Get the published version
167167
PUBLISHED_VERSION="${{ steps.changelog.outputs.version }}"

packages/EXAMPLE-MCP-PROVIDER/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"types": "dist/index.d.ts",
1515
"dependencies": {
1616
"@modelcontextprotocol/sdk": "^1.18.0",
17-
"@salesforce/mcp-provider-api": "^0.2.2",
17+
"@salesforce/mcp-provider-api": "^0.3.0",
1818
"zod": "^3.25.76"
1919
},
2020
"devDependencies": {

packages/mcp-provider-api/src/enums.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ export enum Toolset {
2121
MOBILE_CORE = 'mobile-core',
2222
AURA_EXPERTS = 'aura-experts',
2323
LWC_EXPERTS = 'lwc-experts',
24+
DEVOPS = 'devops',
25+
CODE_ANALYSIS = 'code-analysis',
2426
OTHER = 'other'
2527
}
2628

2729
// Array of all Toolset names
28-
export const TOOLSETS: Toolset[] = Object.values(Toolset);
30+
export const TOOLSETS: Toolset[] = Object.values(Toolset);

packages/mcp-provider-code-analyzer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@salesforce/code-analyzer-pmd-engine": "^0.30.0",
2121
"@salesforce/code-analyzer-regex-engine": "^0.27.0",
2222
"@salesforce/code-analyzer-retirejs-engine": "^0.26.0",
23-
"@salesforce/mcp-provider-api": "^0.2.2",
23+
"@salesforce/mcp-provider-api": "^0.3.0",
2424
"zod": "^3.25.76"
2525
},
2626
"devDependencies": {

packages/mcp-provider-code-analyzer/src/tools/describe_code_analyzer_rule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class CodeAnalyzerDescribeRuleMcpTool extends McpTool<InputArgsShape, Out
5454
}
5555

5656
public getToolsets(): Toolset[] {
57-
return [Toolset.OTHER];
57+
return [Toolset.CODE_ANALYSIS];
5858
}
5959

6060
public getName(): string {
@@ -85,4 +85,4 @@ export class CodeAnalyzerDescribeRuleMcpTool extends McpTool<InputArgsShape, Out
8585
structuredContent: output
8686
};
8787
}
88-
}
88+
}

packages/mcp-provider-code-analyzer/src/tools/run_code_analyzer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class CodeAnalyzerRunMcpTool extends McpTool<InputArgsShape, OutputArgsSh
5959
}
6060

6161
public getToolsets(): Toolset[] {
62-
return [Toolset.OTHER];
62+
return [Toolset.CODE_ANALYSIS];
6363
}
6464

6565
public getName(): string {
@@ -108,4 +108,4 @@ function validateInput(input: RunInput): void {
108108
throw new Error(getMessage('targetsCannotBeDirectories', entry));
109109
}
110110
}
111-
}
111+
}

packages/mcp-provider-code-analyzer/test/tools/describe_code_analyzer_rule.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ describe("Tests for DescribeRuleTool", () => {
1414
expect(tool.getReleaseState()).toEqual(ReleaseState.NON_GA);
1515
})
1616

17-
it("When getToolsets is called, then 'other' is returned", () => {
18-
expect(tool.getToolsets()).toEqual([Toolset.OTHER]);
17+
it("When getToolsets is called, then 'code-analysis' is returned", () => {
18+
expect(tool.getToolsets()).toEqual([Toolset.CODE_ANALYSIS]);
1919
});
2020

2121
it("When getName is called, then tool name is returned", () => {
@@ -88,4 +88,4 @@ class ThrowingDescribeRuleAction implements DescribeRuleAction {
8888
exec(_input: DescribeRuleInput): Promise<DescribeRuleOutput> {
8989
throw new Error("Error from ThrowingDescribeRuleAction");
9090
}
91-
}
91+
}

packages/mcp-provider-code-analyzer/test/tools/run_code_analyzer.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ describe("Tests for CodeAnalyzerRunMcpTool", () => {
2121
expect(tool.getReleaseState()).toEqual(ReleaseState.NON_GA);
2222
})
2323

24-
it("When getToolsets is called, then 'other' is returned", () => {
25-
expect(tool.getToolsets()).toEqual([Toolset.OTHER]);
24+
it("When getToolsets is called, then 'code-analysis' is returned", () => {
25+
expect(tool.getToolsets()).toEqual([Toolset.CODE_ANALYSIS]);
2626
});
2727

2828
it("When getName is called, then tool name is returned", () => {
@@ -145,4 +145,4 @@ class ThrowingRunAction implements RunAnalyzerAction {
145145
exec(_input: RunInput): Promise<RunOutput> {
146146
throw new Error("Error from ThrowingRunAction");
147147
}
148-
}
148+
}

packages/mcp-provider-dx-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@salesforce/apex-node": "^8.2.1",
4949
"@salesforce/core": "^8.23.1",
5050
"@salesforce/kit": "^3.1.6",
51-
"@salesforce/mcp-provider-api": "^0.2.2",
51+
"@salesforce/mcp-provider-api": "^0.3.0",
5252
"@salesforce/source-deploy-retrieve": "^12.22.0",
5353
"@salesforce/source-tracking": "^7.4.8",
5454
"@salesforce/ts-types": "^2.0.11",

packages/mcp-provider-mobile-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@modelcontextprotocol/sdk": "^1.17.3",
1717
"eslint": "^9.35.0",
1818
"dedent": "^1.5.3",
19-
"@salesforce/mcp-provider-api": "^0.2.2",
19+
"@salesforce/mcp-provider-api": "^0.3.0",
2020
"@salesforce/eslint-plugin-lwc-graph-analyzer": "^1.0.0",
2121
"zod": "^3.25.76"
2222
},

0 commit comments

Comments
 (0)