This commit is contained in:
Pablo Estevez
2026-01-17 17:29:21 +00:00
parent c89f059712
commit 5ed767ff9a
144 changed files with 14142 additions and 16488 deletions

View File

@@ -21,40 +21,46 @@ warnings.warn(
" NEW: python -m skill_seekers.mcp.server_fastmcp\n"
"The new server provides the same functionality with improved performance.",
DeprecationWarning,
stacklevel=2
stacklevel=2,
)
# Re-export tool functions for backward compatibility with tests
try:
from skill_seekers.mcp.tools.config_tools import (
generate_config as generate_config_tool,
)
from skill_seekers.mcp.tools.config_tools import (
list_configs as list_configs_tool,
)
from skill_seekers.mcp.tools.config_tools import (
validate_config as validate_config_tool,
)
from skill_seekers.mcp.tools.packaging_tools import (
install_skill_tool,
package_skill_tool,
upload_skill_tool,
)
from skill_seekers.mcp.tools.scraping_tools import (
detect_patterns_tool,
estimate_pages_tool,
extract_config_patterns_tool,
run_subprocess_with_streaming,
scrape_docs_tool,
scrape_github_tool,
scrape_pdf_tool,
detect_patterns_tool,
extract_config_patterns_tool,
run_subprocess_with_streaming,
)
from skill_seekers.mcp.tools.packaging_tools import (
package_skill_tool,
upload_skill_tool,
install_skill_tool,
from skill_seekers.mcp.tools.source_tools import (
add_config_source_tool,
fetch_config_tool,
list_config_sources_tool,
remove_config_source_tool,
submit_config_tool,
)
from skill_seekers.mcp.tools.splitting_tools import (
generate_router as generate_router_tool,
)
from skill_seekers.mcp.tools.splitting_tools import (
split_config as split_config_tool,
generate_router as generate_router_tool,
)
from skill_seekers.mcp.tools.source_tools import (
fetch_config_tool,
submit_config_tool,
add_config_source_tool,
list_config_sources_tool,
remove_config_source_tool,
)
# For test compatibility - create call_tool router function
@@ -110,96 +116,85 @@ try:
async def list_tools():
"""Mock list_tools for backward compatibility with tests."""
from mcp.types import Tool
tools = [
Tool(
name="generate_config",
description="Generate config file",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="list_configs",
description="List available configs",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="validate_config",
description="Validate config file",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="estimate_pages",
description="Estimate page count",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="scrape_docs",
description="Scrape documentation",
inputSchema={"type": "object", "properties": {}}
name="scrape_docs", description="Scrape documentation", inputSchema={"type": "object", "properties": {}}
),
Tool(
name="scrape_github",
description="Scrape GitHub repository",
inputSchema={"type": "object", "properties": {}}
),
Tool(
name="scrape_pdf",
description="Scrape PDF file",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(name="scrape_pdf", description="Scrape PDF file", inputSchema={"type": "object", "properties": {}}),
Tool(
name="package_skill",
description="Package skill into .zip",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="upload_skill",
description="Upload skill to Claude",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(name="install_skill", description="Install skill", inputSchema={"type": "object", "properties": {}}),
Tool(
name="install_skill",
description="Install skill",
inputSchema={"type": "object", "properties": {}}
),
Tool(
name="split_config",
description="Split large config",
inputSchema={"type": "object", "properties": {}}
name="split_config", description="Split large config", inputSchema={"type": "object", "properties": {}}
),
Tool(
name="generate_router",
description="Generate router skill",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="fetch_config",
description="Fetch config from source",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="submit_config",
description="Submit config to community",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="add_config_source",
description="Add config source",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="list_config_sources",
description="List config sources",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="remove_config_source",
description="Remove config source",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
Tool(
name="extract_config_patterns",
description="Extract configuration patterns from config files",
inputSchema={"type": "object", "properties": {}}
inputSchema={"type": "object", "properties": {}},
),
]
return tools
@@ -212,6 +207,7 @@ except ImportError:
if __name__ == "__main__":
try:
from skill_seekers.mcp import server_fastmcp
# Run the new server
server_fastmcp.main()
except ImportError as e: