Skip to content

MCP server (planned)

Note: Not built yet. This page is a design note for a planned feature. There is no kolpa_mcp binary today. The tools below are a proposal and may change before release.

  • Implement kolpa_mcp.
  • Ship MCP config hooks with the engine.
  • Replace the proposed tool names below with the real ones.
  • Re-enable the sidebar entry.

A small MCP (Model Context Protocol) server so AI assistants in Cursor, VS Code, or Claude Code can look up this build’s C# API, component names, default settings, and script templates before they edit your project. You would not install a separate package. The engine ships the server.

This page would be for AI-assisted gameplay scripting. For normal autocomplete in your editor, see Editor setup.

Use MCP when an agent will write or refactor C#. The server would answer from shipped data in the engine tree, not the web. That cuts down invented API names and wrong script layout.

Humans could ignore MCP and rely on the Script API reference.

Point your editor at the project root, the folder that contains kolpa.project.json, assets, scenes, and scripts. MCP configs would assume that layout.

A fresh engine tree would ship MCP hooks at the project root:

File Editor
.cursor/mcp.json Cursor
.vscode/mcp.json VS Code
.mcp.json Claude Code

They would launch kolpa_mcp over stdio. In Cursor, enable the kolpa-engine server in MCP settings if it is not already on. Claude Code may ask you to approve the server the first time you open the folder.

If your app keeps MCP settings outside the project, print a ready-made JSON snippet:

Terminal window
kolpa_mcp --print-config cursor
kolpa_mcp --print-config vscode
kolpa_mcp --print-config claude
kolpa_mcp --print-config generic

Paste the printed JSON into that app’s MCP config. Cursor and Claude use mcpServers. VS Code uses servers in .vscode/mcp.json.

If you want kolpa_mcp somewhere other than the project root, start it with --root set to the directory that holds the project:

Terminal window
kolpa_mcp --root /path/to/your/project

Your MCP config must pass that argument if the working directory is not the project root.

Tool Use
lookup_api Confirm a C# type or member exists and read its signature for this build.
lookup_component Component types stored in scene files.
lookup_setting Shipped default engine and renderer settings.
get_template Script template text.
where Search names across the API, components, settings, and templates.

Agents would call lookup_api before using a member they have not already confirmed. A miss means that name is not in this build.

If the server is off, agents could still read:

  • bindings/Kolpa.Engine/ (the C# API source)
  • scripts/ templates
  • kolpa.project.json and asset-manifest.json

Previous: Debug draw: one-frame wireframes, planned.

Next: Gameplay scripts: the Script component.