Skip to content

Commit 10893b1

Browse files
add maturity level to components tool
1 parent 32806c8 commit 10893b1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Added
2+
body: Add maturity Level to components listing tool
3+
time: 2025-05-27T20:31:57.537495-07:00

src/cmd/root.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type serializedComponent struct {
3030
Name string
3131
Owner string
3232
Url string
33+
Level serializedLevel
3334
}
3435

3536
type serializedInfrastructureResource struct {
@@ -167,7 +168,7 @@ var rootCmd = &cobra.Command{
167168
s.AddTool(
168169
mcp.NewTool(
169170
"components",
170-
mcp.WithDescription("Get all the components in the OpsLevel account. Components are objects in OpsLevel that represent things like apis, libraries, services, frontends, backends, etc. Use this tool to list what components are in the catalog, what team is the owner, what primary coding language is used, and what primary framework is used."),
171+
mcp.WithDescription("Get all the components in the OpsLevel account. Components are objects in OpsLevel that represent things like apis, libraries, services, frontends, backends, etc. Use this tool to list what components are in the catalog, what team is the owner, what primary coding language is used, and what primary framework is used. It also includes its rubric level, corresponding to the maturity of the component; a higher index is better. A level is achieved by passing all checks tied to that same level."),
171172
mcp.WithToolAnnotation(mcp.ToolAnnotation{
172173
Title: "Components in OpsLevel",
173174
ReadOnlyHint: true,
@@ -190,6 +191,7 @@ var rootCmd = &cobra.Command{
190191
Language: node.Language,
191192
Framework: node.Framework,
192193
Url: node.HtmlURL,
194+
Level: serializedLevel{Alias: node.MaturityReport.OverallLevel.Alias, Index: node.MaturityReport.OverallLevel.Index},
193195
})
194196
}
195197
return newToolResult(components, nil)

0 commit comments

Comments
 (0)