pact-stub-server

A Pact stub server that serves mock responses for consumer-driven contract tests (Pact) so a consumer can be tested against predictable provider behaviors without calling the real provider.

Evaluated Apr 04, 2026 (25d ago)
Homepage ↗ Repo ↗ Testing testing contract-testing pact stub-server mocking
⚙ Agent Friendliness
42
/ 100
Can an agent use this?
🔒 Security
30
/ 100
Is it safe for agents?
⚡ Reliability
35
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
0
Documentation
30
Error Messages
0
Auth Simplicity
90
Rate Limits
0

🔒 Security

TLS Enforcement
30
Auth Strength
20
Scope Granularity
0
Dep. Hygiene
50
Secret Handling
60

As a test stub, it likely does not enforce production-grade authz/authn. If exposed beyond a test network, treat it as an unauthenticated service and ensure it is network-restricted. TLS and secret-handling details are not verified here.

⚡ Reliability

Uptime/SLA
0
Version Stability
50
Breaking Changes
50
Error Recovery
40
AF Security Reliability

Best When

You want a lightweight way to run consumer tests using Pact contracts and deterministic mock provider responses.

Avoid When

You need real provider integrations, strict runtime authorization/tenancy policies, or comprehensive API documentation/SDKs beyond Pact interaction contracts.

Use Cases

  • Local development of consumer applications using Pact contract tests
  • CI testing where provider availability is not required
  • Simulating provider responses for different scenarios described by Pact contracts
  • Debugging consumer behavior against contract-defined interactions

Not For

  • Production use as an always-accurate replacement for the real provider
  • Running full provider verification (this is for stubbing/consumer-side testing, not verifying provider implementations)
  • Use as a general-purpose API mocking platform beyond Pact interactions

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
No
Webhooks
No

Authentication

OAuth: No Scopes: No

Stub servers typically do not provide fine-grained auth by default; authorization behavior (if any) is usually incidental or configured for test usage rather than implementing production-grade auth.

Pricing

Free tier: No
Requires CC: No

Open-source style package; no usage-based pricing info provided.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • Focus is on Pact interactions; capabilities and endpoints depend on the Pact contracts loaded.
  • Mismatch between the request shape and the contract interaction can yield non-intuitive 'no matching interaction' behavior.
  • Stub behavior may be sufficient for consumers but not for testing authorization/side effects as a real provider would.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for pact-stub-server.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-04-04.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered