Add MCP server command for poutine analysis tools#314
Closed
fproulx-boostsecurity wants to merge 1 commit into
Closed
Add MCP server command for poutine analysis tools#314fproulx-boostsecurity wants to merge 1 commit into
fproulx-boostsecurity wants to merge 1 commit into
Conversation
SUSTAPLE117
reviewed
Jun 9, 2025
| "analyze_org", | ||
| mcp.WithDescription("Analyzes all repositories in an organization."), | ||
| mcp.WithString("github_org", mcp.Required(), mcp.Description("The slug of the GitHub organization to analyze.")), | ||
| mcp.WithString("threads", mcp.Description("Number of concurrent analyzers to run. Defaults to 4.")), // Define as string |
Contributor
There was a problem hiding this comment.
Why string can just use an integer?
SUSTAPLE117
reviewed
Jun 9, 2025
| Token = viper.GetString("token") | ||
| ctx := cmd.Context() | ||
| s := server.NewMCPServer("poutine", Version) | ||
| analyzer, err := GetAnalyzer(ctx, "") |
Contributor
There was a problem hiding this comment.
@fproulx-boostsecurity yeah initializing poutine this way won't work properly because it looks for vars already assigned in the root cmd to set scm params and stuff, to make it not be hardcoded to just Github we will have to bring all those root params here and have them exposed in the mcp server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a new command to start the Model Context Protocol (MCP) server, enabling analysis of repositories and organizations for supply chain vulnerabilities and stale branches. Include detailed command usage and configuration examples.