| layout | default |
|---|---|
| title | Chapter 6: Configuration, Auth, and Deployment |
| nav_order | 6 |
| parent | FastMCP Tutorial |
Welcome to Chapter 6: Configuration, Auth, and Deployment. In this part of FastMCP Tutorial: Building and Operating MCP Servers with Pythonic Control, you will build an intuitive mental model first, then move into concrete implementation details and practical production tradeoffs.
This chapter covers standardized project configuration, auth controls, and deployment choices.
- use project-level configuration (
fastmcp.json) predictably - set auth and environment behavior with less drift
- design deployment paths for local, hosted, and managed environments
- keep runtime setup reproducible across teams
- centralize runtime settings in configuration files when possible
- treat auth providers and token handling as first-class design concerns
- document environment variable requirements per deployment target
- prebuild/validate environments before promoting to production
You now have a deployment-ready configuration and auth approach for FastMCP systems.
Next: Chapter 7: Testing, Contributing, and Upgrade Strategy
flowchart TD
A[FastMCP server] --> B{Auth model}
B -->|No auth| C[stdio / local only]
B -->|Bearer token| D[HTTP Authorization header]
B -->|OAuth| E[Token exchange flow]
D --> F[Protected HTTP endpoint]
E --> F
C --> G[Local subprocess]
F --> H[Production deployment]
H --> I[Docker / cloud service]