Skip to content

Commit 8fa8a02

Browse files
add tui
1 parent f29e44b commit 8fa8a02

File tree

10 files changed

+1064
-4
lines changed

10 files changed

+1064
-4
lines changed

docs/content/tools/_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: MCP/run Toolbox
2+
title: MCP/docker Toolbox
33
weight: 1
44
cascade:
55
type: docs
@@ -15,7 +15,7 @@ now be exposed as MCP servers without having to wrap each tool in an mcp server.
1515
flowchart LR
1616
desktop["Claude Desktop"]
1717
subgraph docker["Docker"]
18-
mcp["mcp/run"]
18+
mcp["mcp/docker"]
1919
end
2020
desktop --> docker
2121
docker -- extended by --- box1["Tools/Prompt Def (curl)"]

mcp-cli/.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

mcp-cli/flake.lock

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp-cli/flake.nix

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
description = "Go development environment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = nixpkgs.legacyPackages.${system};
13+
in
14+
{
15+
devShells.default = pkgs.mkShell {
16+
buildInputs = with pkgs; [
17+
# Go compiler and tools
18+
go
19+
gopls # Go language server
20+
go-tools # Additional Go tools
21+
delve # Go debugger
22+
golangci-lint # Linter
23+
];
24+
25+
shellHook = ''
26+
echo "🚀 Welcome to Go development environment!"
27+
echo "Available tools:"
28+
echo " - go (compiler)"
29+
echo " - gopls (language server)"
30+
echo " - golangci-lint (linter)"
31+
echo " - delve (debugger)"
32+
'';
33+
};
34+
});
35+
}

mcp-cli/go.mod

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
module docker.com/mcp
2+
3+
go 1.23.4
4+
5+
require (
6+
github.com/charmbracelet/bubbles v0.20.0
7+
github.com/charmbracelet/bubbletea v1.2.4
8+
github.com/charmbracelet/lipgloss v1.0.0
9+
github.com/docker/cli v27.4.1+incompatible
10+
github.com/docker/docker v27.5.1+incompatible
11+
github.com/docker/go-connections v0.4.0
12+
github.com/opencontainers/image-spec v1.1.0
13+
github.com/spf13/cobra v1.8.1
14+
)
15+
16+
require (
17+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
18+
github.com/Microsoft/go-winio v0.6.1 // indirect
19+
github.com/beorn7/perks v0.0.0-20150223135152-b965b613227f // indirect
20+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
21+
github.com/containerd/log v0.1.0 // indirect
22+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
23+
github.com/distribution/reference v0.6.0 // indirect
24+
github.com/docker/distribution v2.8.3+incompatible // indirect
25+
github.com/docker/docker-credential-helpers v0.8.2 // indirect
26+
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c // indirect
27+
github.com/docker/go-metrics v0.0.0-20180209012529-399ea8c73916 // indirect
28+
github.com/docker/go-units v0.5.0 // indirect
29+
github.com/felixge/httpsnoop v1.0.4 // indirect
30+
github.com/fvbommel/sortorder v1.1.0 // indirect
31+
github.com/go-logr/logr v1.4.2 // indirect
32+
github.com/go-logr/stdr v1.2.2 // indirect
33+
github.com/gogo/protobuf v1.3.2 // indirect
34+
github.com/golang/protobuf v1.5.4 // indirect
35+
github.com/google/uuid v1.6.0 // indirect
36+
github.com/gorilla/mux v1.7.0 // indirect
37+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 // indirect
38+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
39+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
40+
github.com/miekg/pkcs11 v1.0.2 // indirect
41+
github.com/moby/docker-image-spec v1.3.1 // indirect
42+
github.com/moby/sys/sequential v0.6.0 // indirect
43+
github.com/moby/term v0.5.2 // indirect
44+
github.com/morikuni/aec v1.0.0 // indirect
45+
github.com/opencontainers/go-digest v1.0.0 // indirect
46+
github.com/pkg/errors v0.9.1 // indirect
47+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
48+
github.com/prometheus/client_golang v0.9.0-pre1.0.20180209125602-c332b6f63c06 // indirect
49+
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 // indirect
50+
github.com/prometheus/common v0.0.0-20180110214958-89604d197083 // indirect
51+
github.com/prometheus/procfs v0.0.0-20180125133057-cb4147076ac7 // indirect
52+
github.com/sirupsen/logrus v1.9.3 // indirect
53+
github.com/theupdateframework/notary v0.7.0 // indirect
54+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
55+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
56+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.34.0 // indirect
57+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect
58+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect
59+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.34.0 // indirect
60+
go.opentelemetry.io/otel/metric v1.34.0 // indirect
61+
go.opentelemetry.io/otel/sdk v1.34.0 // indirect
62+
go.opentelemetry.io/otel/sdk/metric v1.34.0 // indirect
63+
go.opentelemetry.io/otel/trace v1.34.0 // indirect
64+
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
65+
golang.org/x/crypto v0.32.0 // indirect
66+
golang.org/x/mod v0.17.0 // indirect
67+
golang.org/x/net v0.34.0 // indirect
68+
golang.org/x/sync v0.10.0 // indirect
69+
golang.org/x/sys v0.29.0 // indirect
70+
golang.org/x/term v0.28.0 // indirect
71+
golang.org/x/text v0.21.0 // indirect
72+
golang.org/x/time v0.9.0 // indirect
73+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
74+
google.golang.org/genproto/googleapis/api v0.0.0-20250115164207-1a7da9e5054f // indirect
75+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
76+
google.golang.org/grpc v1.69.4 // indirect
77+
google.golang.org/protobuf v1.36.3 // indirect
78+
gotest.tools/v3 v3.5.1 // indirect
79+
)
80+
81+
require (
82+
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
83+
github.com/charmbracelet/x/ansi v0.4.5 // indirect
84+
github.com/charmbracelet/x/term v0.2.1 // indirect
85+
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
86+
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
87+
github.com/mattn/go-isatty v0.0.20 // indirect
88+
github.com/mattn/go-localereader v0.0.1 // indirect
89+
github.com/mattn/go-runewidth v0.0.16 // indirect
90+
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
91+
github.com/muesli/cancelreader v0.2.2 // indirect
92+
github.com/muesli/termenv v0.15.2 // indirect
93+
github.com/rivo/uniseg v0.4.7 // indirect
94+
github.com/spf13/pflag v1.0.5 // indirect
95+
go.opentelemetry.io/otel v1.34.0 // indirect
96+
)

0 commit comments

Comments
 (0)