1+
2+ <!doctype html>
3+ < html lang ="en " class ="no-js ">
4+ < head >
5+
6+ < meta charset ="utf-8 ">
7+ < meta name ="viewport " content ="width=device-width,initial-scale=1 ">
8+
9+ < meta name ="description " content ="MCP Server ">
10+
11+
12+
13+
14+
15+
16+ < link rel ="icon " href ="/python-sdk/assets/images/favicon.png ">
17+ < meta name ="generator " content ="mkdocs-1.6.1, mkdocs-material-9.6.19 ">
18+
19+
20+
21+ < title > MCP Server</ title >
22+
23+
24+
25+ < link rel ="stylesheet " href ="/python-sdk/assets/stylesheets/main.7e37652d.min.css ">
26+
27+
28+ < link rel ="stylesheet " href ="/python-sdk/assets/stylesheets/palette.06af60db.min.css ">
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+ < link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
42+ < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback ">
43+ < style > : root {--md-text-font : "Roboto" ;--md-code-font : "Roboto Mono" }</ style >
44+
45+
46+
47+ < link rel ="stylesheet " href ="/python-sdk/assets/_mkdocstrings.css ">
48+
49+ < script > __md_scope = new URL ( "/python-sdk/" , location ) , __md_hash = e => [ ...e ] . reduce ( ( ( e , _ ) => ( e << 5 ) - e + _ . charCodeAt ( 0 ) ) , 0 ) , __md_get = ( e , _ = localStorage , t = __md_scope ) => JSON . parse ( _ . getItem ( t . pathname + "." + e ) ) , __md_set = ( e , _ , t = localStorage , a = __md_scope ) => { try { t . setItem ( a . pathname + "." + e , JSON . stringify ( _ ) ) } catch ( e ) { } } </ script >
50+
51+
52+
53+
54+
55+
56+ </ head >
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+ < body dir ="ltr " data-md-color-scheme ="default " data-md-color-primary ="black " data-md-color-accent ="black ">
67+
68+
69+ < input class ="md-toggle " data-md-toggle ="drawer " type ="checkbox " id ="__drawer " autocomplete ="off ">
70+ < input class ="md-toggle " data-md-toggle ="search " type ="checkbox " id ="__search " autocomplete ="off ">
71+ < label class ="md-overlay " for ="__drawer "> </ label >
72+ < div data-md-component ="skip ">
73+
74+ </ div >
75+ < div data-md-component ="announce ">
76+
77+ </ div >
78+
79+
80+
81+
82+
83+
84+ < header class ="md-header md-header--shadow " data-md-component ="header ">
85+ < nav class ="md-header__inner md-grid " aria-label ="Header ">
86+ < a href ="/python-sdk/. " title ="MCP Server " class ="md-header__button md-logo " aria-label ="MCP Server " data-md-component ="logo ">
87+
88+
89+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54 "/> </ svg >
90+
91+ </ a >
92+ < label class ="md-header__button md-icon " for ="__drawer ">
93+
94+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z "/> </ svg >
95+ </ label >
96+ < div class ="md-header__title " data-md-component ="header-title ">
97+ < div class ="md-header__ellipsis ">
98+ < div class ="md-header__topic ">
99+ < span class ="md-ellipsis ">
100+ MCP Server
101+ </ span >
102+ </ div >
103+ < div class ="md-header__topic " data-md-component ="header-topic ">
104+ < span class ="md-ellipsis ">
105+
106+
107+
108+ </ span >
109+ </ div >
110+ </ div >
111+ </ div >
112+
113+
114+ < form class ="md-header__option " data-md-component ="palette ">
115+
116+
117+
118+
119+ < input class ="md-option " data-md-color-media ="(prefers-color-scheme) " data-md-color-scheme ="default " data-md-color-primary ="black " data-md-color-accent ="black " aria-label ="Switch to light mode " type ="radio " name ="__palette " id ="__palette_0 ">
120+
121+ < label class ="md-header__button md-icon " title ="Switch to light mode " for ="__palette_1 " hidden >
122+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7M9 21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1H9z "/> </ svg >
123+ </ label >
124+
125+
126+
127+
128+
129+ < input class ="md-option " data-md-color-media ="(prefers-color-scheme: light) " data-md-color-scheme ="default " data-md-color-primary ="black " data-md-color-accent ="black " aria-label ="Switch to dark mode " type ="radio " name ="__palette " id ="__palette_1 ">
130+
131+ < label class ="md-header__button md-icon " title ="Switch to dark mode " for ="__palette_2 " hidden >
132+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5 "/> </ svg >
133+ </ label >
134+
135+
136+
137+
138+
139+ < input class ="md-option " data-md-color-media ="(prefers-color-scheme: dark) " data-md-color-scheme ="slate " data-md-color-primary ="white " data-md-color-accent ="white " aria-label ="Switch to system preference " type ="radio " name ="__palette " id ="__palette_2 ">
140+
141+ < label class ="md-header__button md-icon " title ="Switch to system preference " for ="__palette_0 " hidden >
142+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M9 2c3.87 0 7 3.13 7 7 0 2.38-1.19 4.47-3 5.74V17c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1v-2.26C3.19 13.47 2 11.38 2 9c0-3.87 3.13-7 7-7M6 21v-1h6v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1M9 4C6.24 4 4 6.24 4 9c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58 0-2.76-2.24-5-5-5m10 9h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9zm-2.15 5.65L18 15l1.15 3.65z "/> </ svg >
143+ </ label >
144+
145+
146+ </ form >
147+
148+
149+
150+ < script > var palette = __md_get ( "__palette" ) ; if ( palette && palette . color ) { if ( "(prefers-color-scheme)" === palette . color . media ) { var media = matchMedia ( "(prefers-color-scheme: light)" ) , input = document . querySelector ( media . matches ?"[data-md-color-media='(prefers-color-scheme: light)']" :"[data-md-color-media='(prefers-color-scheme: dark)']" ) ; palette . color . media = input . getAttribute ( "data-md-color-media" ) , palette . color . scheme = input . getAttribute ( "data-md-color-scheme" ) , palette . color . primary = input . getAttribute ( "data-md-color-primary" ) , palette . color . accent = input . getAttribute ( "data-md-color-accent" ) } for ( var [ key , value ] of Object . entries ( palette . color ) ) document . body . setAttribute ( "data-md-color-" + key , value ) } </ script >
151+
152+
153+
154+
155+
156+ < label class ="md-header__button md-icon " for ="__search ">
157+
158+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5 "/> </ svg >
159+ </ label >
160+ < div class ="md-search " data-md-component ="search " role ="dialog ">
161+ < label class ="md-search__overlay " for ="__search "> </ label >
162+ < div class ="md-search__inner " role ="search ">
163+ < form class ="md-search__form " name ="search ">
164+ < input type ="text " class ="md-search__input " name ="query " aria-label ="Search " placeholder ="Search " autocapitalize ="off " autocorrect ="off " autocomplete ="off " spellcheck ="false " data-md-component ="search-query " required >
165+ < label class ="md-search__icon md-icon " for ="__search ">
166+
167+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5 "/> </ svg >
168+
169+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z "/> </ svg >
170+ </ label >
171+ < nav class ="md-search__options " aria-label ="Search ">
172+
173+ < button type ="reset " class ="md-search__icon md-icon " title ="Clear " aria-label ="Clear " tabindex ="-1 ">
174+
175+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z "/> </ svg >
176+ </ button >
177+ </ nav >
178+
179+ < div class ="md-search__suggest " data-md-component ="search-suggest "> </ div >
180+
181+ </ form >
182+ < div class ="md-search__output ">
183+ < div class ="md-search__scrollwrap " tabindex ="0 " data-md-scrollfix >
184+ < div class ="md-search-result " data-md-component ="search-result ">
185+ < div class ="md-search-result__meta ">
186+ Initializing search
187+ </ div >
188+ < ol class ="md-search-result__list " role ="presentation "> </ ol >
189+ </ div >
190+ </ div >
191+ </ div >
192+ </ div >
193+ </ div >
194+
195+
196+
197+ < div class ="md-header__source ">
198+ < a href ="https://github.com/modelcontextprotocol/python-sdk " title ="Go to repository " class ="md-source " data-md-component ="source ">
199+ < div class ="md-source__icon md-icon ">
200+
201+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 448 512 "> <!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--> < path fill ="currentColor " d ="M439.6 236.1 244 40.5c-5.4-5.5-12.8-8.5-20.4-8.5s-15 3-20.4 8.4L162.5 81l51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.3 199v121.9c25.3 12.5 22.3 41.8 9.1 55-6.4 6.4-15.2 10.1-24.3 10.1s-17.8-3.6-24.3-10.1c-17.6-17.6-11.1-46.9 11.2-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1C3 240.6 0 247.9 0 255.5s3 15 8.5 20.4l195.6 195.7c5.4 5.4 12.7 8.4 20.4 8.4s15-3 20.4-8.4l194.7-194.7c5.4-5.4 8.4-12.8 8.4-20.4s-3-15-8.4-20.4 "/> </ svg >
202+ </ div >
203+ < div class ="md-source__repository ">
204+ modelcontextprotocol/python-sdk
205+ </ div >
206+ </ a >
207+ </ div >
208+
209+ </ nav >
210+
211+ </ header >
212+
213+ < div class ="md-container " data-md-component ="container ">
214+
215+
216+
217+
218+
219+
220+ < main class ="md-main " data-md-component ="main ">
221+ < div class ="md-main__inner md-grid ">
222+
223+
224+
225+ < div class ="md-sidebar md-sidebar--primary " data-md-component ="sidebar " data-md-type ="navigation " >
226+ < div class ="md-sidebar__scrollwrap ">
227+ < div class ="md-sidebar__inner ">
228+
229+
230+
231+
232+ < nav class ="md-nav md-nav--primary " aria-label ="Navigation " data-md-level ="0 ">
233+ < label class ="md-nav__title " for ="__drawer ">
234+ < a href ="/python-sdk/. " title ="MCP Server " class ="md-nav__button md-logo " aria-label ="MCP Server " data-md-component ="logo ">
235+
236+
237+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 24 24 "> < path d ="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54 "/> </ svg >
238+
239+ </ a >
240+ MCP Server
241+ </ label >
242+
243+ < div class ="md-nav__source ">
244+ < a href ="https://github.com/modelcontextprotocol/python-sdk " title ="Go to repository " class ="md-source " data-md-component ="source ">
245+ < div class ="md-source__icon md-icon ">
246+
247+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 448 512 "> <!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--> < path fill ="currentColor " d ="M439.6 236.1 244 40.5c-5.4-5.5-12.8-8.5-20.4-8.5s-15 3-20.4 8.4L162.5 81l51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.3 199v121.9c25.3 12.5 22.3 41.8 9.1 55-6.4 6.4-15.2 10.1-24.3 10.1s-17.8-3.6-24.3-10.1c-17.6-17.6-11.1-46.9 11.2-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1C3 240.6 0 247.9 0 255.5s3 15 8.5 20.4l195.6 195.7c5.4 5.4 12.7 8.4 20.4 8.4s15-3 20.4-8.4l194.7-194.7c5.4-5.4 8.4-12.8 8.4-20.4s-3-15-8.4-20.4 "/> </ svg >
248+ </ div >
249+ < div class ="md-source__repository ">
250+ modelcontextprotocol/python-sdk
251+ </ div >
252+ </ a >
253+ </ div >
254+
255+ < ul class ="md-nav__list " data-md-scrollfix >
256+
257+
258+
259+
260+
261+
262+
263+ < li class ="md-nav__item ">
264+ < a href ="/python-sdk/. " class ="md-nav__link ">
265+
266+
267+
268+ < span class ="md-ellipsis ">
269+ Home
270+
271+ </ span >
272+
273+
274+ </ a >
275+ </ li >
276+
277+
278+
279+
280+
281+
282+
283+
284+
285+ < li class ="md-nav__item ">
286+ < a href ="/python-sdk/api/ " class ="md-nav__link ">
287+
288+
289+
290+ < span class ="md-ellipsis ">
291+ API Reference
292+
293+ </ span >
294+
295+
296+ </ a >
297+ </ li >
298+
299+
300+
301+ </ ul >
302+ </ nav >
303+ </ div >
304+ </ div >
305+ </ div >
306+
307+
308+
309+ < div class ="md-sidebar md-sidebar--secondary " data-md-component ="sidebar " data-md-type ="toc " >
310+ < div class ="md-sidebar__scrollwrap ">
311+ < div class ="md-sidebar__inner ">
312+
313+
314+ < nav class ="md-nav md-nav--secondary " aria-label ="Table of contents ">
315+
316+
317+
318+
319+ </ nav >
320+ </ div >
321+ </ div >
322+ </ div >
323+
324+
325+
326+ < div class ="md-content " data-md-component ="content ">
327+ < article class ="md-content__inner md-typeset ">
328+
329+ < h1 > 404 - Not found</ h1 >
330+
331+ </ article >
332+ </ div >
333+
334+
335+ < script > var tabs = __md_get ( "__tabs" ) ; if ( Array . isArray ( tabs ) ) e:for ( var set of document . querySelectorAll ( ".tabbed-set" ) ) { var labels = set . querySelector ( ".tabbed-labels" ) ; for ( var tab of tabs ) for ( var label of labels . getElementsByTagName ( "label" ) ) if ( label . innerText . trim ( ) === tab ) { var input = document . getElementById ( label . htmlFor ) ; input . checked = ! 0 ; continue e} } </ script >
336+
337+ < script > var target = document . getElementById ( location . hash . slice ( 1 ) ) ; target && target . name && ( target . checked = target . name . startsWith ( "__tabbed_" ) ) </ script >
338+ </ div >
339+
340+ </ main >
341+
342+ < footer class ="md-footer ">
343+
344+ < div class ="md-footer-meta md-typeset ">
345+ < div class ="md-footer-meta__inner md-grid ">
346+ < div class ="md-copyright ">
347+
348+
349+ Made with
350+ < a href ="https://squidfunk.github.io/mkdocs-material/ " target ="_blank " rel ="noopener ">
351+ Material for MkDocs
352+ </ a >
353+
354+ </ div >
355+
356+ </ div >
357+ </ div >
358+ </ footer >
359+
360+ </ div >
361+ < div class ="md-dialog " data-md-component ="dialog ">
362+ < div class ="md-dialog__inner md-typeset "> </ div >
363+ </ div >
364+
365+
366+
367+
368+ < script id ="__config " type ="application/json "> { "base" : "/python-sdk/" , "features" : [ "search.suggest" , "search.highlight" , "content.tabs.link" , "content.code.annotate" , "content.code.copy" , "content.code.select" , "navigation.path" , "navigation.indexes" , "navigation.sections" , "navigation.tracking" , "toc.follow" ] , "search" : "/python-sdk/assets/javascripts/workers/search.973d3a69.min.js" , "tags" : null , "translations" : { "clipboard.copied" : "Copied to clipboard" , "clipboard.copy" : "Copy to clipboard" , "search.result.more.one" : "1 more on this page" , "search.result.more.other" : "# more on this page" , "search.result.none" : "No matching documents" , "search.result.one" : "1 matching document" , "search.result.other" : "# matching documents" , "search.result.placeholder" : "Type to start searching" , "search.result.term.missing" : "Missing" , "select.version" : "Select version" } , "version" : null } </ script >
369+
370+
371+ < script src ="/python-sdk/assets/javascripts/bundle.92b07e13.min.js "> </ script >
372+
373+
374+ </ body >
375+ </ html >
0 commit comments