ccusage / mcp / createMcpServer
Function: createMcpServer()
ts
function createMcpServer(options): McpServer;
Creates an MCP server with tools for showing usage reports. Registers tools for daily, session, monthly, and blocks usage data.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
options | LoadOptions | defaultOptions | Configuration options for the MCP server |
Returns
McpServer
Configured MCP server instance with registered tools