mcpserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mcpserver serves Codog tools through the Model Context Protocol.

Package mcpserver exposes Codog tools, prompts, and local resources through a minimal stdio MCP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExposedTools

func ExposedTools(registry *tools.Registry) []map[string]any

ExposedTools returns tool definitions that are safe to expose over MCP.

func LocalPrompts

func LocalPrompts() []map[string]any

LocalPrompts returns built-in MCP prompts for common workspace tasks.

func LocalResourceTemplates

func LocalResourceTemplates() []map[string]any

LocalResourceTemplates returns parameterized resources for workspace-scoped file reads.

func LocalResources

func LocalResources(opts Options) []map[string]any

LocalResources returns the static workspace, status, and tool resources advertised by the local MCP server.

func Serve

func Serve(ctx context.Context, in io.Reader, out io.Writer, registry *tools.Registry, opts Options) error

Serve processes newline-delimited JSON-RPC MCP requests until input closes or the context is canceled.

Types

type Options

type Options struct {
	Version         string
	Workspace       string
	PermissionMode  string
	PermissionRules config.PermissionRules
}

Options configures the local MCP server identity, workspace, and permission policy.

Jump to

Keyboard shortcuts

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