LEARN // MCP
What is MCP
MCP, the Model Context Protocol, is the open protocol your agent uses to call tools. A server lists the tools it offers, each with a name, a description and the inputs it accepts. Your MCP client shows them to the agent, which calls one when your request needs it, such as compiling an explosion or reading a scene.
A draft compile is from $0.05, and new accounts start with $5 of usage.
- Open protocol, messages in JSON-RPC 2.0
- Servers offer tools, resources and prompts
- Transports: stdio (local) and HTTP (remote)
- Spatial Compiler: hosted and local servers, early access
01 // HOW IT WORKS
The parts of an MCP setup
An MCP setup has three parts. Your agent decides what to do, and the MCP client, the app your agent runs in, connects to one or more servers. Each server exposes tools, plus optional resources (data it can read out) and prompts. When the agent picks a tool, the client sends a tools/call request with the inputs, and the server returns the result as text or structured data.
Every server describes its tools the same way, so one client can use many servers at once, such as one that edits your scene and one that compiles effects. Adding a server takes a few lines in the client's config.
02 // MCP AND APIS
How MCP relates to a REST API
A REST API is built for code you write, and MCP for an agent that finds tools while it works. Many services offer both, and the MCP server often calls the same API underneath. Use the API for scripts and pipelines with fixed steps, and MCP when you want to ask your agent in plain words. See MCP vs REST.
03 // SPATIAL COMPILER
Spatial Compiler over MCP
Spatial Compiler runs a hosted MCP server at https://spatialcompiler.dev/mcp, in early access, with a browser sign-in and no key in your config. Connect it and ask your agent for a looping fire or an explosion that plays once, and you get sprite sheets your engine can play, plus a ready scene in Godot 4. A local server, npx -y @applied-manifold/spatial-compiler, takes your API key instead. See Install via MCP.
What is an MCP server?
An MCP server is a program that speaks the Model Context Protocol and exposes tools to your agent locally or over a URL.
What are MCP tools?
MCP tools are named actions with descriptions and JSON schemas that an agent discovers and calls, such as compiling an asset.
Why use MCP instead of an API?
Use MCP when an agent chooses tools dynamically without custom client code and use a REST API for fixed build pipelines.
Why is an MCP server needed?
Agents can only act through tools their client provides, so an MCP server adds external capabilities without changing the client.
What does MCP mean in agentic AI?
MCP is the standard protocol connecting AI agents to external tools and data so one agent can work across many services.
Compile your first effect
You pay per compile and see the price before it runs. New accounts start with $5 of usage.