MCP server (planned)
Note: Not built yet. This page is a design note for a planned feature. There is no
kolpa_mcpbinary 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.
What it would be
Section titled “What it would be”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.
When to use it
Section titled “When to use it”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.
Open the right folder
Section titled “Open the right folder”Point your editor at the project root, the folder that contains kolpa.project.json, assets, scenes, and scripts. MCP configs would assume that layout.
Config files in the package
Section titled “Config files in the package”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.
Paste config for other setups
Section titled “Paste config for other setups”If your app keeps MCP settings outside the project, print a ready-made JSON snippet:
kolpa_mcp --print-config cursorkolpa_mcp --print-config vscodekolpa_mcp --print-config claudekolpa_mcp --print-config genericPaste the printed JSON into that app’s MCP config. Cursor and Claude use mcpServers. VS Code uses servers in .vscode/mcp.json.
Custom project root
Section titled “Custom project root”If you want kolpa_mcp somewhere other than the project root, start it with --root set to the directory that holds the project:
kolpa_mcp --root /path/to/your/projectYour MCP config must pass that argument if the working directory is not the project root.
What the server would expose
Section titled “What the server would expose”| 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.
Without MCP
Section titled “Without MCP”If the server is off, agents could still read:
bindings/Kolpa.Engine/(the C# API source)scripts/templateskolpa.project.jsonandasset-manifest.json
Continue reading
Section titled “Continue reading”Previous: Debug draw: one-frame wireframes, planned.
Next: Gameplay scripts: the Script component.
