Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
python-sdk/mkdocs.yml at client-scope-fallback · modelcontextprotocol/python-sdk · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
modelcontextprotocol
python-sdk
Repository navigation
Code
Issues
262
(262)
Pull requests
105
(105)
Actions
Projects
Security and quality
12
(12)
Insights
More
items
Files
Expand file tree
client-scope-fallback
Breadcrumbs
python-sdk
/
mkdocs.yml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
208 lines (200 loc) · 7.04 KB
client-scope-fallback
Breadcrumbs
python-sdk
/
mkdocs.yml
Copy path
Top
File metadata and controls
Code
Blame
208 lines (200 loc) · 7.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
site_name
:
MCP Python SDK
site_description
:
The official Python SDK for the Model Context Protocol
repo_name
:
modelcontextprotocol/python-sdk
repo_url
:
https://github.com/modelcontextprotocol/python-sdk
edit_uri
:
edit/main/docs/
site_url
:
https://py.sdk.modelcontextprotocol.io/v2/
#
TODO(Marcelo): Add Anthropic copyright?
#
copyright: © Model Context Protocol 2025 to present
#
The "API Reference" entry is a placeholder: `scripts/docs/gen_ref_pages.py`
#
generates the `docs/api/` tree and `scripts/docs/build_config.py` splices the
#
real nested nav in before the build. See `scripts/docs/build.sh`.
nav
:
-
MCP Python SDK
:
index.md
-
"
What's new in v2
"
:
whats-new.md
-
Get started
:
-
get-started/index.md
-
Installation
:
get-started/installation.md
-
First steps
:
get-started/first-steps.md
-
Connect to a real host
:
get-started/real-host.md
-
Testing
:
get-started/testing.md
-
Servers
:
-
servers/index.md
-
Tools
:
servers/tools.md
-
Structured Output
:
servers/structured-output.md
-
Resources
:
servers/resources.md
-
URI templates
:
servers/uri-templates.md
-
Prompts
:
servers/prompts.md
-
Completions
:
servers/completions.md
-
"
Images, audio & icons
"
:
servers/media.md
-
Handling errors
:
servers/handling-errors.md
-
Inside your handler
:
-
handlers/index.md
-
The Context
:
handlers/context.md
-
Dependencies
:
handlers/dependencies.md
-
Lifespan
:
handlers/lifespan.md
-
Elicitation
:
handlers/elicitation.md
-
Multi-round-trip requests
:
handlers/multi-round-trip.md
-
Sampling and roots
:
handlers/sampling-and-roots.md
-
Progress
:
handlers/progress.md
-
Logging
:
handlers/logging.md
-
Subscriptions
:
handlers/subscriptions.md
-
Running your server
:
-
run/index.md
-
Add to an existing app
:
run/asgi.md
-
Deploy & scale
:
run/deploy.md
-
Authorization
:
run/authorization.md
-
OpenTelemetry
:
run/opentelemetry.md
-
Serving legacy clients
:
run/legacy-clients.md
-
Clients
:
-
client/index.md
-
Callbacks
:
client/callbacks.md
-
Transports
:
client/transports.md
-
OAuth
:
client/oauth-clients.md
-
Identity assertion
:
client/identity-assertion.md
-
Multiple servers
:
client/session-groups.md
-
Subscriptions
:
client/subscriptions.md
-
Caching
:
client/caching.md
-
Protocol versions
:
protocol-versions.md
-
Deprecated features
:
deprecated.md
-
Advanced
:
-
advanced/index.md
-
The low-level Server
:
advanced/low-level-server.md
-
Pagination
:
advanced/pagination.md
-
Middleware
:
advanced/middleware.md
-
Extensions
:
advanced/extensions.md
-
MCP Apps
:
advanced/apps.md
-
Troubleshooting
:
troubleshooting.md
-
Migration Guide
:
migration.md
-
API Reference
:
api/
theme
:
name
:
"
material
"
custom_dir
:
docs/.overrides
font
:
text
:
Inter
code
:
JetBrains Mono
icon
:
logo
:
mcp
favicon
:
favicon.svg
palette
:
-
media
:
"
(prefers-color-scheme)
"
scheme
:
default
primary
:
black
accent
:
black
toggle
:
icon
:
material/lightbulb
name
:
"
Switch to light mode
"
-
media
:
"
(prefers-color-scheme: light)
"
scheme
:
default
primary
:
black
accent
:
black
toggle
:
icon
:
material/lightbulb-outline
name
:
"
Switch to dark mode
"
-
media
:
"
(prefers-color-scheme: dark)
"
scheme
:
slate
primary
:
black
accent
:
white
toggle
:
icon
:
material/lightbulb-auto-outline
name
:
"
Switch to system preference
"
features
:
-
search.suggest
-
search.highlight
-
content.tabs.link
-
content.code.annotate
-
content.code.copy
-
content.code.select
-
navigation.footer
-
navigation.indexes
-
navigation.instant
-
navigation.instant.prefetch
-
navigation.instant.progress
-
navigation.path
-
navigation.prune
-
navigation.sections
-
navigation.top
-
navigation.tracking
-
toc.follow
extra_css
:
-
extra.css
markdown_extensions
:
-
tables
-
abbr
-
admonition
-
attr_list
-
def_list
-
footnotes
-
md_in_html
-
pymdownx.betterem
-
pymdownx.details
-
pymdownx.caret
-
pymdownx.critic
-
pymdownx.mark
#
Code examples live as complete, importable, tested files under `docs_src/`
#
and are included into pages with `--8<-- "docs_src/<chapter>/tutorialNNN.py"`
#
(resolved against the repo root, which is the build's working directory).
#
`check_paths: true` turns a renamed/deleted example into a build failure
#
instead of a silently empty code block.
-
pymdownx.snippets
:
base_path
:
[.]
check_paths
:
true
-
pymdownx.tilde
-
pymdownx.inlinehilite
-
pymdownx.highlight
:
pygments_lang_class
:
true
-
pymdownx.superfences
:
custom_fences
:
-
name
:
mermaid
class
:
mermaid
format
:
pymdownx.superfences.fence_code_format
#
Zensical re-implements the emoji extension; the generator/index functions
#
live under `zensical.extensions.emoji`, not `material.extensions.emoji`.
-
pymdownx.emoji
:
emoji_index
:
zensical.extensions.emoji.twemoji
emoji_generator
:
zensical.extensions.emoji.to_svg
options
:
custom_icons
:
-
docs/.overrides/.icons
-
pymdownx.tabbed
:
alternate_style
:
true
-
pymdownx.tasklist
:
custom_checkbox
:
true
-
sane_lists
#
this means you can start a list from any number
#
Zensical natively watches these beyond docs/: page content is assembled
#
from src/ (mkdocstrings) and docs_src/ (snippet includes), so serve
#
live-reload must react to both.
watch
:
-
src
-
docs_src
#
Zensical natively re-implements `search`, `glightbox` and `mkdocstrings`; it
#
does not run arbitrary MkDocs plugins or hooks. The former `gen-files`,
#
`literate-nav` and `llms_txt` hook are handled by the standalone scripts
#
under `scripts/docs/` (see scripts/docs/build.sh). The `social` plugin was
#
dropped: Zensical has no social-card support, and the cards were gated on
#
ENABLE_SOCIAL_CARDS, which no workflow ever set.
plugins
:
-
search
-
glightbox
-
mkdocstrings
:
handlers
:
python
:
paths
:
[src, src/mcp-types]
#
Zensical renders pages in undefined (filesystem-dependent) order
#
against one shared griffe collection, so a cross-package re-export
#
(`mcp` -> `mcp_types`) resolves only if its target package happens
#
to have been collected first. Chasing exported aliases into their
#
packages at load time makes resolution order-independent;
#
scripts/docs/check_render_order.py enforces that property.
load_external_modules
:
true
options
:
relative_crossrefs
:
true
members_order
:
source
separate_signature
:
true
show_signature_annotations
:
true
signature_crossrefs
:
true
group_by_category
:
false
inventories
:
-
url
:
https://docs.python.org/3/objects.inv
-
url
:
https://docs.pydantic.dev/latest/objects.inv
-
url
:
https://typing-extensions.readthedocs.io/en/latest/objects.inv
You can’t perform that action at this time.