fix: resolve CI/CD workflow and linting issues
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
"""Command-line interface for MCP Server CLI using Click."""
|
"""Command-line interface for MCP Server CLI using Click."""
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
import logging
|
|
||||||
|
|
||||||
import click
|
import click
|
||||||
from click.core import Context
|
from click.core import Context
|
||||||
|
|
||||||
from mcp_server_cli.config import ConfigManager, load_config_from_path, create_config_template
|
from mcp_server_cli.config import ConfigManager, create_config_template, load_config_from_path
|
||||||
from mcp_server_cli.server import run_server, create_app
|
from mcp_server_cli.server import run_server
|
||||||
from mcp_server_cli.tools import FileTools, GitTools, ShellTools
|
from mcp_server_cli.tools import FileTools, GitTools, ShellTools
|
||||||
|
|
||||||
|
|
||||||
@@ -152,7 +150,6 @@ def config_show(ctx: Context):
|
|||||||
if config_path:
|
if config_path:
|
||||||
try:
|
try:
|
||||||
config = load_config_from_path(config_path)
|
config = load_config_from_path(config_path)
|
||||||
import json
|
|
||||||
click.echo(config.model_dump_json(indent=2))
|
click.echo(config.model_dump_json(indent=2))
|
||||||
return
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@@ -160,7 +157,6 @@ def config_show(ctx: Context):
|
|||||||
|
|
||||||
config_manager = ConfigManager()
|
config_manager = ConfigManager()
|
||||||
default_config = config_manager.generate_default_config()
|
default_config = config_manager.generate_default_config()
|
||||||
import json
|
|
||||||
click.echo("Default configuration:")
|
click.echo("Default configuration:")
|
||||||
click.echo(default_config.model_dump_json(indent=2))
|
click.echo(default_config.model_dump_json(indent=2))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user