servercaps

package
v1.147.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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