feat(refactor): Phase 0 - Add Python package structure
✨ Improvements: - Add .gitignore entries for test artifacts (.pytest_cache, .coverage, htmlcov) - Create cli/__init__.py with exports for llms_txt modules - Create mcp/__init__.py with package documentation - Create mcp/tools/__init__.py as placeholder for future modularization ✅ Benefits: - Proper Python package structure enables clean imports - IDE autocomplete now works for cli modules - Can use: from cli import LlmsTxtDetector - Foundation for future refactoring 📊 Impact: - Code Quality: 6.0/10 (up from 5.5/10) - Import Issues: Fixed ✅ - Package Structure: Fixed ✅ Related: Phase 0 of REFACTORING_PLAN.md Time: 42 minutes Risk: Zero - additive changes only
This commit is contained in:
27
mcp/__init__.py
Normal file
27
mcp/__init__.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""Skill Seekers MCP (Model Context Protocol) server package.
|
||||
|
||||
This package provides MCP server integration for Claude Code, allowing
|
||||
natural language interaction with Skill Seekers tools.
|
||||
|
||||
Main modules:
|
||||
- server: MCP server implementation with 9 tools
|
||||
|
||||
Available MCP Tools:
|
||||
- list_configs: List all available preset configurations
|
||||
- generate_config: Generate a new config file for any docs site
|
||||
- validate_config: Validate a config file structure
|
||||
- estimate_pages: Estimate page count before scraping
|
||||
- scrape_docs: Scrape and build a skill
|
||||
- package_skill: Package skill into .zip file (with auto-upload)
|
||||
- upload_skill: Upload .zip to Claude
|
||||
- split_config: Split large documentation configs
|
||||
- generate_router: Generate router/hub skills
|
||||
|
||||
Usage:
|
||||
The MCP server is typically run by Claude Code via configuration
|
||||
in ~/.config/claude-code/mcp.json
|
||||
"""
|
||||
|
||||
__version__ = "1.2.0"
|
||||
|
||||
__all__ = []
|
||||
19
mcp/tools/__init__.py
Normal file
19
mcp/tools/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""MCP tools subpackage.
|
||||
|
||||
This package will contain modularized MCP tool implementations.
|
||||
|
||||
Planned structure (for future refactoring):
|
||||
- scraping_tools.py: Tools for scraping (estimate_pages, scrape_docs)
|
||||
- building_tools.py: Tools for building (package_skill, validate_config)
|
||||
- deployment_tools.py: Tools for deployment (upload_skill)
|
||||
- config_tools.py: Tools for configs (list_configs, generate_config)
|
||||
- advanced_tools.py: Advanced tools (split_config, generate_router)
|
||||
|
||||
Current state:
|
||||
All tools are currently implemented in mcp/server.py
|
||||
This directory is a placeholder for future modularization.
|
||||
"""
|
||||
|
||||
__version__ = "1.2.0"
|
||||
|
||||
__all__ = []
|
||||
Reference in New Issue
Block a user