feat: API docs for mcp (#24424)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
b7466f8b65
commit
3075d415e1
2 changed files with 65 additions and 18 deletions
|
|
@ -1,8 +1,20 @@
|
|||
from flask import Blueprint
|
||||
from flask_restx import Namespace
|
||||
|
||||
from libs.external_api import ExternalApi
|
||||
|
||||
bp = Blueprint("mcp", __name__, url_prefix="/mcp")
|
||||
api = ExternalApi(bp)
|
||||
|
||||
api = ExternalApi(
|
||||
bp,
|
||||
version="1.0",
|
||||
title="MCP API",
|
||||
description="API for Model Context Protocol operations",
|
||||
doc="/docs", # Enable Swagger UI at /mcp/docs
|
||||
)
|
||||
|
||||
mcp_ns = Namespace("mcp", description="MCP operations")
|
||||
|
||||
from . import mcp
|
||||
|
||||
api.add_namespace(mcp_ns)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue