Skip to content

Add go:// transport protocol for golang containers#269

Merged
ChrisJBurns merged 1 commit intomainfrom
add-go-transport
Apr 24, 2025
Merged

Add go:// transport protocol for golang containers#269
ChrisJBurns merged 1 commit intomainfrom
add-go-transport

Conversation

@JAORMX
Copy link
Copy Markdown
Collaborator

@JAORMX JAORMX commented Apr 24, 2025

This PR adds support for the go:// transport protocol, which allows running Go-based MCP servers using the Go toolchain.

Changes

  • Added a new template file pkg/container/templates/go.tmpl that uses the golang:1.24-alpine image
  • Added a new transport type constant TransportTypeGO in the templates package
  • Updated the template handling functions to support the new go transport type
  • Added a new protocol scheme constant GOScheme in the run_protocol.go file
  • Updated the protocol scheme handling to support the new go:// protocol
  • Updated the help text in run.go to include the new go:// protocol in the documentation
  • Updated the README.md to include information about the new go:// protocol
  • Added tests for the new go transport type

Example Usage

thv run go://github.com/example/go-mcp-server@latest

This will automatically generate a container that runs the specified Go package using the Go toolchain.

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
@JAORMX JAORMX force-pushed the add-go-transport branch from 01bee00 to 37b7155 Compare April 24, 2025 13:42
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