MCP serverMCP servertypeExposes tools to a coding agent over MCP.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

capforge

An MCP server that scaffolds CAP and CDS for a coding agent and then holds it to cds compile — the agent does not stop until the generated code builds clean.

Facts

Latestv0.1.6ReleasedLast pushLicenceMIT

Where it sits

Lives in
Provides
Agent access to your codeCAPAgent access to your codecapabilityLetting a coding agent read the project or the system you actually have, reach its model, its objects and its checks, and act on it. In file-based environments that works out of the box; complex systems need dedicated access capabilities. Whatever the environment, the agent also needs project- and framework-specific context, so it understands the thing in front of it rather than guessing from what it remembers of its training data. The transport is incidental: an MCP server, a language server or a CLI answer the same question, and what differs between them is how much of the real thing the agent can see. Distinct from [MCP servers](capability:mcp-servers), which is a protocol adapter on your own running service, and from [agent guidance](capability:agent-guidance), which is knowledge handed over as files rather than read from the thing itself.

Who is behind it

automatizatodoautomatizatodoPersonMaintains this
In the atlas: maintains 1, contributes to 1
@automatizatodo
maintainer

What it declares

Every artifact

Type
MCP server
Origin
Independently maintained

Connections1

capforge connectionscapforgePROVIDES→ provides1provides authoredAgent access to your code

Install

npm add capforge

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from automatizatodo/capforge under MIT, read
automatizatodo/capforge/README.mdOn GitHub

CAPforge

MCP server that makes your AI agent (Claude Code, Cursor, …) get SAP CAP/CDS right: scaffolding that follows real conventions, plus real validation against cds compile. The agent doesn't stop until the code compiles clean.

Website · npm · Leelo en español

It calls no LLM itself: your agent brings the model (BYOK). Zero inference cost, nothing leaves your machine.

Why

General-purpose models hallucinate CDS — annotation terms that don't exist, OData v2 syntax mixed into v4, invented fields — because there's barely any public CAP code in training data. CAPforge gives your agent the two things it's missing:

  1. Curated, sourced knowledge — modern CAP/UI5 best practices distilled from official SAP docs (capire, OData vocabularies, reference samples), every rule with its source URL.
  2. A real feedback loop — tools that run the actual compiler and linter and feed errors back until everything is green.

Tools

ToolWhat it does
cap_project_contextCodebase-aware: compiles your real project to CSN and returns the existing model (services, entities, fields, associations) so the agent reuses instead of inventing
cap_scaffold_entityGenerates all 5 layers of an entity following conventions: CDS model with aspects (cuid, managed), projection, annotations.cds (HeaderInfo, LineItem, Facets, FieldGroups), mock CSV, i18n
cap_write_filesWrites files into the project
cap_validateRuns cds compile and returns errors (the loop)
cap_lintRuns cds lint (best practices / anti-patterns)
cap_deploy_checkLayer 3: deploys to a throwaway sqlite DB and loads the mock CSVs — catches what compile can't (CSV columns that don't exist, bad data, duplicate keys)
cap_analyze_legacy_ui5Migration mode: inventories a legacy freestyle UI5 app (read-only) — datasources, sections, columns, bound fields, value helps, actions, i18n
ui5_scaffold_sectionGenerates a freestyle ObjectPage section (SmartTable with p13nData, or SimpleForm) + handler stubs + i18n
ui5_validate_viewThe UI5 loop: well-formed XML + every declared event handler exists in the controller
ui5_lintLayer 3: runs SAP's official ui5lint — deprecated APIs, UI5 2.x readiness, CSP issues
resource conventions://capCanonical knowledge core + your team's convention profile + migration map

Normal flow: context → scaffold → write → validate → correct → until green. Migration flow: analyze_legacy → context (target) → propose map (REUSED / NEW / DISCARDED) → scaffold → validate.

Requirements

  • Node.js 18+
  • @sap/cds-dk available (globally or in the project) for cap_validate to work.

Install & try

npm install
node test-loop.js   # full-loop demo against the bundled sandbox
VS Code / SAP Business Application Studio

Install the "CAPforge" extension from the VS Code Marketplace (also on Open VSX): it registers the MCP server automatically for Copilot agent mode, no mcp.json editing.

Point the capforge.conventionsPath setting to your team's private conventions. BAS note: BAS installs extensions from Open VSX, but its AI assistant does not consume MCP servers natively yet — the extension is ready for the day it does.

Claude Code / Cursor

Register in Claude Code (project .mcp.json or global config):

{
  "mcpServers": {
    "capforge": {
      "command": "npx",
      "args": ["-y", "capforge"]
    }
  }
}

Load your team's private conventions (optional):

"env": { "CAPFORGE_CONVENTIONS": "PATH/to/team-conventions.md" }

Make your agent actually use it

Registering an MCP server does not force the agent to call it: agents only invoke tools when they decide the task needs them, and for CAP they often just write CDS from memory. Two ways to fix that:

  1. Workspace instructions (recommended). Add this to your project's agent instructions file — .github/copilot-instructions.md (Copilot), CLAUDE.md (Claude Code) or .cursorrules (Cursor):
For every SAP CAP or UI5 task: call cap_project_context before generating and reuse existing names; scaffold with cap_scaffold_entity / ui5_scaffold_section; validate with cap_validate, cap_lint and cap_deploy_check (UI5: ui5_validate_view, ui5_lint) and correct until everything is green. Never hand-write CDS without a clean cap_validate run.
  1. The cap_workflow prompt. CAPforge ships an MCP prompt with the same workflow: pick it from your client's prompt list (in VS Code: type / in chat) at the start of a CAP session.

You can also just ask explicitly ("scaffold this with the capforge tools and validate until clean") — but the instructions file is what makes it automatic for the whole team.

Knowledge

  • knowledge/ — canonical core: modern CAP/UI5 best practices (aspects, compositions, drafts, authorization, Fiori annotations, i18n, tooling, migration map), anchored to official SAP docs with cited sources.
  • conventions/ — house profile: one team's style, overridable via CAPFORGE_CONVENTIONS. Wins over the core on style conflicts.

The conventions://cap resource serves both, combined, to the agent.

Community

The roadmap is decided by the people who build CAP every day: roadmap discussion. Contributions welcome — see CONTRIBUTING.md.

License

MIT.

MIT, read

History

Latest

v0.1.6

  1. v0.1.5

  2. v0.1.3

  3. v0.1.2

On npm
0downloads per week, npm
Weekly downloads for capforge26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 0.27 Apr – 3 May: 04 May – 10 May: 011 May – 17 May: 018 May – 24 May: 025 May – 31 May: 01 Jun – 7 Jun: 08 Jun – 14 Jun: 015 Jun – 21 Jun: 022 Jun – 28 Jun: 029 Jun – 5 Jul: 06 Jul – 12 Jul: 013 Jul – 19 Jul: 020 Jul – 26 Jul: 52527 Jul – 2 Aug: 173 Aug – 9 Aug: 1910 Aug – 16 Aug: 27517 Aug – 23 Aug: 4624 Aug – 30 Aug: 3131 Aug – 6 Sept: 157 Sept – 13 Sept: 914 Sept – 20 Sept: 1221 Sept – 27 Sept: 1428 Sept – 4 Oct: 95 Oct – 11 Oct: 912 Oct – 18 Oct: 1019 Oct – 25 Oct: 0
Agent access to your code
  1. @cap-js/mcp-serverMCP server for CAP development: model and docs search
  2. @sap-ux/fiori-mcp-serverMCP server for creating and editing Fiori applications
  3. @ui5/mcp-serverMCP server for UI5 development with ten tools

Details

Sources5
npm registrydiscovered herechecked
The discovery passdiscovered herechecked
npm registry, capforgeversion, releases, installschecked
github.com/git+https://github.com/automatizatodo/capforge.gittree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv0.1.6
first release
releases and cadence4, ~0d median
discovered vianpm registry, The discovery pass
first seen in the atlas
ecosystem and domaincap, ai-and-agents
History in the atlas4
  1. MCP is how this is delivered, not what it answers — artifact_type carries the transport. It helps an agent work on real code rather than exposing a running service to one, which is a different capability.
  2. Typed cds-plugin by placement, which defaults every candidate to that. It is not one.
  3. An MCP server that scaffolds CAP and CDS for a coding agent and then holds it to `cds compile` — the agent does not stop until the generated code builds clean.
  4. First seen.
For your agent
Ref
artifact:automatizatodo-capforge
JSON
/artifacts/automatizatodo-capforge.json
MCP
Connecting an agent