You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: refactor README.md with improved structure and formatting
- Enhanced introduction with clearer value proposition
- Added emojis and better visual hierarchy
- Reorganized sections with improved flow
- Created structured tables for tool parameters
- Added advanced features section with security highlights
- Improved code examples and formatting
- Streamlined installation and configuration sections
A Model Context Protocol (MCP) server for Kubernetes debugging and inspection. This server provides read-only access to Kubernetes resources without the ability to create or modify them, making it safe for debugging and monitoring purposes.
7
+
A Model Context Protocol (MCP) server that provides safe, read-only access to Kubernetes resources for debugging and inspection. Built with security in mind, it offers comprehensive cluster visibility without modification capabilities.
10
8
11
9
## Features
12
10
13
-
-**Read-only access**: Safely inspect Kubernetes resources without modification capabilities
14
-
-**CRD support**: Works with any Custom Resource Definitions (CRDs) in your cluster
15
-
-**Substring search**: Discover resources by API group substring (e.g., "flux" for FluxCD, "argo" for ArgoCD)
16
-
-**Built-in tools**:
17
-
-`list_resources`: List and filter Kubernetes resources
11
+
-**π Read-only security**: Safely inspect Kubernetes resources without modification capabilities
12
+
-**π― CRD support**: Works seamlessly with any Custom Resource Definitions in your cluster
13
+
-**π Smart discovery**: Find resources by API group substring (e.g., "flux" for FluxCD, "argo" for ArgoCD)
14
+
-**β‘ High performance**: Efficient resource querying with filtering and pagination
15
+
-**π οΈ Comprehensive toolset**:
16
+
-`list_resources`: List and filter Kubernetes resources with advanced options
18
17
-`describe_resource`: Get detailed information about specific resources
19
-
-`get_pod_logs`: Retrieve pod logs with advanced filtering
18
+
-`get_pod_logs`: Retrieve pod logs with sophisticated filtering capabilities
20
19
21
-
## Installation
20
+
## π Quick Start
22
21
23
22
### Prerequisites
24
23
25
-
- Access to a Kubernetes cluster (kubeconfig required)
24
+
- Kubernetes cluster access with a valid kubeconfig file
25
+
- Go 1.24+ (for building from source)
26
26
27
-
### Option 1: Install with Go
27
+
### Installation Options
28
28
29
-
If you have Go installed, this is the easiest way:
29
+
#### Option 1: Install with Go (Recommended)
30
30
31
31
```bash
32
32
go install github.com/kkb0318/kubernetes-mcp@latest
33
33
```
34
34
35
-
The binary will be installed to `$GOPATH/bin/kubernetes-mcp` (or `$HOME/go/bin/kubernetes-mcp` if `GOPATH` is not set).
36
-
37
-
### Option 2: Build from source
38
-
39
-
If you prefer to build from source:
35
+
The binary will be available at `$GOPATH/bin/kubernetes-mcp` (or `$HOME/go/bin/kubernetes-mcp` if `GOPATH` is not set).
|`showDetails`| optional | Return full resource objects instead of summary |
107
106
108
-
**Example usage:**
107
+
**Examples:**
109
108
```json
109
+
// List pods with label selector
110
110
{
111
111
"kind": "Pod",
112
112
"namespace": "default",
113
113
"labelSelector": "app=nginx"
114
114
}
115
-
```
116
115
117
-
**Discovery mode:**
118
-
```json
116
+
// Discover FluxCD resources
119
117
{
120
118
"kind": "all",
121
119
"groupFilter": "flux"
122
120
}
123
121
```
124
122
125
-
### 2. `describe_resource`
126
-
127
-
Get detailed information about a specific resource.
123
+
### `describe_resource`
124
+
Get detailed information about a specific Kubernetes resource.
128
125
129
-
**Parameters:**
130
-
-`kind` (required): Resource type
131
-
-`name` (required): Resource name
132
-
-`namespace` (optional): Target namespace
126
+
| Parameter | Type | Description |
127
+
|-----------|------|-------------|
128
+
|`kind`|**required**| Resource type (Pod, Deployment, etc.) |
129
+
|`name`|**required**| Resource name |
130
+
|`namespace`| optional | Target namespace |
133
131
134
-
**Example usage:**
132
+
**Example:**
135
133
```json
136
134
{
137
135
"kind": "Pod",
@@ -140,58 +138,59 @@ Get detailed information about a specific resource.
140
138
}
141
139
```
142
140
143
-
### 3. `get_pod_logs`
144
-
145
-
Retrieve pod logs with various filtering options.
146
-
147
-
**Parameters:**
148
-
-`name`(required): Pod name
149
-
-`namespace`(optional): Pod namespace (defaults to "default")
150
-
-`container`(optional): Specific container name
151
-
-`tail`(optional): Number of lines from the end (default: 100)
152
-
-`since`(optional): Duration like "5s", "2m", "3h"
153
-
-`sinceTime`(optional): RFC3339 timestamp
154
-
-`timestamps`(optional): Include timestamps
155
-
-`previous`(optional): Get logs from previous container instance
156
-
157
-
**Example usage:**
141
+
### `get_pod_logs`
142
+
Retrieve pod logs with sophisticated filtering options.
143
+
144
+
| Parameter | Type | Description |
145
+
|-----------|------|-------------|
146
+
|`name`|**required**|Pod name|
147
+
|`namespace`|optional|Pod namespace (defaults to "default")|
148
+
|`container`|optional|Specific container name|
149
+
|`tail`|optional|Number of lines from the end (default: 100)|
150
+
|`since`|optional|Duration like "5s", "2m", "3h"|
151
+
|`sinceTime`|optional|RFC3339 timestamp|
152
+
|`timestamps`|optional|Include timestamps in output |
153
+
|`previous`|optional|Get logs from previous container instance|
154
+
155
+
**Example:**
158
156
```json
159
157
{
160
158
"name": "nginx-pod",
161
159
"namespace": "default",
162
160
"tail": 50,
163
-
"since": "5m"
161
+
"since": "5m",
162
+
"timestamps": true
164
163
}
165
164
```
166
165
167
-
## Key Features
168
-
169
-
### CRD Support
166
+
## π Advanced Features
170
167
171
-
The server automatically discovers and works with any Custom Resource Definitions in your cluster. Simply use the CRD's Kind name with the `list_resources` or `describe_resource` tools.
172
-
173
-
### Resource Discovery
168
+
### π― Custom Resource Definition (CRD) Support
169
+
Automatically discovers and works with any CRDs in your cluster. Simply use the CRD's Kind name with `list_resources` or `describe_resource` tools.
174
170
171
+
### π Smart Resource Discovery
175
172
Use the `groupFilter` parameter to discover resources by API group substring:
0 commit comments