Skip to content

Conversation

peteski22
Copy link
Contributor

@peteski22 peteski22 commented Jun 4, 2025

Summary:

  • Setup Go CLI project
  • Add Makefile
  • Add Cobra framework for CLI
  • Add commands
    • mcpd init
    • mcpd add
    • mcpd remove
  • Add tests (add, remove and internal config tests) make test

Apologies for leaving some TODO in here, but I wanted to get some of the updates PR'd into main.

Setup:

  • Run make build to build the binary in your project folder
  • Use the CLI build artifact with ./mcpd --help (or install it with sudo make install then you can use it anywhere)

Examples:

export LOG_LEVEL=DEBUG
export MCPD_LOG_PATH="/tmp/mcpd.log"

./mcpd init

cat .mcpd.toml # to follow changes to the config file (in the default location)
tail -f /tmp/mcpd.log # to follow the log file


./mcpd add my-server
./mcpd add my-server2 --version 2.0.3
./mcpd add my-server3 --version 2.0.3 --tool tool-1 --tool tool-2

./mcpd remve my-server2

Config file example:

[[servers]]
  name = "my-server"
  package = "modelcontextprotocol/my-server@latest"

[[servers]]
  name = "my-server2"
  package = "modelcontextprotocol/my-server2@2.0.3"

[[servers]]
  name = "my-server3"
  package = "modelcontextprotocol/my-server3@2.0.3"
  tools = ["tool-1", "tool-2"]

Requirements:

Go 1.24.3

Optional:

For pretty display of the config file

brew install entr
brew install bat

ls .mcpd.toml | entr sh -c "clear; bat .mcpd.toml"

image

peteski22 added 2 commits June 4, 2025 22:54
* Setup CLI project
* Add Makefile
* Add Cobra framework for CLI
* Add commands: init, add, remove
* Add tests
@peteski22 peteski22 requested a review from agpituk June 4, 2025 22:11
@peteski22 peteski22 merged commit 7b092a8 into main Jun 5, 2025
@peteski22 peteski22 deleted the peteski22/project-setup branch June 11, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants