MockServer is a testing server and proxy that imitates APIs, records and changes network traffic, and deliberately introduces failures. It is for developers testing applications against unavailable dependencies, debugging requests, and checking how systems handle degraded services across several network protocols. The catalogue add-ons help operate, configure, and test MockServer.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/mock-server/mockserver-monorepo/dockerhub-credentialsnpx skills add mock-server/mockserver-monorepo --skill dockerhub-credentialsgit clone --depth 1 https://github.com/mock-server/mockserver-monorepoWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mock-server/mockserver-monorepo/dockerhub-credentials)<a href="https://agentmods.dev/skills/mock-server/mockserver-monorepo/dockerhub-credentials"><img src="https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/dockerhub-credentials.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00087 | $0.01152 |
| Opus 5 | $0.00044 | $0.00576 |
| Sonnet 5 | $0.00017 | $0.00230 |
| Haiku 4.5 | $0.00009 | $0.00115 |
Grade C, and why
dockerhub-credentials scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Harvests environment variableshighData exfiltration
Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.
# Try to extract credentials (the helper name comes from credsStore above) How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Store Docker Hub Credentials in AWS Secrets Manager
This skill guides you through creating (or rotating) Docker Hub credentials and storing
them in AWS Secrets Manager (mockserver-build/dockerhub) for use by Buildkite pipelines.
Prerequisites
- AWS CLI installed and configured with the
mockserver-buildSSO profile - Authenticated to AWS:
aws sso login --profile mockserver-build - Docker Hub account with push access to the
mockserver/mockserverrepository - Terraform resources deployed (the
aws_secretsmanager_secret.dockerhubresource interraform/buildkite-agents/build-secrets.tfmust exist)
Step 1: Try Local Docker Credentials (Optional Shortcut)
Before asking the user to create a new token, check if Docker Hub credentials are already available locally:
# Check what credential store is configured
cat ~/.docker/config.json | python3 -c "import sys,json; print(json.load(sys.stdin).get('credsStore','none'))"
# Try to extract credentials (the helper name comes from credsStore above)
echo "https://index.docker.io/v1/" | docker-credential-desktop get 2>/dev/null
If credentials are found, ask the user if they want to use them. Note that credentials from Docker Desktop may be session tokens rather than reusable PATs — prefer creating a dedicated PAT in Step 2 for production use.
Step 2: Create a Docker Hub Personal Access Token
If no local credentials are available (or the user wants a fresh token):
- Instruct the user to navigate to Docker Hub:
- URL:
https://app.docker.com/settings/personal-access-tokens - Or: Docker Hub → Avatar → Account Settings → Personal Access Tokens
- URL:
- Click Generate New Token
- Settings:
- Description:
mockserver-ci(or similar) - Permissions: Read & Write (needed to push images)
- Expiration: Choose based on rotation policy (recommended: 1 year)
- Description:
- Copy the generated token (format:
dckr_pat_...)
Ask the user to provide:
- Docker Hub username
- Personal Access Token
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 118 lines · 87 tokens per session scan C 7f16645f25dc
dockerhub-credentials is a skill published in the GitHub repository mock-server/mockserver-monorepo (4,965 stars, last pushed today), licensed Apache-2.0. It adds 87 tokens to every session and 1,152 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
plano-deployment-security
Apply Plano deployment and production security practices. Use for Docker networking, state storage choices, readiness checks, and environment-based secret handling.
deploy-docker-compose
Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…
securing-kubernetes-on-cloud
This skill covers hardening managed Kubernetes clusters on EKS, AKS, and GKE by implementing Pod Security Standards, network policies, workload identity, RBAC scoping, image admission controls, and runtime security monitoring. It addresses cloud-specific security features including IRSA for EKS, Workload Identity for…
detecting-privilege-escalation-in-kubernetes-pods
Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.
implementing-rbac-hardening-for-kubernetes
Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.
docker-socket-mount
Docker / containerd socket mounted into a container → host RCE. Common in CI runners, GitOps controllers (ArgoCD, Flux), and 'Docker-in-Docker' setups. Single-command escape via docker run --rm --privileged -v /:/host alpine chroot /host.