Skip to content

fix: set correct hint annotations for tools #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions internal/hbmcp/faults.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ func RegisterFaultTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("list_faults",
mcp.WithDescription("Get a list of faults for a project with optional filtering and ordering"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("project_id",
mcp.Required(),
mcp.Description("The ID of the project to get faults for"),
Expand Down Expand Up @@ -56,6 +58,8 @@ func RegisterFaultTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("get_fault",
mcp.WithDescription("Get detailed information for a specific fault in a project"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("project_id",
mcp.Required(),
mcp.Description("The ID of the project containing the fault"),
Expand All @@ -76,6 +80,8 @@ func RegisterFaultTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("list_fault_notices",
mcp.WithDescription("Get a list of notices (individual error events) for a specific fault"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("project_id",
mcp.Required(),
mcp.Description("The ID of the project containing the fault"),
Expand Down Expand Up @@ -107,6 +113,8 @@ func RegisterFaultTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("list_fault_affected_users",
mcp.WithDescription("Get a list of users who were affected by a specific fault with occurrence counts"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("project_id",
mcp.Required(),
mcp.Description("The ID of the project containing the fault"),
Expand All @@ -130,6 +138,8 @@ func RegisterFaultTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("get_fault_counts",
mcp.WithDescription("Get fault count statistics for a project with optional filtering"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("project_id",
mcp.Required(),
mcp.Description("The ID of the project to get fault counts for"),
Expand Down
16 changes: 16 additions & 0 deletions internal/hbmcp/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ func RegisterProjectTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("list_projects",
mcp.WithDescription("List all Honeybadger projects"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithString("account_id",
mcp.Description("Optional account ID to filter projects by specific account"),
),
Expand All @@ -29,6 +31,8 @@ func RegisterProjectTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("get_project",
mcp.WithDescription("Get a single Honeybadger project by ID"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("id",
mcp.Required(),
mcp.Description("The ID of the project to retrieve"),
Expand All @@ -44,6 +48,8 @@ func RegisterProjectTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("create_project",
mcp.WithDescription("Create a new Honeybadger project"),
mcp.WithReadOnlyHintAnnotation(false),
mcp.WithDestructiveHintAnnotation(true),
mcp.WithString("account_id",
mcp.Required(),
mcp.Description("The account ID to associate the project with"),
Expand Down Expand Up @@ -84,6 +90,8 @@ func RegisterProjectTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("update_project",
mcp.WithDescription("Update an existing Honeybadger project"),
mcp.WithReadOnlyHintAnnotation(false),
mcp.WithDestructiveHintAnnotation(true),
mcp.WithNumber("id",
mcp.Required(),
mcp.Description("The ID of the project to update"),
Expand Down Expand Up @@ -123,6 +131,8 @@ func RegisterProjectTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("delete_project",
mcp.WithDescription("Delete a Honeybadger project"),
mcp.WithReadOnlyHintAnnotation(false),
mcp.WithDestructiveHintAnnotation(true),
mcp.WithNumber("id",
mcp.Required(),
mcp.Description("The ID of the project to delete"),
Expand All @@ -138,6 +148,8 @@ func RegisterProjectTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("get_project_occurrence_counts",
mcp.WithDescription("Get occurrence counts for all projects or a specific project"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("project_id",
mcp.Description("Optional project ID to get occurrence counts for a specific project"),
mcp.Min(1),
Expand All @@ -159,6 +171,8 @@ func RegisterProjectTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("get_project_integrations",
mcp.WithDescription("Get a list of integrations (channels) for a Honeybadger project"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("project_id",
mcp.Required(),
mcp.Description("The ID of the project to get integrations for"),
Expand All @@ -174,6 +188,8 @@ func RegisterProjectTools(s *server.MCPServer, client *hbapi.Client) {
s.AddTool(
mcp.NewTool("get_project_report",
mcp.WithDescription("Get report data for a Honeybadger project"),
mcp.WithReadOnlyHintAnnotation(true),
mcp.WithDestructiveHintAnnotation(false),
mcp.WithNumber("project_id",
mcp.Required(),
mcp.Description("The ID of the project to get report data for"),
Expand Down
Loading