Troubleshooting¶
Common issues and solutions for the Startup Valuation library, MCP server, and AI Agent Skills.
Installation Issues¶
fastmcp not found¶
Error: ModuleNotFoundError: No module named 'fastmcp'
Solution: Install the MCP extras:
startup_valuation not found¶
Error: ModuleNotFoundError: No module named 'startup_valuation'
Solution: Install the library:
Version mismatch¶
Error: Unexpected behavior or missing functions
Solution: Check your installed version:
Ensure you're on the latest version:
MCP Server Issues¶
Connection refused¶
Error: Connection refused or ECONNREFUSED
Causes and solutions:
-
Server not running — Start the server first:
-
Wrong transport mode — stdio mode doesn't use network ports. If you're trying to connect via HTTP, configure SSE transport:
-
Firewall blocking — Ensure port 8000 (or your configured port) is not blocked.
Tool not found¶
Error: Tool "valuation_xyz" not found
Solutions:
- Check tool name spelling — Tool names use
valuation_prefix and snake_case: - ✅
valuation_scorecard - ❌
valuation_score_card -
❌
scorecard_valuation(this is the library function name, not the MCP tool name) -
Check the tool reference for the complete list of 60+ tools.
Server crashes on startup¶
Error: Python traceback on python server.py
Solutions:
-
Check Python version — Requires Python 3.10+:
-
Check dependencies — Reinstall with MCP extras:
-
Check for conflicting packages — If you have multiple versions of
fastmcp:
AI Agent Skills Issues¶
Skills not loading¶
Error: Agent doesn't recognize the skills
Solutions:
-
Check file path — For OpenCode, skills must be in
~/.config/opencode/skills/: -
Check file name — Each skill directory must contain a
SKILL.mdfile: -
Check SKILL.md format — The file must start with
# Skill:header: -
Restart the agent — Skills are loaded at startup. Restart OpenCode/Claude/Cursor after adding skills.
Agent doesn't follow skill workflow¶
Issue: Agent ignores the skill instructions
Solutions:
- Check skill is in the right location — Different agents use different skill paths:
- OpenCode:
~/.config/opencode/skills/ - Claude: Custom Instructions (paste SKILL.md content)
-
Cursor: Custom Instructions (paste SKILL.md content)
-
Make the skill name specific — Rename the skill to match user queries:
- ✅
valuation-saas(matches "value my SaaS startup") -
❌
valuation-industry(too generic) -
Add trigger keywords — In the
When to Usesection, include phrases users commonly say:
Python Library Issues¶
Unexpected results¶
Issue: Function returns unexpected valuation
Solutions:
-
Check parameter units — All monetary values are in absolute dollars (not thousands or millions):
-
Check parameter constraints — Some functions validate inputs:
scorecard_valuation: weights must sum to 1.0berkus_valuation: each factor must be 0 to max_per_factor-
risk_factor_summation: exactly 12 risk ratings, each -2 to +2 -
Check the API reference for parameter details and constraints.
Import errors¶
Error: ImportError: cannot import name 'xyz' from 'startup_valuation'
Solution: Check the correct module:
# Core methods
from startup_valuation.core import scorecard_valuation, berkus_valuation
# Advanced methods
from startup_valuation.advanced import black_scholes, monte_carlo_valuation
# Industry-specific
from startup_valuation.saas import ltv_saas, cac
from startup_valuation.biotech import rnPV, decision_tree_ev
# All types
from startup_valuation.types import ValuationResult, Scenario, Distribution
See the chapter index for the full module-to-function mapping.