Skip to content

feat(mcp): Add basic Docker MCP support - #531

Merged
shivasurya merged 1 commit into
mainfrom
pr-01-docker-mcp-basic-support
Feb 16, 2026
Merged

shivasurya merged 1 commit into
mainfrom
pr-01-docker-mcp-basic-support

Conversation

@shivasurya

Copy link
Copy Markdown
Owner

Summary

Extend MCP's find_symbol tool to recognize Docker node types, enabling basic Docker file queries.

Changes

  • Add dockerfile_instruction and compose_service to validTypes map
  • Add LSP Symbol Kind mapping for Docker types
  • Include Docker statistics in get_index_info response

Testing

100% coverage, manual MCP queries verified with test Docker files

Depends On

None (foundation PR)

@shivasurya shivasurya added the enhancement New feature or request label Feb 16, 2026
@safedep

safedep Bot commented Feb 16, 2026 •

Copy link
Copy Markdown

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

This report is generated by SafeDep Github App

@shivasurya shivasurya self-assigned this Feb 16, 2026
@codecov

codecov Bot commented Feb 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.78%. Comparing base (b3dad5b) to head (1014ea8).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #531      +/-   ##
==========================================
+ Coverage   82.75%   82.78%   +0.02%     
==========================================
  Files         133      133              
  Lines       15666    15692      +26     
==========================================
+ Hits        12965    12991      +26     
  Misses       2221     2221              
  Partials      480      480              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Feb 16, 2026 •

Copy link
Copy Markdown

Code Pathfinder Security Scan

Issues Found Critical High Medium Low Info

Findings

Severity File Line Issue
🟠 High sast-engine/testdata/docker-project/Dockerfile 1 Missing Image Version 🔗
🟡 Medium sast-engine/testdata/docker-project/Dockerfile 11 Multiple CMD Instructions 🔗
🟡 Medium sast-engine/testdata/docker-project/Dockerfile 4 Sudo Usage in Dockerfile 🔗
🟡 Medium sast-engine/testdata/docker-project/Dockerfile 6 Sudo Usage in Dockerfile 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 1 Dockerfile Source Not Pinned 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 4 Nonsensical Command 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 6 Nonsensical Command 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 4 Nonsensical Command 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 6 Nonsensical Command 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 4 Prefer apt-get over apt 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 6 Prefer apt-get over apt 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 11 Prefer JSON Notation for CMD/ENTRYPOINT 🔗
🔵 Low sast-engine/testdata/docker-project/Dockerfile 2 Use Absolute Path in WORKDIR 🔗
Metric Value
Files Scanned 4
Rules 38

Powered by Code Pathfinder

Comment thread sast-engine/testdata/docker-project/Dockerfile
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
Comment thread sast-engine/testdata/docker-project/Dockerfile Dismissed
@shivasurya shivasurya changed the title Add basic Docker MCP support feat(mcp): Add basic Docker MCP support Feb 16, 2026
Extend MCP's find_symbol tool to recognize Docker node types, enabling
basic Docker file queries through the existing MCP infrastructure.

Changes:
- Add dockerfile_instruction and compose_service to validTypes map
- Add LSP Symbol Kind mapping for Docker types (Constant=14, Module=2)
- Include Docker statistics in get_index_info response
- Add comprehensive unit tests with 95.4% coverage
- Create test fixtures for integration testing

This enables:
- Querying Dockerfile instructions via find_symbol(type="dockerfile_instruction")
- Querying docker-compose services via find_symbol(type="compose_service")
- Docker statistics in index info (docker_instructions, compose_services)

Foundation for PR-02 (semantic Docker queries) and PR-03 (dependency graph).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@shivasurya
shivasurya force-pushed the pr-01-docker-mcp-basic-support branch from ed049da to 1014ea8 Compare February 16, 2026 03:11

shivasurya commented Feb 16, 2026 •

Copy link
Copy Markdown
Owner Author

@shivasurya
shivasurya merged commit dc80832 into main Feb 16, 2026
7 checks passed
@shivasurya
shivasurya deleted the pr-01-docker-mcp-basic-support branch February 16, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants