How sprout-devlabs/sprout works
Sprout is a read-only codebase-mapping CLI and MCP server. A user or coding agent requests a tour, tree/map, dependency query, context, or change-impact report; the relevant analysis produces a textual or JSON result, or exposes the result as an MCP tool. The README documents these capabilities, but sampled excerpts do not show most Go call sites, so the graph limits relationships to documented workflows and does not infer internal call chains.
Main entry points: main.go CLI dispatch · mcp.go MCP server · codegraph.go Dependency graph · impact.go Change impact
Components 19
User interfaces
- CLI dispatch
main.go - MCP server
mcp.go
Repository mapping
- Project tour
tour.go - File tree
tree.go - Project statistics
stats.go - Reading order
entry.go - AI project map
ai.go - JSON output
output_json.go
Dependency analysis
- Dependency graph
codegraph.go - Language resolvers
jsresolve.go - Python resolver
pyresolve.go - Rust resolver
rsresolve.go - Change impact
impact.go - Dependency queries
query.go - File context
context.go
Git and remote sources
- Git status and diffs
git.go - Change hotspots
churn.go - Remote repositories
remote.go
Other components
- Engineer or agent
Connections 26
- Engineer or agent → CLI dispatch: runs commands
README.md - Engineer or agent → MCP server: connects agent
README.md - CLI dispatch → Project tour: requests tour
README.md - CLI dispatch → File tree: requests tree
README.md - CLI dispatch → Project statistics: requests statistics
README.md - CLI dispatch → Reading order: requests reading order
README.md - CLI dispatch → AI project map: requests map
README.md - CLI dispatch → Change impact: requests impact
README.md - CLI dispatch → Dependency queries: requests dependencies
README.md - CLI dispatch → File context: requests context
README.md - CLI dispatch → Remote repositories: tours remote repo
README.md - MCP server → AI project map: serves project map
README.md - MCP server → Reading order: serves reading order
README.md - MCP server → File tree: serves tree
README.md - MCP server → Dependency queries: serves dependency queries
README.md - MCP server → Change impact: serves impact
README.md - MCP server → File context: serves context
README.md - MCP server → JSON output: offers JSON results
- Dependency graph → Language resolvers: resolves imports
- Dependency graph → Python resolver: resolves imports
- Dependency graph → Rust resolver: resolves modules
- Change impact → Dependency graph: traces dependencies
README.md - Dependency queries → Dependency graph: follows dependencies
query.go - File context → Dependency graph: reads relationships
context.go - CLI dispatch → Git status and diffs: uses git options
- CLI dispatch → Change hotspots: requests hotspots