Skip to content

Commit c9c6f35

Browse files
chore: daily sync of plugin metadata and READMEs [automated]
1 parent 99c4504 commit c9c6f35

8 files changed

Lines changed: 35 additions & 9 deletions

plugins/advanced-alchemy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compatibility:
1616
litestar: '>=2.0.0'
1717
icon: advanced-alchemy.png
1818
stars: 786
19-
monthly_downloads: 396088
19+
monthly_downloads: 384559
2020
latest_version: 1.11.0
2121
updated_at: '2026-05-31T18:14:26'
2222
created_at: '2023-09-17T17:39:42'

plugins/litestar-email.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compatibility:
1616
litestar: '>=2.0.0'
1717
icon: _default_icon.svg
1818
stars: 14
19-
monthly_downloads: 2582
19+
monthly_downloads: 2764
2020
latest_version: 0.4.0
2121
updated_at: '2026-05-03T16:59:03'
2222
created_at: '2026-01-04T21:35:28'

plugins/litestar-granian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compatibility:
1616
litestar: '>=2.0.0'
1717
icon: litestar-granian.png
1818
stars: 43
19-
monthly_downloads: 67962
19+
monthly_downloads: 66455
2020
latest_version: 0.15.0
2121
updated_at: '2026-04-18T23:15:31'
2222
created_at: '2023-10-02T01:42:04'

plugins/litestar-htmx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compatibility:
1616
litestar: '>=2.0.0'
1717
icon: litestar-htmx.svg
1818
stars: 12
19-
monthly_downloads: 1657301
19+
monthly_downloads: 1640026
2020
latest_version: 0.5.0
2121
updated_at: '2025-06-11T21:19:45'
2222
created_at: '2024-10-20T17:49:03'

plugins/litestar-mcp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ compatibility:
1616
litestar: '>=2.0.0'
1717
icon: _default_icon.svg
1818
stars: 10
19-
monthly_downloads: 4485
20-
latest_version: 0.8.0
21-
updated_at: '2026-06-24T18:03:11'
19+
monthly_downloads: 4588
20+
latest_version: 0.9.0
21+
updated_at: '2026-06-29T00:53:31'
2222
created_at: '2025-09-06T19:14:18'
2323
python_compatibility_raw: '>=3.10'
2424
python_compatibility:

plugins/litestar-oracledb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compatibility:
1616
litestar: '>=2.0.0'
1717
icon: litestar-oracledb.svg
1818
stars: 4
19-
monthly_downloads: 65
19+
monthly_downloads: 64
2020
latest_version: 0.2.0
2121
updated_at: '2024-09-04T20:30:03'
2222
created_at: '2024-08-29T19:33:20'

plugins/litestar-vite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compatibility:
1616
litestar: '>=2.0.0'
1717
icon: litestar-vite.svg
1818
stars: 34
19-
monthly_downloads: 67962
19+
monthly_downloads: 66455
2020
latest_version: 0.15.0
2121
updated_at: '2026-04-18T23:15:31'
2222
created_at: '2023-10-02T01:42:04'

readmes/litestar-mcp.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,32 @@ app = Litestar(
6464
)
6565
```
6666

67+
### Standalone Application (Alternative)
68+
69+
If you are building a standalone MCP server, you can use the ``MCP`` class which provides a simplified declarative API and programmatically boots the server using the standard Litestar CLI:
70+
71+
```python
72+
from litestar_mcp import MCP
73+
74+
# 1. Initialize the application
75+
mcp = MCP("my-mcp-server", instructions="Exposes utility tools.")
76+
77+
# 2. Register tools, resources, or prompts using decorators
78+
@mcp.tool()
79+
def add(a: int, b: int) -> int:
80+
"""Calculate the sum of two integers."""
81+
return a + b
82+
83+
# 3. Expose the app globally so that the CLI can discover it
84+
app = mcp.app
85+
86+
if __name__ == "__main__":
87+
# 4. Boot the server using Server-Sent Events (SSE)
88+
mcp.run(port=8000)
89+
```
90+
91+
The standalone decorators accept Litestar route-handler keyword arguments such as `dependencies`, `guards`, `response_headers`, `responses`, `summary`, `tags`, DTO options, hooks, and arbitrary extra kwargs stored in `handler.opt`. The `name` keyword names the MCP primitive; use `route_name` to set Litestar's route-handler name separately.
92+
6793
### With Configuration
6894

6995
```python

0 commit comments

Comments
 (0)