accept yaml spec for openapi
This commit is contained in:
@@ -8,10 +8,10 @@ from airflow_mcp_server.server import serve
|
|||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.option("--working-dir", "-w", type=Path, help="Working directory path")
|
@click.option("-y", "--yaml-spec", type=Path, help="YAML spec file")
|
||||||
@click.option("-v", "--verbose", count=True)
|
@click.option("-v", "--verbose", count=True)
|
||||||
def main(working_dir: Path | None, verbose: bool) -> None:
|
def main(yaml_spec: Path | None, verbose: bool) -> None:
|
||||||
"""MCP Code Assist Server - Code operations for MCP"""
|
"""MCP server for Airflow"""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
logging_level = logging.WARN
|
logging_level = logging.WARN
|
||||||
@@ -21,7 +21,7 @@ def main(working_dir: Path | None, verbose: bool) -> None:
|
|||||||
logging_level = logging.DEBUG
|
logging_level = logging.DEBUG
|
||||||
|
|
||||||
logging.basicConfig(level=logging_level, stream=sys.stderr)
|
logging.basicConfig(level=logging_level, stream=sys.stderr)
|
||||||
asyncio.run(serve(working_dir))
|
asyncio.run(serve(yaml_spec))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user