Code analysis, AI engine and MCP#
How AI SprintFlow reads and analyses your code, which AI SDKs and engines it uses (with their versions), how it connects to MCP servers, where it clones your repositories, and how it works on large and older applications. For architects and security teams; the architecture overview covers the system as a whole.
In short: AI SprintFlow analyses code with its own engine - local, deterministic tools that map, search, build and test the code, and an AI agent that may only use a small set of audited tools. It uses no third-party code-analysis service. Through MCP 2026-07-28 (with automatic fallback to earlier MCP versions) your teams can add their own tools, such as a code-search, documentation or database-schema server.
1. Local code analysis (no AI calls)#
These run on your machine or server, before and alongside the AI. They cost nothing and send nothing anywhere.
| Tool | What it does |
|---|---|
| Repository map | Ranks the files and symbols (classes, functions) most relevant to the ticket, so the AI starts at the right code instead of exploring. Works for any language. |
| Code index | Fast code search: ripgrep when installed, otherwise a built-in scan. An admin can plug in an external indexer (for example Kodify or graphify) instead; if it fails, the built-in index takes over. |
| Stack detection | Detects the build and test commands of 30+ ecosystems (.NET, Java, Node.js, Python, Go, Rust, Ruby, PHP, Salesforce SFDX, ...), or reads them from your CI configuration. Teams can pin them in .sprintflow/config.yml. |
| Monorepo scope | Builds and tests only the components a change affects. |
| Baseline comparison | Builds and tests the code before any change, then compares every test after it - so problems that were already there are never blamed on the change. Flaky tests are re-run. |
| Syntax check | Checks every changed file, also in repositories without a build. |
| Security scan (optional) | Runs any SARIF scanner (for example Semgrep or Trivy) on each change; only new findings block it. |
| Team knowledge | Reads the team's rules, guides and skills from .sprintflow/ (and CLAUDE.md / AGENTS.md). The AI cannot change them. |
| Diagrams | UML and architecture diagrams drawn with Mermaid 11.12.2 (bundled) in the Edge or Chrome already installed - every diagram is checked, and one that does not draw goes back to the AI. |
2. What the AI agent may do#
The AI works through a fixed set of tools. Each step gets only the tools it needs.
| Tools | Used in | What they do |
|---|---|---|
list_dir, read_file, read_files, find_files, search_code |
every step | Read and search the repository (read-only). |
write_file, edit_file, apply_edits, delete_file |
implement and fix rounds only | Change files - only in the run's own private copy of the repository, never in protected paths or the team's rules. |
run_checks |
implement and fix rounds | Build and test the change (through the same, optionally containerised, sandbox). |
run_command (can be switched off) |
implement and fix rounds | A guarded shell: search, git history, one test, adding a package. Git is read-only, nothing outside the repository, no remote shells, no sudo. |
delegate (optional) |
plan, implement, analysis | A focused, read-only sub-agent for broad searches. |
| Web search (off by default) | when an admin turns it on | The AI model provider's own web search. |
mcp__<server>__<tool> |
plan, implement, analysis | Tools of the MCP servers your admins connect (section 4). |
Read-only steps: understanding a ticket, planning, the independent review and analysis runs cannot write anything. Every result is validated: each step must submit a structured result that is checked against a schema before the run goes on. Personal data and secrets are replaced with placeholders before anything reaches the model.
3. AI SDKs, engines and models#
| Component | Detail |
|---|---|
| Anthropic Python SDK | anthropic 1.11.0, with the Amazon Bedrock and Google Vertex AI clients |
| Default model | Claude Sonnet 5 (claude-sonnet-5). Any Claude model can be chosen, and a different model per step (for example a cheaper one for simple steps, another for the independent review). |
| Other providers | OpenAI, Azure OpenAI, Google Gemini, Mistral, DeepSeek, Groq, OpenRouter; on your own hardware Ollama, LM Studio, vLLM; or any OpenAI-compatible endpoint (a company model gateway). These use AI SprintFlow's own client over the standard chat-completions API - no extra SDK. |
| AI SprintFlow engine (default) | AI SprintFlow's own agent loop: bounded turns, time and cost per step, tool calls in parallel, context compaction, structured results. |
| Claude Code engine (optional) | For Claude: Claude Code's own session does the coding, while AI SprintFlow keeps every guardrail - a hook checks each tool use (sub-agents included), and the session is isolated from local and repository Claude Code settings. |
| Credentials | An API key, a browser sign-in to the Anthropic Console, or the cloud's own identity (AWS, Google Cloud). Stored encrypted; never sent to the model. |
Versions in AI SprintFlow 2.2.0#
| Component | Version |
|---|---|
| Python runtime (bundled in the Windows app) | 3.12.10 |
| anthropic | 1.11.0 |
| httpx | 0.28.1 |
| pydantic | 2.13.5 |
| FastAPI / uvicorn (console) | 0.142.2 / 0.54.0 |
| cryptography (secrets at rest) | 50.0.2 |
| PyJWT (single sign-on) | 2.15.1 |
| PyYAML / defusedxml | 6.0.3 / 0.7.1 |
| Mermaid (diagrams) | 11.12.2 |
| Playwright (browser proof) | 1.63.0, or the repository's own |
| MCP protocol | 2026-07-28, falling back to 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 |
The complete list of bundled components and their licences ships with the app in THIRD-PARTY-NOTICES.txt.
4. MCP (Model Context Protocol)#
AI SprintFlow includes its own MCP client, with no extra dependency. No MCP servers are bundled or preinstalled - your admins connect the ones they choose, and their tools become the AI's tools.
Protocol#
AI SprintFlow speaks MCP 2026-07-28, the current, stateless revision:
- a
server/discoverprobe selects the protocol version, and reads the server's capabilities and identity; - every request carries the protocol version, the client identity (AI SprintFlow, its version) and its capabilities
in
_meta(io.modelcontextprotocol/protocolVersion,.../clientInfo,.../clientCapabilities); - on Streamable HTTP: the
MCP-Protocol-Version,Mcp-MethodandMcp-Nameheaders, and theMcp-Param-*headers a tool asks for withx-mcp-header(values Base64-encoded where the specification requires; a tool with an invalid annotation is left out); no sessions; UnsupportedProtocolVersionError(-32022): the client retries with a version both sides support;- results without
resultTypeare treated as complete;ttlMsandcacheScopeare accepted.
Earlier servers keep working. When the probe shows a server on 2025-11-25, 2025-06-18, 2025-03-26 or
2024-11-05 - on stdio another error or no answer within 10 seconds, on HTTP a 4xx without a modern error - the client
uses the initialize handshake of that revision (with Mcp-Session-Id where the server uses one). An older server is
remembered as such, so the probe is not repeated for it.
Transports#
| Transport | How |
|---|---|
| stdio | AI SprintFlow starts the server program (for example with npx or uvx) for the step and stops it afterwards. |
| Streamable HTTP | A URL and headers (for example Authorization). Answers as JSON or as a Server-Sent Events stream. |
What admins control (Settings โ AI abilities โ MCP servers)#
- Which servers - each one enabled or disabled.
- Which tools - an allowlist per server; at most 40 MCP tools per step.
- Which steps - plan, implement (and analysis runs, which use the plan step's servers).
- Timeouts - per server (60 seconds by default).
- Secrets as references -
${ENV_VAR},${file:...},${vault:...}and other secret-manager references inenvandheaders, resolved when the server starts; they need not be stored in AI SprintFlow at all. - Test MCP servers - starts each server, lists its tools and shows the protocol version in use.
How MCP is kept safe#
- A server that fails to start or answer is skipped and reported - it never fails a run.
- Tool results are capped (20,000 characters) and treated as data: instructions in them are not followed.
- A malformed tool schema is replaced with a safe one, so one bad server cannot break the AI's requests.
- The server process gets a clean environment - your other secrets are not passed to it.
- Not used: the client declares no sampling, elicitation or roots capabilities, so a server cannot ask the AI model or a person for input through MCP; a tool that asks for interactive input fails with a clear message. Only MCP tools are used - not resources or prompts.
An MCP server's tools reach whatever the server connects to, and receive what the AI sends them. Connect only servers you trust, and narrow them with the tool allowlist.
5. Where your code is cloned#
AI SprintFlow clones the repository on the machine that runs it, never anywhere else: there is no AI SprintFlow cloud, and the code is not uploaded to us.
| Installation | Where each run's copy lives |
|---|---|
| Windows desktop app | %LOCALAPPDATA%\AI SprintFlow\runs\<run id>\workspace on the user's PC |
| Single server (Docker / Kubernetes) | the runs folder on the server's persistent volume |
| Scale-out | on the worker that runs the ticket (its local disk); results go to PostgreSQL and S3-compatible storage |
- One private copy per run. Every ticket gets its own clone on its own branch, so runs never touch each other or a developer's working copy.
- A fast, partial clone.
git clone --filter=blob:none --no-tagsfetches the history it needs, and file contents only on demand - much quicker for repositories with a long history or large binary files. - Credentials are never stored. The code-host token is passed to each git command in that command's environment
only (an
http.extraHeader); it is never written to the clone's settings, the git credential helper is switched off, and the token is masked in every log. SSH keys reach git only - never the project's build or test commands. - Only branches of its own. AI SprintFlow pushes its own branch and opens a draft pull request; it never pushes to your main branch.
- Cleaned up automatically. A finished run's copy of the repository is deleted after 7 days (workspace retention, configurable); the run's record, report, patch and videos are kept. An alert is sent when free disk space runs low.
6. Large and older applications#
AI SprintFlow is built to work on large, long-lived codebases - including ones with little documentation and few tests.
Finding its way in a large codebase
- No need to read everything. The repository map ranks the files and symbols relevant to the ticket before the AI starts; the AI then reads only those files - and only the line ranges it needs in large files. Code search (ripgrep, or your own indexer) finds the rest.
- Long sessions stay within limits. Old parts of the conversation are compacted automatically, and focused sub-agents can search widely without filling the main session.
- Monorepos. Components and their dependencies are recognised - .NET projects from their project references, Node
workspaces from their dependencies - or declared in
.sprintflow/config.yml. Only what a change affects (and what depends on it) is built and tested; a change to a shared build file tests everything. - Understand before changing. An analysis run explains a module or the whole system - architecture, components, data model, UML and sequence diagrams - before anyone changes it, and can add the report to the repository as documentation.
- It learns your codebase. Memory keeps each repository's build commands, flaky tests and the lessons of earlier
reviews, so later tickets go faster and cost less. Teams can add guides and coding rules in
.sprintflow/.
Older technology
- .NET Framework solutions (old-style project files,
packages.config) are built with MSBuild and tested with VSTest from Visual Studio or the Build Tools, found automatically; modern .NET with thedotnetCLI. - Java with Maven or Gradle (including the wrappers), and 30+ other ecosystems - see section 1.
- When nothing is recognised, the build and test commands are taken from the repository's own CI configuration (Jenkinsfile, Azure Pipelines, GitLab CI, GitHub Actions, Bitbucket, CircleCI, dev containers) - the commands your CI already runs.
- Pinned tool versions: builds can run in a container image of your choice (
image:in.sprintflow/config.yml), so an old SDK or JDK does not have to be installed on the machine. - Your versions stay. In an existing repository the AI keeps the language, framework and package versions it already uses - it never upgrades or swaps a dependency unless the ticket asks.
Few or failing tests
- Failures that were already there are not blamed on the change. The code is built and tested before any change (the baseline); afterwards only new failures count. Flaky tests are re-run.
- No tests at all: changed files are still built and syntax-checked, the independent reviewer checks the change against every acceptance criterion, and browser proof shows user-visible changes working. Where it fits the codebase, the AI adds a small test next to the code it changed.
Time and size limits (Settings โ Limits; the clone time is fixed)
| Limit | Default |
|---|---|
| Cloning a repository | 30 minutes |
| One build or test command | 30 minutes |
| Largest file the AI reads in one piece | 400 KB (larger files are read in parts) |
| One step of the AI | 15 minutes, $2; an analysis 30 minutes, $5 |
| One run | $15 |