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
feat: adds linter and resolves issues & creates dedicated PR and main branch pipelines (#38)
* feat: adds linter and adds separate pipelines
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
* indent
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
* resolves some lint issues
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
* Potential fix for code scanning alert no. 8: Workflow does not contain permissions
Thank you Mr Bot.
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* Potential fix for code scanning alert no. 11: Workflow does not contain permissions
Thank you Mr Bot.
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* removes ci file as deprecated:
removes ci actions as deprecated for "run-on-pr.yml" and
"run-on-main.yml"
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
* fix: addresses lint issues
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
---------
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: cmd/server/main.go
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
// Package main provides the entry point for the mkp server application
1
2
package main
2
3
3
4
import (
@@ -17,9 +18,12 @@ func main() {
17
18
// Parse command line flags
18
19
kubeconfig:=flag.String("kubeconfig", "", "Path to kubeconfig file. If not provided, in-cluster config will be used")
19
20
addr:=flag.String("addr", ":8080", "Address to listen on")
20
-
serveResources:=flag.Bool("serve-resources", false, "Whether to serve cluster resources as MCP resources. Setting to false can reduce context size for LLMs when working with large clusters")
21
-
readWrite:=flag.Bool("read-write", false, "Whether to allow write operations on the cluster. When false, the server operates in read-only mode")
22
-
kubeconfigRefreshInterval:=flag.Duration("kubeconfig-refresh-interval", 0, "Interval to periodically re-read the kubeconfig (e.g., 5m for 5 minutes). If 0, no refresh will be performed")
0 commit comments