Repository navigation
mcp-test-v1.0.0
First public release of mcp-test, a Plexara-sponsored OSS Go MCP server built specifically as a controllable fixture for testing MCP gateways end-to-end.
The point isn't what its tools do (they are intentionally boring); the point is that they're predictable, deterministic, and observable, so a gateway sitting in front of them can be asserted on. Same input always produces the same output. Failures happen exactly when asked. Every call lands in a Postgres-backed audit log that the embedded React portal lets you browse, filter, and chart.
Apache 2.0. Source at https://github.com/plexara/mcp-test. Docs at https://mcp-test.plexara.io.
What's in 1.0.0
MCP server (Go)
Streamable HTTP transport via the official github.com/modelcontextprotocol/go-sdk v1.5.0; mounted at /, with browsers redirected to /portal/ and MCP clients passing through.
Twelve test tools across four toolkits, each individually flag-gated:
| Group | Tools | What they verify in your gateway |
|---|---|---|
| identity | whoami, echo, headers |
Identity forwarding, argument round-trip, header pass-through |
| data | fixed_response, sized_response, lorem |
Deterministic dedup, size-limit handling, seeded reproducibility |
| failure | error, slow, flaky |
Error categorization, timeout policy, seeded retry behavior |
| streaming | progress, long_output, chatty |
Progress notification pass-through, multi-block content, ordering |
Three auth methods, daisy-chained:
- File API keys (constant-time compare)
- Postgres-backed bcrypt keys (managed via
/api/v1/admin/keys) - External OIDC delegation with JWKS caching, alg pinning (
RS256/384/512),exprequired, singleflight refresh, stale-while-revalidate - RFC 9728 protected-resource metadata at
/.well-known/oauth-protected-resourceso MCP clients can discover the IdP
Postgres-backed audit log of every tools/call: sanitized parameters, identity (subject, email, name, auth type), latency, response size, content blocks, source (mcp vs portal-tryit). Async buffered drain so DB latency never gates the request path; audit.enabled: false swaps in a noop logger.
Built-in MCP instructions: the server's initialize response carries server-level instructions clients surface to the LLM as system context, telling models these tools are test fixtures and not data sources.
Embedded portal (React 19)
Vite + Tailwind 4 + shadcn/ui, baked into the Go binary via go:embed all:dist; mounted at /portal/.
Pages: Login (API key or OIDC), Dashboard (counts, error rate, p50/p95 latency, recent activity), Tools (per-tool detail with Try-It form generated from JSON schema), Audit (filterable timeline with full event inspection), API Keys (create/revoke Postgres-backed bcrypt keys), Config viewer (with secrets redacted), Discovery (well-known viewer), About.
Light/dark theming with persisted preference; CSRF-protected admin endpoints (X-Requested-With required); top-level error boundary; 401 interceptor for clean session expiry handling.
The Try-It proxy at /api/v1/admin/tryit/{name} invokes tools through an in-process MCP client; audit rows tagged source=portal-tryit so you can filter portal traffic out of gateway-traffic counts.
Infrastructure
- Multi-arch container at
ghcr.io/plexara/mcp-test, distroless static, signed via cosign keyless on tag. docker-compose.dev.ymlbrings up Postgres 16 + Keycloak with a pre-seeded realm (mcp-test), client, anddev/devuser.- GoReleaser pipeline publishes binaries (linux/darwin/windows × amd64/arm64), checksums, and the OCI image to GHCR.
- GitHub Actions: lint + race-tested test suite + 80% coverage gate on every PR; docs deploy to
mcp-test.plexara.ioonmain; full release on tag. - Bundled
.mcp.jsonso Claude Code can connect to a local instance directly.
Documentation
mcp-test.plexara.io is built from the source tree's docs/ with MkDocs Material, themed to match Plexara's marketing identity (midnight neutrals, copper teal-azure accent, Outfit display + DM Sans body).
Sections: Getting Started, Configuration, Tools, Operations, Reference (HTTP API, MCP protocol, Architecture, Releases). Plus full SEO (per-page descriptions, OG/Twitter cards, JSON-LD), Google Analytics 4, sitemap.xml, robots.txt, and an llms.txt curated index.
Out of scope (deliberately)
- Personas / RBAC. Any authenticated caller is admin. mcp-test is a fixture, not a multi-tenant system.
- stdio transport. HTTP-only.
- Real upstream data backends (Trino, S3, Snowflake). The
datatoolkit returns synthetic, seeded fixtures. - Built-in OAuth authorization server. OIDC is delegated to an external IdP. Keycloak is bundled in the dev stack for convenience.
Installation
Container
docker pull ghcr.io/plexara/mcp-test:v1.0.0The image ships only the binary and LICENSE; mount your own config:
docker run --rm \
-v $(pwd)/mcp-test.yaml:/app/configs/mcp-test.yaml:ro \
-p 8080:8080 \
ghcr.io/plexara/mcp-test:v1.0.0A starter config lives in the repo at configs/mcp-test.example.yaml.
Binary (macOS / Linux)
curl -L -o mcp-test.tar.gz \
https://github.com/plexara/mcp-test/releases/download/v1.0.0/mcp-test_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz
tar -xzf mcp-test.tar.gz
./mcp-test --versionFrom source
git clone https://github.com/plexara/mcp-test
cd mcp-test
make dev # postgres + keycloak via docker, binary in foregroundmake dev generates random secrets into .env.dev (gitignored) on first run; subsequent runs reuse them so portal sessions persist across restarts.
Quick smoke test
# 401 with a discovery pointer (RFC 9728)
curl -i http://localhost:8080/
# WWW-Authenticate: Bearer resource_metadata="..."
# Call a tool through the bundled file API key
curl -s -X POST http://localhost:8080/api/v1/admin/tryit/echo \
-H "X-API-Key: $MCPTEST_DEV_KEY" \
-H "X-Requested-With: XMLHttpRequest" \
-H "Content-Type: application/json" \
-d '{"arguments":{"message":"hello"}}'Then open http://localhost:8080/portal/ and watch the audit row appear within a second tagged source=portal-tryit.
What's next
This is the foundational release. Likely directions for 1.x:
- Streamed Try-It progress notifications surfaced in the portal.
- Schema-driven ToolForm fully replacing the curated form registry.
- Optional CodeQL / SBOM signing in the release pipeline.
- Stateless mode for multi-replica deployments (Streamable HTTP session externalization).
Issues and PRs welcome at https://github.com/plexara/mcp-test/issues.
Open source by Plexara, the commercial MCP server with configurable enrichment built in. mcp-test is what we use to verify Plexara's gateway behavior end-to-end; we ship it as OSS so anyone building MCP integrations can use the same fixture.