Skip to content

Commit d28d6f2

Browse files
committed
WIP
1 parent f14dcc4 commit d28d6f2

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ dependencies = [
138138
"lxml>=6.0.2", # For python 3.14 pre-built wheels
139139
"filelock>=3.20.1", # CVE-2025-68146
140140
"marshmallow>=3.26.2", # CVE-2025-68480
141-
"fastmcp>=2.0.0,<3", # MCP server - Major version 3 is in beta as of 26/01/2026 and has not been released on PyPI. Upgraded once a stable release is out.
141+
"fastmcp>=2.0.0,<3", # MCP server - Major version 3 is in beta as of 26/01/2026 and has not been released on PyPI. Upgrade once a stable release is out.
142142
]
143143

144144
[project.optional-dependencies]

src/aignostics/CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This file provides a comprehensive overview of all modules in the Aignostics SDK
1111
| **wsi** | Whole slide image processing ||||
1212
| **dataset** | IDC dataset downloads ||||
1313
| **bucket** | Cloud storage operations ||||
14-
| **utils** | Core utilities, DI & MCP ||||
14+
| **utils** | Core utilities & DI ||||
1515
| **gui** | Desktop launchpad ||||
1616
| **notebook** | Marimo notebook server ||||
1717
| **qupath** | QuPath integration ||||
@@ -76,7 +76,7 @@ This file provides a comprehensive overview of all modules in the Aignostics SDK
7676

7777
### 🛠️ utils
7878

79-
**Core infrastructure, shared utilities, and MCP server**
79+
**Core infrastructure and shared utilities**
8080

8181
- **Core Features**:
8282
- Dependency injection, logging, settings, health checks
@@ -270,7 +270,7 @@ For detailed information about each module, see:
270270
- [wsi/CLAUDE.md](wsi/CLAUDE.md) - Image processing
271271
- [dataset/CLAUDE.md](dataset/CLAUDE.md) - Dataset operations
272272
- [bucket/CLAUDE.md](bucket/CLAUDE.md) - Storage management
273-
- [utils/CLAUDE.md](utils/CLAUDE.md) - Infrastructure details and MCP server
273+
- [utils/CLAUDE.md](utils/CLAUDE.md) - Infrastructure details
274274
- [gui/CLAUDE.md](gui/CLAUDE.md) - Desktop interface
275275
- [notebook/CLAUDE.md](notebook/CLAUDE.md) - Marimo notebook integration
276276
- [qupath/CLAUDE.md](qupath/CLAUDE.md) - QuPath integration

src/aignostics/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ def notebook(
7272
def mcp_run() -> None:
7373
"""Run the MCP server.
7474
75-
Starts an MCP server using stdio transport that exposes SDK functionality
75+
Starts an MCP server using `stdio` transport that exposes SDK functionality
7676
to AI agents. The server automatically discovers and mounts tools from
7777
the SDK and any installed plugins.
7878
7979
Examples:
80-
aignostics mcp run
80+
uv run aignostics mcp run
8181
"""
8282
from aignostics.utils import mcp_run # noqa: PLC0415
8383

@@ -93,7 +93,7 @@ def mcp_list_tools() -> None:
9393
name and description.
9494
9595
Examples:
96-
aignostics mcp list-tools
96+
uv run aignostics mcp list-tools
9797
"""
9898
import operator # noqa: PLC0415
9999

src/aignostics/utils/_mcp.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
"""MCP (Model Context Protocol) server utilities.
22
3-
This module provides utilities for creating and running MCP servers that expose
4-
SDK functionality to AI agents. It follows the same simple pattern as _gui.py -
5-
functions and constants rather than classes.
3+
This module provides utilities for creating and running a central MCP server
4+
that exposes tools from the Aignostics SDK and any installed plugins. It
5+
includes functions to discover MCP servers, create a combined server, run
6+
the server, and list available tools.
67
78
Example:
89
# Start MCP server via CLI
9-
aignostics mcp run
10+
uv run aignostics mcp run
1011
1112
# List available tools
12-
aignostics mcp list-tools
13+
uv run aignostics mcp list-tools
1314
1415
# Use programmatically
1516
from aignostics.utils import mcp_create_server, mcp_run, mcp_list_tools

0 commit comments

Comments
 (0)