Skip to main content
An OpenIDEA agent task coordinates five distinct resources: Plugin, Memory, MCP, Tool, and Skill. Each has a different responsibility, persistence lifetime, and footprint in the LLM context window.

Mental model at a glance

In short: Plugins package capabilities, MCP connects them, Tools execute actions, Skills instruct how to orchestrate tools, and Memory remembers context and rules across tasks.

Architecture and data flow

Plugin tools vs. the LLM context window

It helps to separate (a) where a plugin tool is registered and executed from (b) whether its schema enters the LLM context window.

OpenIDEA WASM plugin (plugin.toml)

  • Registered in OpenIDEA’s built-in MCP server: A plugin declaring [[contributes.mcpTools]] registers its tools into OpenIDEA’s built-in MCP server under <plugin_id>__<tool_name> (see Plugin MCP tools).
  • Enters context indirectly via MCP: When a task starts, OpenIDEA attaches its built-in OpenIDEA MCP server to the session. The agent CLI calls tools/list and loads the returned tool names, descriptions, and JSON Schemas into the LLM’s tool catalog — unless the OpenIDEA MCP server is disabled for that session via /mcp, or the agent uses deferred/lazy tool loading.
  • Code stays out of context: The plugin’s WASM binary and source code never enter the prompt. On tools/call, OpenIDEA dispatches to the sandboxed plugin host under its granted capabilities and readOnly / destructive approval rules.

Agent CLI plugin bundling .mcp.json

  • OpenIDEA plugins (plugin.toml) do not spawn standalone MCP server processes; they export WASM tools into OpenIDEA’s built-in MCP server.
  • Agent CLI plugins (for example Copilot CLI plugins with .mcp.json or Claude plugins with mcpServers in .claude-plugin/plugin.json) bundle their own standalone MCP servers. When active or imported under Settings › Agents › MCP Connections, the agent connects to that separate MCP server at session start, calls tools/list, and injects its tool schemas into the LLM context window in the same way — as a sibling MCP server alongside OpenIDEA.

End-to-end lifecycle walkthrough

Suppose you have:
  • Plugin: A kubernetes OpenIDEA plugin that contributes an MCP tool (k8s__get_pod_logs) and a skill (/debug-crashloop).
  • External MCP: A GitHub/Slack MCP server configured for your workspace.
  • Memory: Persistent instructions stating “staging namespace is payments-stg; always rebase onto origin/main before pushing.”
You start a new agent task and send:
1

Phase 1 — Host startup (before the task exists)

OpenIDEA loads enabled Plugins in its sandboxed host. The kubernetes plugin registers k8s__get_pod_logs in OpenIDEA’s built-in MCP server and indexes debug-crashloop/SKILL.md in the Skills hub. Nothing is in an LLM context window yet.
2

Phase 2 — Session initialization (before Turn 1)

Memory is injected into the system prompt (AGENTS.md, user rules, recalled facts). MCP clients connect to enabled servers and call tools/list, populating the Tool catalog with built-in and MCP tool schemas. Skills contribute only their compact name + description index, keeping unused playbooks out of the token budget.
3

Phase 3 — Skill activation (Turn 1)

Because you invoked /debug-crashloop (or the model matched its description in Auto mode), the agent loads the full debug-crashloop/SKILL.md playbook into the conversation context, giving the model a structured recipe: fetch pod logs → locate stack trace → patch and test → open PR.
4

Phase 4 — Agent execution loop (Think → Tool Call → Observe)

Combining the Skill recipe with Memory (payments-stg), the model invokes k8s__get_pod_logs over MCP. OpenIDEA routes the call to the sandboxed kubernetes Plugin, returning BillingService.java:84. Built-in Tools (view, edit) patch the bug, OpenIDEA’s MCP Tool (OpenIDEA-check_files) and bash verify compilation and tests, and Memory rules guide rebasing and opening the pull request.
5

Phase 5 — Completion and teardown

Plugins, Memory (including any newly saved durable facts or checkpoints), and Skill files remain on disk for future tasks. Per-session MCP connections close or idle out, the session Tool catalog clears, and the loaded Skill body stays scoped to that conversation.

Agents

Configure built-in and ACP agents, external MCP servers, and skills in OpenIDEA.

MCP server

Enable OpenIDEA’s built-in MCP server and connect IDE or external clients.

Plugin MCP tools

Contribute sandboxed WASM tools from an OpenIDEA plugin to the built-in MCP server.

Plugin manifest

Declare skills, MCP tools, and capabilities in plugin.toml.