Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #119 +/- ##
==========================================
+ Coverage 46.73% 49.20% +2.46%
==========================================
Files 53 58 +5
Lines 7012 7650 +638
==========================================
+ Hits 3277 3764 +487
- Misses 3606 3739 +133
- Partials 129 147 +18 ☔ View full report in Codecov by Sentry. |
# Conflicts: # go.mod
There was a problem hiding this comment.
Pull Request Overview
This PR adds a comprehensive MCP (Model Context Protocol) server implementation to kat, enabling AI agents to programmatically interact with Kubernetes manifests through structured APIs.
- Adds MCP server with
list_resourcesandget_resourcetools for AI interaction - Implements distributed tracing support with OpenTelemetry for debugging and observability
- Refactors command execution to use context-aware patterns throughout the codebase
Reviewed Changes
Copilot reviewed 26 out of 28 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/mcp/*.go | New MCP server implementation with tools for listing and retrieving Kubernetes resources |
| pkg/ui/ui.go | Updates UI event handling to support new MCP events and context-aware command execution |
| pkg/command/*.go | Refactors command runner to use context and adds new event types for MCP integration |
| pkg/log/log.go | Adds context-aware logging with trace ID support for distributed tracing |
| internal/cli/run.go | Integrates MCP server startup and OpenTelemetry tracing configuration |
| docs/mcp.md | Documentation for MCP server usage and security considerations |
Comments suppressed due to low confidence (1)
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
c5c088f to
4798f28
Compare
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.
See docs/mcp.md for details.