-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add NuGet package support and Docker volume mounting #9
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
Conversation
…iles - Added NuGet package resolver to support #r directives - Updated Dockerfile to use SDK image for NuGet resolution - Added Docker volume mounting in .mcp.json for file access - Added --pull=always to ensure latest image is used - Enhanced ScriptOptions with source and metadata resolvers - Added test scripts and examples 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- Organized all .csx example files into dedicated examples directory - Cleaner project root structure 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- Organized examples into categorized directories - Added README and expected output for each example - Created test suite to validate all examples - Examples cover: basic execution, Fibonacci, data processing, NuGet packages 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- CSX_ALLOWED_PATH restriction now only applies when NOT in Docker - Docker containers use volume mounts for file access control - Fixed example tests to handle dynamic content and ordering - NuGet test properly skips when packages can't be resolved 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- Return detailed errors when NuGet packages fail to resolve - Validate #r directive syntax and report malformed directives - Handle both missing packages and invalid versions gracefully - Update tool description to mention NuGet support 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
…tion - Create comprehensive NUnit example with Calculator and StringUtils tests - Demonstrate test fixtures, setup methods, and assertions - Show programmatic test execution without external test runner - Include expected output for test validation - Update ExamplesTests to dynamically discover example directories 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add NuGet package support to features list - Document #r directive usage with examples - Include links to all example directories - Update Claude Code configuration with volume mounting - Expand project structure to show NuGetPackageResolver - Add all newly supported namespaces to documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude finished @ElanHasson's task —— View job PR Code Review CompleteReviewing PR #9: feat: Add NuGet package support and Docker volume mounting Review Checklist:
Overall AssessmentThis PR adds substantial functionality to enable NuGet package support and Docker volume mounting. The implementation is generally solid but has several security, performance, and code quality concerns that should be addressed. 🔒 Security ConcernsCritical Issues
Medium Risk Issues
🚀 Performance Concerns
🧪 Test Coverage AssessmentStrengths
Gaps
💻 Code Quality Issues
📁 Docker ConfigurationIssues
📚 Documentation & ExamplesStrengths
Minor Issues
🔧 Specific RecommendationsHigh Priority
Medium Priority
Low Priority
✅ Positive Aspects
Final RecommendationConditional Approval - The functionality is valuable and well-implemented overall, but the security concerns (particularly Docker volume mounting and package validation) should be addressed before merging to production environments. The code quality is good with room for improvement in error handling and testing. Consider this a solid foundation that needs security hardening. |
- Skip path restriction test when running in Docker container - Fix syntax error in CSharpEvalTools async task creation - Docker sets DOTNET_RUNNING_IN_CONTAINER=true which bypasses path checks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @ElanHasson's task —— View job PR Code Review CompleteReviewing PR #9: feat: Add NuGet package support and Docker volume mounting Review Checklist:
Overall AssessmentThis PR adds substantial functionality to enable NuGet package support and Docker volume mounting. The implementation is generally solid but has several security, performance, and code quality concerns that should be addressed. 🔒 Security ConcernsCritical Issues
Medium Risk Issues
🚀 Performance Concerns
🧪 Test Coverage AssessmentStrengths
Gaps
💻 Code Quality Issues
📁 Docker ConfigurationIssues
📚 Documentation & ExamplesStrengths
Minor Issues
🔧 Specific RecommendationsHigh Priority
Medium Priority
Low Priority
✅ Positive Aspects
Final RecommendationConditional Approval - The functionality is valuable and well-implemented overall, but the security concerns (particularly Docker volume mounting and package validation) should be addressed before merging to production environments. The code quality is good with room for improvement in error handling and testing. Consider this a solid foundation that needs security hardening. |
Summary
#r "nuget: PackageName, Version"directivesKey Changes
NuGet Package Support
NuGetPackageResolverclass for downloading and resolving NuGet packagesDocker Enhancements
.mcp.jsonconfiguration--pull=alwaysflag to ensure latest imageExamples & Testing
Documentation
Test Results
✅ All 23 tests passing
Breaking Changes
None - all existing functionality preserved
🤖 Generated with Claude Code