Skip to content

Commit f642c9d

Browse files
author
andypalmi
committed
fix(mcp): rename BOM tools and clarify gating per review
Spell out bill_of_materials in both tool names, mention hosted and remote instances explicitly, and describe the bom feature gate as team level rather than plan-gated.
1 parent 5834020 commit f642c9d

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

forge/ee/lib/mcp/tools/bom.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ const { teamId, applicationId } = require('../schemas')
22

33
module.exports = [
44
{
5-
name: 'platform_get_team_bom',
5+
name: 'platform_get_team_bill_of_materials',
66
title: 'Get Team Bill of Materials',
77
description: `FlowFuse platform automation tool:
8-
Reads the bill of materials for a team: the applications, instances, and their
9-
dependencies across the team. This is plan-gated on the bom feature, which defaults
8+
Reads the bill of materials for a team: the applications, hosted and remote instances,
9+
and their dependencies across the team. This is a team level gated feature which defaults
1010
to disabled; when disabled for the team the request returns a "Feature not enabled" error.
1111
Results include only the applications you have access to.`,
1212
annotations: { readOnlyHint: true, destructiveHint: false },
@@ -19,12 +19,12 @@ module.exports = [
1919
}
2020
},
2121
{
22-
name: 'platform_get_application_bom',
22+
name: 'platform_get_application_bill_of_materials',
2323
title: 'Get Application Bill of Materials',
2424
description: `FlowFuse platform automation tool:
25-
Reads the bill of materials for a single application: its instances and their dependencies.
26-
This is plan-gated on the bom feature, which defaults to disabled; when the team's plan
27-
has this feature disabled the request returns a "Feature not enabled" error.`,
25+
Reads the bill of materials for a single application: its hosted and remote instances
26+
and their dependencies. This is a team level gated feature which defaults to disabled;
27+
when disabled for the team the request returns a "Feature not enabled" error.`,
2828
annotations: { readOnlyHint: true, destructiveHint: false },
2929
inputSchema: {
3030
applicationId

test/unit/forge/ee/lib/mcp/tools/bom_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ describe('MCP Bill of Materials Tools', function () {
1414
inject = sinon.stub()
1515
})
1616

17-
describe('platform_get_team_bom', function () {
18-
const tool = getTool('platform_get_team_bom')
17+
describe('platform_get_team_bill_of_materials', function () {
18+
const tool = getTool('platform_get_team_bill_of_materials')
1919

2020
it('injects the team bom route and returns the response', async function () {
2121
const routeResponse = { statusCode: 200, json: () => ([]) }
@@ -36,8 +36,8 @@ describe('MCP Bill of Materials Tools', function () {
3636
})
3737
})
3838

39-
describe('platform_get_application_bom', function () {
40-
const tool = getTool('platform_get_application_bom')
39+
describe('platform_get_application_bill_of_materials', function () {
40+
const tool = getTool('platform_get_application_bill_of_materials')
4141

4242
it('injects the application bom route and returns the response', async function () {
4343
const routeResponse = { statusCode: 200, json: () => ({}) }

0 commit comments

Comments
 (0)