Documentation
¶
Overview ¶
Package mcpworkload generates deterministic MCP query workloads.
Index ¶
Constants ¶
const ( SchemaVersion = "mcp-workload-v1" DefaultCallCount = 10_000 DefaultSeed int64 = 42 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config controls one generated workload.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the standard workload used by the MCP performance phase. Ten thousand calls makes the percentages exact while remaining small enough for a smoke run.
type Corpus ¶
type Corpus struct {
Probes []Probe `json:"probes"`
}
Corpus contains the valid query probes for one snapshot.
func DefaultCorpus ¶
func DefaultCorpus() Corpus
DefaultCorpus uses the probe names emitted by internal/synthetic for its deterministic corpus. A benchmark can replace it with probes from another corpus without changing the workload distribution.
type Operation ¶
type Operation string
Operation is one read-only MCP tool included in the performance workload.
type Probe ¶
Probe identifies a symbol that is valid in the snapshot under test. Name is used by find_symbol; StableKey is used by the other operations.
type Request ¶
type Request struct {
Sequence int `json:"sequence"`
Operation Operation `json:"operation"`
Arguments map[string]any `json:"arguments"`
}
Request is one MCP CallTool request and can be passed directly to the SDK.
type Workload ¶
type Workload struct {
SchemaVersion string `json:"schema_version"`
Seed int64 `json:"seed"`
Calls int `json:"calls"`
Distribution map[Operation]int `json:"distribution"`
Requests []Request `json:"requests"`
}
Workload is the self-describing output consumed by later benchmark tasks.