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."""
|
||||
|
||||
import sys
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
import logging
|
||||
|
||||
import click
|
||||
from click.core import Context
|
||||
|
||||
from mcp_server_cli.config import ConfigManager, load_config_from_path, create_config_template
|
||||
from mcp_server_cli.server import run_server, create_app
|
||||
from mcp_server_cli.config import ConfigManager, create_config_template, load_config_from_path
|
||||
from mcp_server_cli.server import run_server
|
||||
from mcp_server_cli.tools import FileTools, GitTools, ShellTools
|
||||
|
||||
|
||||
@@ -152,7 +150,6 @@ def config_show(ctx: Context):
|
||||
if config_path:
|
||||
try:
|
||||
config = load_config_from_path(config_path)
|
||||
import json
|
||||
click.echo(config.model_dump_json(indent=2))
|
||||
return
|
||||
except Exception as e:
|
||||
@@ -160,7 +157,6 @@ def config_show(ctx: Context):
|
||||
|
||||
config_manager = ConfigManager()
|
||||
default_config = config_manager.generate_default_config()
|
||||
import json
|
||||
click.echo("Default configuration:")
|
||||
click.echo(default_config.model_dump_json(indent=2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user