loop-improver-mcp
The loop-improver-mcp server modernizes and manages agent/Copilot guidance architecture across repositories by inspecting, installing, and recording loop improvements.
compare_loops: Inspect one or more repositories against a loop architecture rubric — evaluating the README,.github/copilot-instructions.md,.github/objectives.md, specialist agents, and insights — to identify stale or missing collaboration surfaces.improve_loop: Install or refresh the foundational.githubloop structure in a target repository, including:Creating missing
.githubfolder structureInstalling/refreshing
objectives.md(shared repository mission)Adding specialist guidance files under
.github/agents/Creating/updating insight files under
.github/insights/Preserving user-authored content while updating managed files (marked
<!-- Managed by loop-improver-mcp -->)
record_loop_insight: Write a structured insight entry to.github/insights/loop-improver-mcp.md, capturing verified improvements, prune candidates, reusable learnings, and agent self-improvement notes.Every tool response includes
serverInfo.versionandserverInfo.sourcePathso clients can detect stale installations or confirm the correct workspace is loaded.
Inspects and improves GitHub repository guidance files, including README, copilot instructions, objectives, agents, and insights, to modernize collaboration surfaces for Copilot.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@loop-improver-mcpcompare and improve loops in the repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
loop-improver-mcp
MCP server for modernizing agent guidance across repositories.
loop-improver-mcp inspects a repository, establishes its product mission in .github/objectives.md, and activates a managed Copilot team that continues into useful product work.
It handles repos that already have mature .github files and repos that have no .github folder at all. The MCP call owns the architecture pass; generated agents are only for recurring domain work that needs a dedicated instruction surface.
Tools
compare_loopsinspects README,.github/copilot-instructions.md,.github/objectives.md, specialist agents, insights, and inferred repo profile.improve_loopcreates missing.githubstructure and installs a coordinator-worker loop. Aloop-directorroutes bounded research to folder experts, a file-practices specialist, and a repository-cleanup expert. Folder and cleanup experts first propose a bounded edit, then implement only after the director approves the paths, actions, and checks. It also refreshes objectives, profile-specific implementation guidance, and current insight files while preserving durable user-authored instructions and agents. Its response always includes a requiredcontinuationplan that tells the calling agent to dispatchloop-directorand continue into repository work.record_loop_insightoverwrites the current architecture learning in.github/insights/loop-improver-mcp.md.
improve_loop also installs a /goal prompt. Run it with a specific outcome or with no argument for a general improvement pass. The director uses the canonical product mission, gathers bounded evidence, and completes safe local work autonomously. It asks only when destructive, external, publishing, secret-handling, materially ambiguous, or substantially expanded work needs a decision.
Every tool response includes serverInfo.version and serverInfo.sourcePath so clients can identify stale installations or confirm that a workspace checkout is loaded.
improve_loop also returns a report with a short outcome summary, one row per added, updated, or pruned managed file, the reason pruning was limited, Mermaid source for the installed agent flow, and a recommended presentation format. The separate continuation object sets workflowComplete to false, sets dispatchNow to true, names the director and available experts, and leads with the canonical productMission, its source, a product-first priority policy, the next prompt, risk policy, and completion criteria. An empty changed list means the architecture is ready. It does not mean the repository improvement pass is complete.
Related MCP server: AI Knowledge Center MCP
Repository Benefits
Predictable expertise: every repository gets the same director and
.github,src, andtestsexperts, with optional profile guidance for its technology.Better decisions: experts connect recommendations to controlling code, tests, user outcomes, and repository evidence before changes begin.
Product-first autonomy: the director completes safe local improvements and interrupts only for material risk or ambiguity.
Smaller codebases: cleanup is part of the normal loop, so dead code, duplication, generated output, stale guidance, and failed approaches become routine review targets.
Durable improvement: objectives and current insights preserve what worked, what was removed, and what the next pass should examine.
Outcome Rubric
The server evaluates canonical files against a desired shape:
README.md: names the repo, audience, capabilities, and durable entry points without becoming an operational runbook..github/copilot-instructions.md: holds durable rules, validation expectations, safety boundaries, and canonical file ownership..github/objectives.md: owns the canonical product mission, names repo-specific outcomes, maps active loops to those outcomes, and defines evidence for improvement.Last modified hygiene: surfaces text files missing a
Last modifiedtimestamp and files whose timestamp is older than 30 days by default, then suggests objective and folder focus for the next session..github/agents/: contains specialist guidance only for recurring domain work..github/insights/: records one current insight per MCP or specialist surface with verified improvements, prune candidates, reusable learnings, and self-improvement notes.
Generated specialists also audit changed and nearby symbols for duplicate helpers and unused code. In this repository, Ruff enforces source orientation and code-quality rules, the readability test checks every production module and symbol for concise descriptions, and Vulture reports high-confidence dead-code candidates for reference verification.
Usage Shape
Call compare_loops against older repos, then call improve_loop on repos missing the foundation or carrying stale guidance. Managed files are marked with <!-- Managed by loop-improver-mcp --> so later refreshes can update the loop without overwriting unrelated repo guidance.
Call improve_loop with its default refresh behavior. The calling Copilot agent should dispatch the generated loop-director immediately from the returned continuation plan and should not ask the user to choose preserve or overwrite mode unless the user explicitly requested preservation. In clients that cannot dispatch custom agents from an MCP response, select loop-director and run /goal as the compatibility path.
The director uses VS Code's coordinator-worker subagent pattern: folder and file specialists return independent evidence and a bounded edit plan, the director ties that evidence to controlling functions and tests, and the owning expert implements the approved scope. Every repository receives the same .github, src, and tests folder experts. When a standard folder is absent, its expert reports whether the repository needs that scope instead of creating the folder. Existing domain agents join the director's allowlist, while profile-specific fallback guidance is created only when the repository has no matching specialist.
The generated specialist guidance adapts to portable repository signals such as Python, Rust, TypeScript, content, documentation, or infrastructure files. Domain-specific context comes from the target repository's objectives and existing guidance, so the server can create useful loops without carrying assumptions from another project or machine.
Use With GitHub Copilot
Paste this into GitHub Copilot Chat after opening the repository:
Install and configure this repository's loop-improver MCP server for my VS Code GitHub Copilot environment. Follow .github/mcp-install.md, verify that the server starts, and keep the configuration portable for future updates.Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that gives your agent a persistent project brain: vision, architecture decisions, conventions, roadmaps, and automatic session handoff.486MIT
- AlicenseNot gradedqualityAmaintenanceLocal-first MCP server that provides project context, verification gates, and structured tools for coding agents to discover knowledge, run diagnostics, and execute allowlisted commands within a repository.43MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that provides coding agents with structured repository context, including graph-based navigation, dependency analysis, runtime flow tracing, and configuration surface across supported stacks.377MIT
- AlicenseCqualityBmaintenanceA policy-aware MCP server for GitHub and GitHub Actions that enables safe AI-assisted infrastructure workflows—inspecting repositories, preparing branches and pull requests, and constrained remote mutations behind explicit preview-bound approval tokens.18MIT
Related MCP Connectors
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Thor-DraperJr/loop-improver-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server