Skip to content

Commit 18ecdce

Browse files
Expose Instructions for MCP client (#21)
* Add a default prompt to help the AI * more opslevel specific default prompt * add more text, fix typos in tool desc --------- Co-authored-by: Kyle Rockman <[email protected]>
1 parent 82a8dfc commit 18ecdce

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/cmd/default_prompt.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
OpsLevel is an internal developer portal that helps engineering teams to build, manage, and operate their services with confidence.
2+
It provides a single source of truth for all their services, making it easy to discover, understand, and manage them.
3+
4+
The main components of OpsLevel include:
5+
- **Catalog**: A comprehensive catalog of components, services and infrastructure, including metadata, ownership, and documentation. This can be broken down further into:
6+
- Teams
7+
- Components (previously known as services. This is the main entity in OpsLevel, representing a service or application that is owned by a team. Has a name, description and type)
8+
- Repositories
9+
- Infrastructure
10+
- Systems (a way to represent Components that combine to form a unified whole or function.)
11+
- Domains (large business units or verticals, made up of Systems)
12+
- Component Dependencies
13+
- **Component Maturity**: A set of customer defined best practices and standards for building and operating services, including security, reliability, and performance.
14+
- Rubrics (evaluation of these determines a component's maturity level across an organization)
15+
- Scorecards (like a rubric but does not impact maturity level)
16+
- Checks (scorecards and rubrics are made up of individual checks like "has a README" or "has a health check")
17+
- Filters (a named set of predicates that select components based on their metadata, like "uses rails" or "is owned by team X")
18+
- **Actions**: Tools and integrations that help automate common tasks and workflows, such as deployment, monitoring, and incident response.

src/cmd/root.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cmd
22

33
import (
44
"context"
5+
_ "embed"
56
"encoding/json"
67
"fmt"
78
"os"
@@ -18,6 +19,9 @@ import (
1819
"github.com/spf13/viper"
1920
)
2021

22+
//go:embed default_prompt.md
23+
var defaultSystemPrompt string
24+
2125
type serializedComponent struct {
2226
Id string
2327
Name string
@@ -55,6 +59,7 @@ var rootCmd = &cobra.Command{
5559
s := server.NewMCPServer(
5660
"OpsLevel",
5761
version,
62+
server.WithInstructions(defaultSystemPrompt),
5863
)
5964

6065
client := NewGraphClient(version)

0 commit comments

Comments
 (0)