analyze_repository
Analyze a GitHub repository to find real code examples for Learning Hours
Turn a refactoring topic into a 60-minute team practice session — plan, before/after code, and a Miro board — using examples pulled from your own repository.
LABSCO SUMMARY
Generating a plan about Feature Envy is the easy half; the half that makes a session land is finding Feature Envy in the repository the team ships every day, which is what the repository analysis does — it returns actual files and line ranges to refactor. The board tool then turns the plan into a Miro workshop, so preparation ends where facilitation starts. Two of the five tools stay dark until you add the matching token.
A content generator for Technical Coaches running Learning Hours: structured 60-minute practice sessions built on the 4C model — Connect, Concept, Concrete, Conclusion. It writes the session, the code to practise on, and the board to run it from.
An Anthropic API key in ANTHROPIC_API_KEY — it is the only required one, and the generated content bills to it. Two optional tokens each unlock a tool: MIRO_ACCESS_TOKEN from a Miro app for board creation, and GITHUB_TOKEN with repo read access for the repository and tech-stack analysis. It starts over stdio as npx -y learning-hour-mcp. MIT.
One command plus a key — npx -y learning-hour-mcp, then supply credentials
USE CASES
Generate the 60-minute plan around the 4C model, then generate before/after code in the team's language to practise on.
Hand the generated session content straight to Miro and get a board laid out from it, rather than rebuilding the plan by hand in frames.
Point at the repository and name the smell; what comes back is real occurrences with file and line references to use as the exercise.
Read the repository's languages, frameworks and test tools first, so the examples are written in those rather than in a generic sample project.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
analyze_repositoryAnalyze a GitHub repository to find real code examples for Learning Hours
analyze_tech_stackAnalyze a repository's technology stack to create team-specific Learning Hour content
create_miro_boardCreate a Miro board from Learning Hour session content
generate_code_exampleGenerate detailed before/after code examples for a learning topic
generate_sessionGenerate comprehensive Learning Hour content for Technical Coaches
BEFORE YOU INSTALL
5 tools when we connected; the project documents 8.
All 3 documented clients run the server on your machine.
INSTALLATION
npx -y learning-hour-mcp{
"mcpServers": {
"learning-hour": {
"command": "npx",
"args": [
"-y",
"learning-hour-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
"MIRO_ACCESS_TOKEN": "<YOUR_MIRO_ACCESS_TOKEN>",
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}{
"servers": {
"learning-hour": {
"command": "npx",
"args": [
"-y",
"learning-hour-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
"MIRO_ACCESS_TOKEN": "<YOUR_MIRO_ACCESS_TOKEN>",
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}