home / mcp / sakari mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-sakari": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "{\"server\": {\"name\": \"sakari_mcp\"}}",
"SECURITY": "YOUR_SECURITY_PARAMS",
"CONFIG_PATH": "mcp_server/mcp_config.json"
}
}
}
}You run an MCP server that exposes the Sakari OpenAPI-based API as a context-aware endpoint for MCP clients. This server lets clients send requests with preserved context, enabling richer interactions and automatic coordination across services.
Start the server in stdio mode to run locally and test MCP client interactions. You will connect via the standard in/out channel, allowing your client to exchange context-enabled calls with the server.
Prerequisites are Python 3.9+ and the tooling you use to install dependencies and run the server.
# Step 1: Clone the project
git clone <repository-url>
cd mcp-server
# Step 2: Install dependencies (preferred in dev environment)
pip install -e ".[dev]"
# Alternative if you are using uv to manage the environment
uv pip install --editable ".[dev]"You can run the MCP server in standard input/output mode using Python. The following command starts the server in stdio mode and makes it ready to communicate with an MCP client.
python mcp_server/main.py stdioConfigure runtime behavior with environment variables. You can point to a JSON configuration file or provide a JSON string to customize the MCP server. Core environment controls include the following.
# Optional: point to a JSON configuration file
export CONFIG_PATH=mcp_server/mcp_config.json
# Or provide a JSON string directly
export CONFIG='{"server": {"name": "sakari_mcp"}}'
# Security-related controls (example placeholder)
export SECURITY=YOUR_SECURITY_PARAMSQuality checks help you maintain a healthy codebase. Run linting, formatting, static analysis, and tests to ensure the server remains stable as you develop.
# Linting
ruff check
# Formatting
ruff format
# Static analysis
./scripts/static-analysis.sh
# Running tests with coverage
./scripts/test.shRun linting to catch syntax and style issues using a linter so your code adheres to project standards.
Format code automatically to keep a consistent code style across the project.
Perform static analysis to identify security and quality issues (mypy, bandit, semgrep).
Execute the test suite to verify functionality and measure test coverage.
Hook into pre-commit to automatically run checks before committing changes.