server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package server wires the MCP SDK to the tools and offers a schema dump through an in-memory client session.

Index

Constants

View Source
const Name = "google-docs-mcp"

Name is the MCP server name.

View Source
const SDKVersion = "v1.7.0"

SDKVersion is recorded in schema dumps so a diff caused by an SDK upgrade can be told apart from a tool-surface change.

Variables

This section is empty.

Functions

func DumpSchemas

func DumpSchemas(ctx context.Context, s *mcp.Server, w io.Writer, version string) error

DumpSchemas writes the tool list and the resource templates as the wire would carry them: the SDK has no public enumerator, so an in-memory client asks the server.

func New

func New(d Deps) *mcp.Server

New builds the MCP server with every tool registered.

Types

type Deps

type Deps struct {
	Service *service.Service
	Config  config.Config
	Logger  *slog.Logger
	Version string
}

Deps are what the server needs.

Jump to

Keyboard shortcuts

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