Add comprehensive bash script tests and fix old mcp/ path references

- Created tests/test_setup_scripts.py with 19 tests covering:
  * setup_mcp.sh validation (11 tests)
  * General bash script quality (4 tests)
  * MCP path consistency across codebase (4 tests)

- Fixed old 'mcp/' references in documentation:
  * docs/B1_COMPLETE_SUMMARY.md (3 refs)
  * docs/PDF_MCP_TOOL.md (2 refs)
  * docs/MCP_SETUP.md (18 refs)
  * docs/TEST_MCP_IN_CLAUDE_CODE.md (4 refs)

These tests would have caught Issue #157 before it reached users.

Tests verify:
- Bash syntax validity
- No hardcoded paths
- Correct skill_seeker_mcp/ directory references
- Files referenced in scripts actually exist
- No deprecated backticks
- Proper error handling (set -e)

All 19 tests passing 
This commit is contained in:
yusyus
2025-10-26 17:33:39 +03:00
parent d59f5867a8
commit 962b5b9340
5 changed files with 248 additions and 27 deletions

View File

@@ -165,7 +165,7 @@ Returns `TextContent` with:
### MCP Server Changes
**Location:** `mcp/server.py`
**Location:** `skill_seeker_mcp/server.py`
**Changes:**
1. Added `scrape_pdf` to `list_tools()` (lines 220-249)
@@ -304,7 +304,7 @@ Error: json.decoder.JSONDecodeError: Expecting value: line 1 column 1
```bash
# 1. Start MCP server
python3 mcp/server.py
python3 skill_seeker_mcp/server.py
# 2. Test with MCP client or via Claude Code