Skip to content

Commit 542e4c6

Browse files
authored
Merge branch 'modelcontextprotocol:main' into skippable-initialization
2 parents abd6891 + f51692f commit 542e4c6

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

docs/docs/develop/build-server.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,12 @@ Forecast: {period['detailedForecast']}
252252
Finally, let's initialize and run the server:
253253

254254
```python
255-
if __name__ == "__main__":
255+
def main():
256256
# Initialize and run the server
257257
mcp.run(transport='stdio')
258+
259+
if __name__ == "__main__":
260+
main()
258261
```
259262

260263
Your server is complete! Run `uv run weather.py` to start the MCP server, which will listen for messages from MCP hosts.

docs/specification/draft/schema.mdx

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,15 @@ export interface Icon {
319319
* If not provided, the client should assume that the icon can be used at any size.
320320
*/
321321
sizes?: string[];
322+
323+
/**
324+
* Optional specifier for the theme this icon is designed for. `light` indicates
325+
* the icon is designed to be used with a light background, and `dark` indicates
326+
* the icon is designed to be used with a dark background.
327+
*
328+
* If not provided, the client should assume the icon can be used with any theme.
329+
*/
330+
theme?: 'light' | 'dark';
322331
}
323332

324333
/**

0 commit comments

Comments
 (0)