MCPServer
Syntax
MCPServer(name, description, version, cors, statsEnabled, force)Parameters
Parameter
Type
Required
Default
Description
Returns
Examples
Basic MCP Server
Complete Server Setup
HTTP Endpoint
Register Resource
Register Prompt
Multiple Tools
CORS Configuration
Statistics Tracking
Multi-Server Architecture
Dynamic Tool Registration
Inspect Server
Force Rebuild
Singleton Pattern
Remove Tools/Resources
Error Handling
Integration with Agent
Secure Endpoint
Development vs Production
Notes
Related Functions
Best Practices
Last updated