#!/usr/bin/env python
"""
Launcher script for MCP Invoice server.
This script should be run from the project root directory.
"""
import os
from src.mcp_invoice.server import InvoiceServer
if __name__ == "__main__":
# Check if debug mode is enabled
debug_mode = os.environ.get("MCP_INVOICE_DEBUG", "").lower() in ["true", "1", "yes"]
# Create server and run it directly
server = InvoiceServer(debug_mode=debug_mode)
# This will handle the event loop internally
server.mcp.run(transport='stdio')
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nfshanq/mcp-invoice'
If you have feedback or need assistance with the MCP directory API, please join our Discord server