Skip to content
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
2 changes: 0 additions & 2 deletions internal/ghmcp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ type MCPServerConfig struct {
Logger *slog.Logger
}

const stdioServerLogPrefix = "stdioserver"

func NewMCPServer(cfg MCPServerConfig) (*mcp.Server, error) {
apiHost, err := parseAPIHost(cfg.Host)
if err != nil {
Expand Down
30 changes: 15 additions & 15 deletions pkg/github/__toolsnaps__/get_code_scanning_alert.snap
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"annotations": {
"title": "Get code scanning alert",
"readOnlyHint": true
"readOnlyHint": true,
"title": "Get code scanning alert"
},
"description": "Get details of a specific code scanning alert in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"alertNumber"
],
"properties": {
"alertNumber": {
"description": "The number of the alert.",
"type": "number"
"type": "number",
"description": "The number of the alert."
},
"owner": {
"description": "The owner of the repository.",
"type": "string"
"type": "string",
"description": "The owner of the repository."
},
"repo": {
"description": "The name of the repository.",
"type": "string"
"type": "string",
"description": "The name of the repository."
}
},
"required": [
"owner",
"repo",
"alertNumber"
],
"type": "object"
}
},
"name": "get_code_scanning_alert"
}
42 changes: 21 additions & 21 deletions pkg/github/__toolsnaps__/list_code_scanning_alerts.snap
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{
"annotations": {
"title": "List code scanning alerts",
"readOnlyHint": true
"readOnlyHint": true,
"title": "List code scanning alerts"
},
"description": "List code scanning alerts in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo"
],
"properties": {
"owner": {
"description": "The owner of the repository.",
"type": "string"
"type": "string",
"description": "The owner of the repository."
},
"ref": {
"description": "The Git reference for the results you want to list.",
"type": "string"
"type": "string",
"description": "The Git reference for the results you want to list."
},
"repo": {
"description": "The name of the repository.",
"type": "string"
"type": "string",
"description": "The name of the repository."
},
"severity": {
"type": "string",
"description": "Filter code scanning alerts by severity",
"enum": [
"critical",
Expand All @@ -28,30 +34,24 @@
"warning",
"note",
"error"
],
"type": "string"
]
},
"state": {
"default": "open",
"type": "string",
"description": "Filter code scanning alerts by state. Defaults to open",
"default": "open",
"enum": [
"open",
"closed",
"dismissed",
"fixed"
],
"type": "string"
]
},
"tool_name": {
"description": "The name of the tool used for code scanning.",
"type": "string"
"type": "string",
"description": "The name of the tool used for code scanning."
}
},
"required": [
"owner",
"repo"
],
"type": "object"
}
},
"name": "list_code_scanning_alerts"
}
Loading
Loading