Files
skill-seekers-reference/skill_seeker_mcp/__init__.py
yusyus 7cc3d8b175 Fix all tests: 297/297 passing, 0 skipped, 0 failed
CHANGES:

1. **Fixed 9 PDF Scraper Test Failures:**
   - Added .get() safety for missing page keys (headings, text, code_blocks, images)
   - Supported both 'code_samples' and 'code_blocks' keys for compatibility
   - Fixed extract_pdf() to raise RuntimeError on failure (tests expect exception)
   - Added image saving functionality to _generate_reference_file()
   - Updated all test methods to override skill_dir with temp directory
   - Fixed categorization to handle pre-categorized test data

2. **Fixed 25 MCP Test Skips:**
   - Renamed mcp/ directory to skill_seeker_mcp/ to avoid shadowing external mcp package
   - Updated all imports in tests/test_mcp_server.py
   - Simplified skill_seeker_mcp/server.py import logic (no more shadowing workarounds)
   - Updated tests/test_package_structure.py to reference skill_seeker_mcp

3. **Test Results:**
   -  297 tests passing (100%)
   -  0 tests skipped
   -  0 tests failed
   - All test categories passing:
     * 23 package structure tests
     * 18 PDF scraper tests
     * 67 PDF extractor/advanced tests
     * 25 MCP server tests
     * 164 other core tests

BREAKING CHANGE: MCP server directory renamed from `mcp/` to `skill_seeker_mcp/`

📦 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 00:51:18 +03:00

28 lines
937 B
Python

"""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__ = []