tools
tools
¶
Marianne MCP Tools - Tool implementations for Marianne job management.
This module implements MCP tools that expose Marianne's job management capabilities to external AI agents. Tools are organized by category:
- JobTools: Job lifecycle management (list, get, start)
- ControlTools: Job control operations (pause, resume, cancel)
- ArtifactTools: Workspace and artifact management
Each tool follows the MCP specification for parameter schemas and return values. Tools leverage the existing JobControlService for consistent behavior with the dashboard.
Classes¶
JobTools
¶
Marianne job lifecycle management tools.
Provides MCP tools for running, monitoring, and querying Marianne jobs. Tools require explicit user consent due to file system and process execution.
Routes through the conductor for all operations.
Source code in src/marianne/mcp/tools.py
Functions¶
list_tools
async
¶
List all job management tools.
Source code in src/marianne/mcp/tools.py
call_tool
async
¶
Execute a job management tool.
Source code in src/marianne/mcp/tools.py
ControlTools
¶
Marianne job control tools.
Provides MCP tools for controlling running Marianne jobs (pause, resume, cancel). These tools interact with job processes and require user consent.
Routes through the conductor for all operations.
Source code in src/marianne/mcp/tools.py
Functions¶
list_tools
async
¶
List all job control tools.
Source code in src/marianne/mcp/tools.py
call_tool
async
¶
Execute a job control tool.
Source code in src/marianne/mcp/tools.py
ArtifactTools
¶
Marianne artifact and workspace management tools.
Provides MCP tools for browsing workspace files and accessing job artifacts. File system access is restricted to designated workspace directories.
Source code in src/marianne/mcp/tools.py
Functions¶
list_tools
async
¶
call_tool
async
¶
Execute an artifact management tool.
Source code in src/marianne/mcp/tools.py
ScoreTools
¶
Marianne code quality score tools.
Provides MCP tools for validating and generating quality scores for code changes using Marianne's AI-powered review system. Tools analyze git diffs and provide detailed feedback on code quality, test coverage, security, and documentation.
Source code in src/marianne/mcp/tools.py
Functions¶
list_tools
async
¶
List all score management tools.
Returns empty list because validate_score and generate_score are stub implementations. Registering stubs misleads MCP clients into expecting working functionality. Re-enable when backend integration is complete.
Source code in src/marianne/mcp/tools.py
call_tool
async
¶
Execute a score tool.