LESSON 16 / 18·2 min readAdvanced

Deployment, Scaling, Versioning, and Operations

Should knowConcept lesson
01 Understand02 Recall03 Prepare

Local versus remote

ConcernLocal stdioRemote Streamable HTTP
UsersUsually one local userMultiple users are possible.
AuthProcess/OS/configuration boundaryToken-based authentication and policy
ScalingOne process per hostHorizontal service scaling
OperationsClient starts the processDeployment, TLS, monitoring

Production checklist

  1. Run the container as a non-root user with minimal filesystem and network access.
  2. Enable HTTPS/TLS and strict Host/Origin handling.
  3. Make health checks dependency-aware without leaking details.
  4. Prefer stateless handlers when session state is unnecessary.
  5. Design session state, an event bus, or resumability storage before horizontal scaling.
  6. Configure timeouts, payload limits, concurrency limits, and graceful shutdown.
  7. Run type checking, tests, security checks, and container scanning in CI.
  8. Test protocol and SDK changes against supported clients.
  9. Provide feature flags and a rollback path.
  10. Maintain a runbook that defines the alert owner, incident response, and credential rotation.

Versioning

A tool schema is a contract. Breaking renames or removals can affect clients and models. Introduce additive fields carefully, maintain a deprecation period for old tools, publish a changelog, and run contract tests.

Cost drivers

Compute, database/API usage, model sampling, egress, logs, and always-on connections. Cache only permission-safe reads and never mix data between tenants.

PAUSE & RECALL

Can you explain it without the notes?

Deployment, Scaling, Versioning, and Operations

Use your own words. Explain an example and one limitation before checking the explanation.

Check your explanation

Local versus remote

CONNECT IT TO YOUR INTERVIEW

Turn this concept into a clear answer.

Practice this concept
YOUR NEXT STEP

Keep connecting the ideas.

Next lesson: Portfolio Projects and Capstone Roadmap

Adapted from 20_MCP_SERVER.md · “16. Deployment, Scaling, Versioning, and Operations”. Examples are study fragments; framework behavior can depend on your version.