Documentation
¶
Overview ¶
Package harness is the end-to-end benchmark and conformance harness for leanproxy-mcp (issue #301). The measurements live in the test files behind the `harness` build tag and run with `make harness`; they build the real binary, drive `server run --stdio` over pipes against the catalog mock in ./catalogmcp, and write bench-results/harness.md.
This file (no build tag) only holds what the harness test and the catalog mock share: the embedded 118-tool catalog and the fake credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LargeResultTools = []struct{ Server, Tool string }{
{"github", "get_file_contents"},
{"github", "list_issues"},
{"github", "search_code"},
{"jira", "jira_search"},
{"postgres", "pg_query"},
}
LargeResultTools are the catalog tools that answer with a large result when catalogmcp runs with --large-results (the response governor measurements, issue #319): a file read and the list/search endpoints an agent session typically calls.
Functions ¶
func CountFakeSecrets ¶
CountFakeSecrets reports how many of FakeSecrets occur in s.
func FakeSecrets ¶
func FakeSecrets() []string
FakeSecrets returns credential-shaped strings that the built-in bouncer patterns must redact. They are assembled at runtime so no secret-looking literal is committed (GitHub push protection rejects literal keys).
func LargeResult ¶
LargeResult returns the large text result of tool, deterministic, and whether the tool has one.
Types ¶
type Catalog ¶
type Catalog struct {
Servers []Server `json:"servers"`
}
Catalog is the whole embedded catalog.
Directories
¶
| Path | Synopsis |
|---|---|
|
Command catalogmcp is the stdio MCP server the end-to-end harness (tests/harness, issue #301) proxies through leanproxy-mcp.
|
Command catalogmcp is the stdio MCP server the end-to-end harness (tests/harness, issue #301) proxies through leanproxy-mcp. |