You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 491B

1234567891011121314151617181920
  1. from flask import Blueprint
  2. from flask_restx import Namespace
  3. from libs.external_api import ExternalApi
  4. bp = Blueprint("mcp", __name__, url_prefix="/mcp")
  5. api = ExternalApi(
  6. bp,
  7. version="1.0",
  8. title="MCP API",
  9. description="API for Model Context Protocol operations",
  10. doc="/docs", # Enable Swagger UI at /mcp/docs
  11. )
  12. mcp_ns = Namespace("mcp", description="MCP operations", path="/")
  13. from . import mcp # pyright: ignore[reportUnusedImport]
  14. api.add_namespace(mcp_ns)