Skip to content

Add MCP server command for poutine analysis tools #314

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fproulx-boostsecurity
Copy link
Contributor

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.

@fproulx-boostsecurity fproulx-boostsecurity requested a review from a team as a code owner June 6, 2025 22:12
@fproulx-boostsecurity fproulx-boostsecurity marked this pull request as draft June 6, 2025 22:13
"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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why string can just use an integer?

Token = viper.GetString("token")
ctx := cmd.Context()
s := server.NewMCPServer("poutine", Version)
analyzer, err := GetAnalyzer(ctx, "")
Copy link
Contributor

@SUSTAPLE117 SUSTAPLE117 Jun 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants