Files
skill-seekers-reference/docs
MiaoDX bd974148a2 feat: Update MCP to use server_fastmcp with venv Python support
This PR improves MCP server configuration by updating all documentation
to use the current server_fastmcp module and ensuring setup scripts
automatically use virtual environment Python instead of system Python.

## Changes

### 1. Documentation Updates (server → server_fastmcp)

Updated all references from deprecated `server` module to `server_fastmcp`:

**User-facing documentation:**
- examples/http_transport_examples.sh: All 13 command examples
- README.md: Configuration examples and troubleshooting commands
- docs/guides/MCP_SETUP.md: Enhanced migration guide with stdio/HTTP examples
- docs/guides/TESTING_GUIDE.md: Test import statements
- docs/guides/MULTI_AGENT_SETUP.md: Updated examples
- docs/guides/SETUP_QUICK_REFERENCE.md: Updated paths
- CLAUDE.md: CLI command examples

**MCP module:**
- src/skill_seekers/mcp/README.md: Updated config examples
- src/skill_seekers/mcp/agent_detector.py: Use server_fastmcp module

Note: Historical release notes (CHANGELOG.md) preserved unchanged.

### 2. Venv Python Configuration

**setup_mcp.sh improvements:**
- Added automatic venv detection (checks .venv, venv, and $VIRTUAL_ENV)
- Sets PYTHON_CMD to venv Python path when available
- **CRITICAL FIX**: Now updates PYTHON_CMD after creating/activating venv
- Generates MCP configs with full venv Python path
- Falls back to system python3 if no venv found
- Displays detected Python version and path

**Config examples updated:**
- .claude/mcp_config.example.json: Use venv Python path
- example-mcp-config.json: Use venv Python path
- Added "type": "stdio" for clarity
- Updated to use server_fastmcp module

### 3. Bug Fix: PYTHON_CMD Not Updated After Venv Creation

Previously, when setup_mcp.sh created or activated a venv, it failed to
update PYTHON_CMD, causing generated configs to still use system python3.

**Fixed cases:**
- When $VIRTUAL_ENV is already set → Update PYTHON_CMD to venv Python
- When existing venv is activated → Set PYTHON_CMD="$REPO_PATH/venv/bin/python3"
- When new venv is created → Set PYTHON_CMD="$REPO_PATH/venv/bin/python3"

## Benefits

### For Users:
 No deprecation warnings - All docs show current module
 Proper Python environment - MCP uses venv with all dependencies
 No system Python issues - Avoids "module not found" errors
 No global installation needed - No --break-system-packages required
 Automatic detection - setup_mcp.sh finds venv automatically
 Clean isolation - Projects don't interfere with system Python

### For Maintainers:
 Prepared for v3.0.0 - Documentation ready for server.py removal
 Reduced support burden - Fewer MCP configuration issues
 Consistent examples - All docs use same module/pattern

## Testing

**Verified:**
-  All command examples use server_fastmcp
-  No deprecated module references in user-facing docs (0 results)
-  New module correctly referenced (129 instances)
-  setup_mcp.sh detects venv and generates correct config
-  PYTHON_CMD properly updated after venv creation
-  MCP server starts correctly with venv Python

**Files changed:** 12 files (+262/-107 lines)

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-18 15:55:46 +08:00
..

Skill Seekers Documentation

Welcome to the Skill Seekers documentation hub. This directory contains comprehensive documentation organized by category.

📚 Quick Navigation

🆕 New in v2.7.0

Recently Added Documentation:

🚀 Getting Started

New to Skill Seekers? Start here:

📖 User Guides

Essential guides for setup and daily usage:

Feature Documentation

Learn about core features and capabilities:

Core Features

AI Enhancement

PDF Features

🔌 Platform Integrations

Multi-LLM platform support:

📘 Reference Documentation

Technical reference and architecture:

📋 Planning & Design

Development plans and designs:

📦 Archive

Historical documentation and completed features:

🤝 Contributing

Want to contribute? See:

📝 Changelog

  • CHANGELOG - Version history and release notes

For Users

For Developers

API & Tools

🔍 Finding What You Need

I want to...

Get started quicklyQuick Reference or Quickstart Guide

Find quick answersFAQ - Frequently asked questions

Use Skill Seekers programmaticallyAPI Reference - Python integration

Set up MCP serverMCP Setup Guide

Run testsTesting Guide - 1200+ tests

Understand code quality standardsCode Quality - Linting and CI/CD

Upgrade to new versionMigration Guide - Version upgrades

Scrape documentationUsage Guide → Documentation Scraping

Scrape GitHub reposUsage Guide → GitHub Scraping

Scrape PDFsPDF Scraper

Combine multiple sourcesUnified Scraping

Enhance my skill with AIAI Enhancement

Upload to Google GeminiGemini Integration

Upload to ChatGPTOpenAI Integration

Understand design patternsPattern Detection

Extract test examplesTest Example Extraction

Generate how-to guidesHow-To Guides

Create self-documenting skillBootstrap Skill - Dogfooding

Fix an issueTroubleshooting or FAQ

Contribute codeContributing Guide and Code Quality

📢 Support


Documentation Version: 2.7.0 Last Updated: 2026-01-18 Status: Complete & Organized