Develop and manage the Splitrail MCP server interface for programmatic usage statistics and tool integration.
Install
mkdir -p .claude/skills/mcp && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11866" && unzip -o skill.zip -d .claude/skills/mcp && rm skill.zipInstalls to .claude/skills/mcp
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Guide for working with Splitrail's MCP server. Use when adding tools, resources, or modifying the MCP interface.Key capabilities
- →Query usage statistics with date filtering.
- →Analyze model usage distribution.
- →Get cost breakdown over a date range.
- →Get file operation statistics.
- →Compare usage across different AI coding tools.
How it works
The skill guides interaction with Splitrail's MCP server, which allows AI assistants to query usage statistics programmatically through defined tools and resources.
Inputs & outputs
When to use mcp
- →Add a new tool to the MCP server
- →Define new usage data resources
- →Implement tool handlers in Rust
- →Modify existing MCP interface types
About this skill
MCP Server
Splitrail can run as an MCP server, allowing AI assistants to query usage statistics programmatically.
cargo run -- mcp
Source Files
src/mcp/mod.rs- Module exportssrc/mcp/server.rs- Server implementation and tool handlerssrc/mcp/types.rs- Request/response types
Available Tools
get_daily_stats- Query usage statistics with date filteringget_model_usage- Analyze model usage distributionget_cost_breakdown- Get cost breakdown over a date rangeget_file_operations- Get file operation statisticscompare_tools- Compare usage across different AI coding toolslist_analyzers- List available analyzers
Resources
splitrail://summary- Daily summaries across all datessplitrail://models- Model usage breakdown
Adding a New Tool
- Define the tool handler in
src/mcp/server.rsusing the#[tool]macro - Add request/response types to
src/mcp/types.rsif needed
See existing tools in src/mcp/server.rs for the pattern.
Adding a New Resource
- Add URI constant to
resource_urismodule insrc/mcp/server.rs - Add to
list_resources()method - Handle in
read_resource()method
When not to use it
- →When not working with Splitrail's MCP server.
- →When adding tools or resources outside of the defined structure.
- →When not querying usage statistics or cost breakdowns.
Limitations
- →Requires Splitrail to run as an MCP server.
- →Tool handlers are defined in `src/mcp/server.rs`.
- →Request/response types are in `src/mcp/types.rs`.
How it compares
This skill provides a structured interface for programmatic access to Splitrail's usage statistics and cost breakdowns, offering a more automated and data-driven approach than manual data retrieval.
Compared to similar skills
mcp side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| mcp (this skill) | 0 | 7mo | Review | Advanced |
| add-api-version | 1 | 6mo | Review | Advanced |
| solana-dev | 0 | 3mo | Review | Advanced |
| maple-rust-style | 0 | 3mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Piebald-AI
View all by Piebald-AI →You might also like
add-api-version
oxidecomputer
Add a new version to a Dropshot HTTP API. Use when the user wants to make versioned changes to a Dropshot-managed HTTP API, such as adding, making changes to, or removing an API endpoint.
solana-dev
mashharuki
Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "deploy to devnet", or "explain Solana concepts" (rent, accounts, PDAs, CPIs, etc.). End-to-end Solana development playbook covering
maple-rust-style
Makisuo
Rust OpenTelemetry style for Maple: opentelemetry + opentelemetry_sdk + opentelemetry-otlp HTTP exporter, tracing-opentelemetry bridge for the tracing crate, inline endpoint + ingest key, semconv resource attributes.
solana-dev
solanabr
Unified skill hub for Solana development. Routes to external submodule skills (solana-foundation, sendai, solana-game, trailofbits, cloudflare, qedgen, colosseum) and local skills. Progressive disclosure — read only what you need.
azure-eventhub-rust
RJsolucoes
|
use-rest-api
torrust
Use the Torrust Tracker REST API. Covers authentication, all endpoints (stats, metrics, torrents, auth keys, whitelist), and making announce/scrape requests to verify API behaviour. Triggers on "use API", "test API", "call REST API", "query API", "API endpoint", "curl tracker", "tracker client", "an