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

mcp

package
v0.4.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, mutating tools (git_iter_do, git_iter_get, and git_iter_worktree_add/remove/prune) 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.

func WithEnableWorktree added in v0.4.0

func WithEnableWorktree(enable bool) ServerOption

WithEnableWorktree enables mutating worktree tools (add, remove, prune) 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.

type WorktreeAddToolInput added in v0.4.0

type WorktreeAddToolInput = tool.WorktreeAddToolInput

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

type WorktreeAddToolOutput added in v0.4.0

type WorktreeAddToolOutput = tool.WorktreeAddToolOutput

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

type WorktreeListToolInput added in v0.4.0

type WorktreeListToolInput = tool.WorktreeListToolInput

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

type WorktreeListToolOutput added in v0.4.0

type WorktreeListToolOutput = tool.WorktreeListToolOutput

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

type WorktreePruneToolInput added in v0.4.0

type WorktreePruneToolInput = tool.WorktreePruneToolInput

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

type WorktreePruneToolOutput added in v0.4.0

type WorktreePruneToolOutput = tool.WorktreePruneToolOutput

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

type WorktreeRemoveToolInput added in v0.4.0

type WorktreeRemoveToolInput = tool.WorktreeRemoveToolInput

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

type WorktreeRemoveToolOutput added in v0.4.0

type WorktreeRemoveToolOutput = tool.WorktreeRemoveToolOutput

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