Buckets:
| """ | |
| vMCP - Virtual Model Context Protocol | |
| ====================================== | |
| Main application entry point. | |
| Creates and configures the FastAPI application with MCP server. | |
| """ | |
| import uvicorn | |
| from vmcp.config import settings | |
| from vmcp.utilities.logging import get_logger | |
| # Setup logging | |
| # get_logger() | |
| logger = get_logger(__name__) | |
| def main(): | |
| """Run the vMCP App server.""" | |
| # CRITICAL: Register OSS services BEFORE creating app | |
| # Only register when running as main, not when imported by enterprise | |
| from vmcp.core.services import register_oss_services | |
| from vmcp.server import create_app | |
| register_oss_services() | |
| logger.info("✅ OSS services registered") | |
| # Create the FastAPI application with MCP server | |
| app = create_app() | |
| logger.info(f"🚀 Starting vMCP App server on {settings.host}:{settings.port}") | |
| uvicorn.run( | |
| app, # Pass app instance directly | |
| host=settings.host, | |
| port=settings.port, | |
| reload=settings.env == "development", | |
| log_level=settings.log_level.lower(), | |
| access_log=True | |
| ) | |
| if __name__ == "__main__": | |
| main() | |
Xet Storage Details
- Size:
- 1.13 kB
- Xet hash:
- 27cd5ccfb799975a3f32226314fda187db4d68bb8e2a0f8d82afe76f3ddb8ad1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.