Conversation
Major new capability: comprehensive MCP (Model Context Protocol) server testing via `nuts mcp` subcommands. This is the differentiating feature that makes nuts the first CLI tool purpose-built for MCP testing. New modules: - src/mcp/ - Full MCP client (stdio/SSE/HTTP transports), test runner with YAML-based test definitions, AI test generation, 4-phase security scanner, performance benchmarking, and snapshot regression testing - src/ai/ - Centralized AI service with provider abstraction, 15+ prompt templates for test generation, security scanning, and analysis - src/output/ - Rich terminal rendering with semantic colors, JSON syntax highlighting, test result badges, and security report formatting - src/error.rs - Unified error type with miette diagnostics MCP subcommands: connect, discover, test, generate, security, perf, snapshot 152 tests, 0 failures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds --bearer flag to all MCP subcommands for authenticated server connections. HTTP transport uses StreamableHttpClientTransportConfig auth_header. SSE transport warns that auth isn't supported (rmcp limitation). Also renames --env to --set-env to avoid clap conflict with global --env flag. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…output - Replace all hardcoded claude-3-sonnet-20240229 with claude-sonnet-4-5-20250929 - Replace all hardcoded claude-3-haiku-20240307 with claude-haiku-4-5-20251001 - Upgrade security command with comprehensive compliance analysis (OWASP, SOC2, PCI DSS, ISO 27001, NIST CSF, GDPR/CCPA) and certification readiness scores - Upgrade MCP security prompts with 6 attack categories and compliance mapping - Increase security scan max_tokens from 1000 to 8192 for detailed reports - Add colorful render_discovery() for MCP server capabilities - Add colorful render_perf_report() for performance test results - Add colorful render_snapshot_capture() and render_snapshot_compare() - Update website with MCP testing documentation and feature cards Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis pull request introduces a comprehensive AI-powered Model Context Protocol (MCP) testing and analysis suite. The changes add an AI integration layer with provider abstraction and prompting, a full MCP client with discovery, testing, performance profiling, security scanning, and snapshot capabilities, centralized error handling via Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI as CLI / Main
participant Cmd as Commands
participant MCP as MCP Client
participant Server as MCP Server
participant AI as AI Service
participant Out as Output/Renderer
User->>CLI: nuts mcp discover --stdio "command"
CLI->>Cmd: dispatch to mcp_discover
Cmd->>MCP: connect_stdio(command)
MCP->>Server: establish transport
Cmd->>MCP: discover()
MCP->>Server: ListTools, ListResources, ListPrompts
Server-->>MCP: ServerCapabilities
Cmd->>Out: render_discovery(capabilities)
Out-->>User: formatted server info, tools, resources
User->>CLI: nuts mcp security --http https://api/mcp
CLI->>Cmd: dispatch to mcp_security
Cmd->>MCP: connect_http(url)
MCP->>Server: establish HTTP transport
Cmd->>MCP: list_tools()
Server-->>MCP: [Tool{name, schema}]
Cmd->>AI: security_scan(client, ai_service)
AI->>MCP: call_tool(with adversarial inputs)
Server-->>MCP: ToolResult
AI->>AI: analyze_schema, probe_tool, analyze_resources
AI->>AI: ai_analyze_tools (via AiService)
AI-->>Cmd: SecurityReport{findings, risk_level}
Cmd->>Out: render_security_report(report)
Out-->>User: colorized findings, severity, recommendations
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Suggested labels
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔍 General Code Quality Feedback🔍 Comprehensive Code ReviewConsolidated Feedback
Overall Assessment: The pull request introduces significant changes across multiple files, enhancing the AI capabilities of the NUTS framework. However, the lack of a detailed description and potential gaps in testing and documentation raise concerns about maintainability and quality assurance. Critical Issues:
Improvements:
Positive Notes:
Next Steps:
By addressing these critical issues and improvements, the quality and maintainability of the codebase will be significantly enhanced, reducing the risk of bugs and security vulnerabilities in production. 🤖 Generated by Wellcode.ai |
Code Quality ReportOverall Score: 69/100 | Efficiency: 74 | Quality: 67 | Wellness: 65 SummaryThis pull request shows good development practices with room for improvement in some areas. The work aligns well with team standards and contributes to project health. Key Metrics
Work Analysis
Recommendations
Developer Progress• Recent: 78 PRs merged, 56450 lines changed Team Performance🏆 Team Leaderboard
Generated by Wellcode.ai • View detailed report → |
Summary by CodeRabbit
Release Notes