feat: add standards wiki, MCP registry, and app template
This commit is contained in:
3
main.py
3
main.py
@@ -16,6 +16,7 @@ from pathlib import Path
|
||||
|
||||
from config import MCPBundle, load_config
|
||||
from core import MCPServer
|
||||
from registry import StandardsMCPServer
|
||||
|
||||
APP_ROOT = Path(__file__).resolve().parent
|
||||
CONFIG_FILE = APP_ROOT / "config.yml"
|
||||
@@ -69,7 +70,7 @@ def run_health_server(port: int) -> None:
|
||||
|
||||
def run_server(name: str, bundle: MCPBundle) -> None:
|
||||
print(f"[START] {name} starting", flush=True)
|
||||
server = MCPServer(bundle)
|
||||
server = StandardsMCPServer(bundle) if bundle.kind == "registry" else MCPServer(bundle)
|
||||
server.app.run(transport="streamable-http")
|
||||
print(f"[EXIT] {name} exited", flush=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user