server

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package server exposes a synthetic fixture through the official MCP SDK. Runtime's private gateway is the production authentication and policy boundary.

Index

Constants

View Source
const Version = "0.1.1"

Variables

This section is empty.

Functions

func ConfiguredMCPPath

func ConfiguredMCPPath(raw string) (string, error)

Types

type DeleteArgs

type DeleteArgs struct {
	RunID            string  `json:"run_id"`
	Key              string  `json:"key"`
	ExpectedRevision *uint64 `json:"expected_revision,omitempty"`
}

type EchoArgs

type EchoArgs struct {
	Message string `json:"message" jsonschema:"Synthetic marker to echo, at most 4096 bytes. Do not send credentials or personal data."`
}

type Empty

type Empty struct{}

type KeyArgs

type KeyArgs struct {
	RunID string `json:"run_id"`
	Key   string `json:"key"`
}

type OpenArgs

type OpenArgs struct {
	Label      string `json:"label,omitempty" jsonschema:"Synthetic test label, at most 80 bytes."`
	TTLSeconds int    `json:"ttl_seconds,omitempty" jsonschema:"Retention from 1 to 3600 seconds; default 900."`
}

type PutArgs

type PutArgs struct {
	RunID            string  `json:"run_id"`
	Key              string  `json:"key"`
	Value            string  `json:"value" jsonschema:"Synthetic text, at most 4096 bytes."`
	ExpectedRevision *uint64 `json:"expected_revision,omitempty" jsonschema:"Optional compare-and-swap revision; zero requires a missing record."`
}

type RunArgs

type RunArgs struct {
	RunID string `json:"run_id" jsonschema:"Exact run identifier returned by audit_run_open."`
}

type Service

type Service struct {
	Store        *fixture.Store
	Logger       *slog.Logger
	JSONResponse bool
}

func (*Service) Handler

func (s *Service) Handler() http.Handler

Handler is intentionally private behind Runtime's gateway in production. The backend has no platform admin or Kubernetes credentials.

func (*Service) NewMCPServer

func (s *Service) NewMCPServer() *mcp.Server

type WaitArgs

type WaitArgs struct {
	Milliseconds int `json:"milliseconds" jsonschema:"Delay from 0 to 2000 milliseconds; cancellation is respected."`
	Steps        int `` /* 132-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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