servercaps

package
v1.169.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 2 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 servercaps builds the capabilities the platform's MCP server declares, explicitly rather than by the SDK's inference, so the server's contract is visible in one place. It was taken out of the platform facade for that package's size budget; the facade decides what is on and this package states what that declares.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(in Input) *mcp.ServerCapabilities

Build returns the capabilities in describes.

Types

type Input

type Input struct {
	// Resources is true when resource templates, managed resources or custom
	// resources are configured.
	Resources bool
	// Prompts is true when prompts are configured or the knowledge layer
	// serves them.
	Prompts bool
	// Tasks is true where the MCP Tasks extension is offered (#2009).
	Tasks bool
}

Input is what the capabilities are decided by.

Jump to

Keyboard shortcuts

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