Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg *config.Config, opts ...ServerOption) *mcpsdk.Server

NewServer constructs and registers tools for an MCP server instance. By default, the git_iter_do and git_iter_get tools are disabled unless enabled via options.

Types

type DiffToolInput

type DiffToolInput = tool.DiffToolInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type DiffToolOutput

type DiffToolOutput = tool.DiffToolOutput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type DoToolInput

type DoToolInput = tool.DoToolInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type DoToolOutput

type DoToolOutput = tool.DoToolOutput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type GetToolInput added in v0.3.0

type GetToolInput = tool.GetToolInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type GetToolOutput added in v0.3.0

type GetToolOutput = tool.GetToolOutput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type GrepToolInput

type GrepToolInput = tool.GrepToolInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type GrepToolOutput

type GrepToolOutput = tool.GrepToolOutput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type ListToolsInput

type ListToolsInput = tool.ListToolsInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type ListToolsOutput

type ListToolsOutput = tool.ListToolsOutput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type LsFilesToolInput

type LsFilesToolInput = tool.LsFilesToolInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type LsFilesToolOutput

type LsFilesToolOutput = tool.LsFilesToolOutput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type ProcessExecInput added in v0.2.0

type ProcessExecInput = tool.ProcessExecInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type RepoDiscoveryInput added in v0.2.0

type RepoDiscoveryInput = tool.RepoDiscoveryInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type RepoStatusFilterInput added in v0.2.0

type RepoStatusFilterInput = tool.RepoStatusFilterInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type ServerOption

type ServerOption func(*serverConfig)

ServerOption configures an MCP server instance.

func WithEnableDo

func WithEnableDo(enable bool) ServerOption

WithEnableDo enables the git_iter_do tool on the MCP server.

func WithEnableGet added in v0.3.0

func WithEnableGet(enable bool) ServerOption

WithEnableGet enables the git_iter_get tool on the MCP server.

type StatusToolInput

type StatusToolInput = tool.StatusToolInput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

type StatusToolOutput

type StatusToolOutput = tool.StatusToolOutput

Type aliases for tool input and output DTOs moved to internal/mcp/tool.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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