mcp

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoEnroll

func AutoEnroll(ctx context.Context, addr, configDir string) (certPath, keyPath, caPath string, err error)

AutoEnroll registers with jniservice if no certs exist in configDir. It connects using TLS with InsecureSkipVerify (no client cert needed for Register). Returns paths to the cert, key, and CA files.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server wraps the go-sdk MCP server, providing tool and resource registrations that bridge MCP clients to the jniservice gRPC backend.

func NewServer

func NewServer(conn *grpc.ClientConn, log *slog.Logger) *Server

NewServer creates the MCP server and registers all tools and resources.

func (*Server) MCPServer

func (s *Server) MCPServer() *gomcp.Server

MCPServer returns the underlying go-sdk MCP server for transport wiring.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the MCP server with the stdio transport, blocking until the context is cancelled or the client disconnects.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL