Файли
openidea/sdk/rust/openidea-plugin/wit/mcp.wit
T
LU XIANGRUIтаLU XIANGRUI ff17c3753f feat(plugins): notifications targeted at one project (API 1.5) (#2375)
- Add ui.notify-project: it shows only in that project's window (the most recently focused one if there are several) and works without a calling window
- Button commands run in the window showing the notification; a closed project returns not-found, with nothing shown and no fallback to another window
- Bump the plugin API to 1.5.0 (wit/, SDK copy, ENGINE_VERSION, API_VERSION) and rebuild all components
- Add Project::notify and its mock to the SDK; update plugins/README.md

Co-authored-by: LU XIANGRUI <[email protected]>
2026-11-09 23:20:38 +08:00

17 рядки
725 B
Plaintext

package openidea:[email protected];
/// Discovery of the IDE's built-in MCP server; never exposes its URL or token.
interface mcp {
/// Stdio bridge argv for the invoking project; none without a window/project or while off.
stdio-command: func() -> option<list<string>>;
}
/// Optional tools declared by contributes.mcpTools, under the plugin's grants and command budget.
interface mcp-provider {
use types.{error};
use invocation.{invocation};
/// Calls the declared local tool name with JSON arguments and the project's window context.
/// Returns text; tools may encode structured data as JSON text.
call: func(tool: string, arguments: string, ctx: borrow<invocation>) -> result<string, error>;
}