mcpserver

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(deps Deps) *server.MCPServer

NewServer creates a new MCP server with all SAP developer tools registered.

Types

type Deps

type Deps struct {
	Packs         []*content.Pack
	Profile       *content.Profile
	TutorialIndex []tutorials.TutorialMeta
	LearningIndex []learning.LearningJourney
	CacheDir      string
	ConfigDir     string
	DataDir       string
	Version       string
	Cwd           string
	CFClient      *cfcli.Client
	BTPClient     *btpcli.Client
	CFConfigPath  string
}

Deps holds all dependencies required to construct and operate the MCP server.

type ResultEnvelope

type ResultEnvelope struct {
	Count   int    `json:"count"`
	Total   int    `json:"total"`
	Results any    `json:"results"`
	Hint    string `json:"hint,omitempty"`
}

ResultEnvelope wraps list results with count, total, and optional hint for agents.

Jump to

Keyboard shortcuts

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