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.5.45 ">
18+
19+
20+
21+ < title > MCP Server</ title >
22+
23+
24+
25+ < link rel ="stylesheet " href ="/python-sdk/assets/stylesheets/main.0253249f.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+ < label class ="md-header__button md-icon " for ="__search ">
155+
156+ < 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 >
157+ </ label >
158+ < div class ="md-search " data-md-component ="search " role ="dialog ">
159+ < label class ="md-search__overlay " for ="__search "> </ label >
160+ < div class ="md-search__inner " role ="search ">
161+ < form class ="md-search__form " name ="search ">
162+ < 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 >
163+ < label class ="md-search__icon md-icon " for ="__search ">
164+
165+ < 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 >
166+
167+ < 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 >
168+ </ label >
169+ < nav class ="md-search__options " aria-label ="Search ">
170+
171+ < button type ="reset " class ="md-search__icon md-icon " title ="Clear " aria-label ="Clear " tabindex ="-1 ">
172+
173+ < 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 >
174+ </ button >
175+ </ nav >
176+
177+ < div class ="md-search__suggest " data-md-component ="search-suggest "> </ div >
178+
179+ </ form >
180+ < div class ="md-search__output ">
181+ < div class ="md-search__scrollwrap " tabindex ="0 " data-md-scrollfix >
182+ < div class ="md-search-result " data-md-component ="search-result ">
183+ < div class ="md-search-result__meta ">
184+ Initializing search
185+ </ div >
186+ < ol class ="md-search-result__list " role ="presentation "> </ ol >
187+ </ div >
188+ </ div >
189+ </ div >
190+ </ div >
191+ </ div >
192+
193+
194+ < div class ="md-header__source ">
195+ < a href ="https://github.com/modelcontextprotocol/python-sdk " title ="Go to repository " class ="md-source " data-md-component ="source ">
196+ < div class ="md-source__icon md-icon ">
197+
198+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 448 512 "> <!--! Font Awesome Free 6.6.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 2024 Fonticons, Inc.--> < path d ="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81 "/> </ svg >
199+ </ div >
200+ < div class ="md-source__repository ">
201+ modelcontextprotocol/python-sdk
202+ </ div >
203+ </ a >
204+ </ div >
205+
206+ </ nav >
207+
208+ </ header >
209+
210+ < div class ="md-container " data-md-component ="container ">
211+
212+
213+
214+
215+
216+
217+ < main class ="md-main " data-md-component ="main ">
218+ < div class ="md-main__inner md-grid ">
219+
220+
221+
222+ < div class ="md-sidebar md-sidebar--primary " data-md-component ="sidebar " data-md-type ="navigation " >
223+ < div class ="md-sidebar__scrollwrap ">
224+ < div class ="md-sidebar__inner ">
225+
226+
227+
228+
229+ < nav class ="md-nav md-nav--primary " aria-label ="Navigation " data-md-level ="0 ">
230+ < label class ="md-nav__title " for ="__drawer ">
231+ < a href ="/python-sdk/. " title ="MCP Server " class ="md-nav__button md-logo " aria-label ="MCP Server " data-md-component ="logo ">
232+
233+
234+ < 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 >
235+
236+ </ a >
237+ MCP Server
238+ </ label >
239+
240+ < div class ="md-nav__source ">
241+ < a href ="https://github.com/modelcontextprotocol/python-sdk " title ="Go to repository " class ="md-source " data-md-component ="source ">
242+ < div class ="md-source__icon md-icon ">
243+
244+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 448 512 "> <!--! Font Awesome Free 6.6.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 2024 Fonticons, Inc.--> < path d ="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81 "/> </ svg >
245+ </ div >
246+ < div class ="md-source__repository ">
247+ modelcontextprotocol/python-sdk
248+ </ div >
249+ </ a >
250+ </ div >
251+
252+ < ul class ="md-nav__list " data-md-scrollfix >
253+
254+
255+
256+
257+
258+
259+
260+ < li class ="md-nav__item ">
261+ < a href ="/python-sdk/. " class ="md-nav__link ">
262+
263+
264+ < span class ="md-ellipsis ">
265+ Home
266+ </ span >
267+
268+
269+ </ a >
270+ </ li >
271+
272+
273+
274+
275+
276+
277+
278+
279+
280+ < li class ="md-nav__item ">
281+ < a href ="/python-sdk/api/ " class ="md-nav__link ">
282+
283+
284+ < span class ="md-ellipsis ">
285+ API Reference
286+ </ span >
287+
288+
289+ </ a >
290+ </ li >
291+
292+
293+
294+ </ ul >
295+ </ nav >
296+ </ div >
297+ </ div >
298+ </ div >
299+
300+
301+
302+ < div class ="md-sidebar md-sidebar--secondary " data-md-component ="sidebar " data-md-type ="toc " >
303+ < div class ="md-sidebar__scrollwrap ">
304+ < div class ="md-sidebar__inner ">
305+
306+
307+ < nav class ="md-nav md-nav--secondary " aria-label ="Table of contents ">
308+
309+
310+
311+
312+ </ nav >
313+ </ div >
314+ </ div >
315+ </ div >
316+
317+
318+
319+ < div class ="md-content " data-md-component ="content ">
320+ < article class ="md-content__inner md-typeset ">
321+
322+ < h1 > 404 - Not found</ h1 >
323+
324+ </ article >
325+ </ div >
326+
327+
328+ < 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 >
329+
330+ < script > var target = document . getElementById ( location . hash . slice ( 1 ) ) ; target && target . name && ( target . checked = target . name . startsWith ( "__tabbed_" ) ) </ script >
331+ </ div >
332+
333+ </ main >
334+
335+ < footer class ="md-footer ">
336+
337+ < div class ="md-footer-meta md-typeset ">
338+ < div class ="md-footer-meta__inner md-grid ">
339+ < div class ="md-copyright ">
340+
341+
342+ Made with
343+ < a href ="https://squidfunk.github.io/mkdocs-material/ " target ="_blank " rel ="noopener ">
344+ Material for MkDocs
345+ </ a >
346+
347+ </ div >
348+
349+ </ div >
350+ </ div >
351+ </ footer >
352+
353+ </ div >
354+ < div class ="md-dialog " data-md-component ="dialog ">
355+ < div class ="md-dialog__inner md-typeset "> </ div >
356+ </ div >
357+
358+
359+ < 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.6ce7567c.min.js" , "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" } } </ script >
360+
361+
362+ < script src ="/python-sdk/assets/javascripts/bundle.83f73b43.min.js "> </ script >
363+
364+
365+ </ body >
366+ </ html >
0 commit comments