Skip to main content

Crate eln_plugin_sdk

Crate eln_plugin_sdk 

Source
Expand description

§eln-plugin-sdk

Plugin API platform for the elendirna project.

Defines the interface contract between elendirna core and plugin modules: permissions, identity, tool call shape, server surface.

§Status (S2)

Trait-shaped skeleton. rmcp dep 미포함 — transport-agnostic. SDK proc-macro (#[mcp_tool])는 도입하지 않음 (rmcp #[tool] macro와 layer 충돌 회피). API key validation / signature·hash·registry / audit hook은 본 SDK 범위 밖 (S3).

Re-exports§

pub use api_key::ApiKey;
pub use error::PermissionDenied;
pub use error::ToolError;
pub use identity::Identity;
pub use permissions::Permissions;
pub use server::PluginServer;
pub use server::ToolDescriptor;
pub use tool::CallContext;
pub use tool::ToolHandler;

Modules§

api_key
Plugin · 외부 호출자에게 발급되는 API key.
error
SDK 공통 에러.
identity
Tool 호출자 정체성 — SHOULD scope, default Human.
permissions
Tool 호출 권한 비트 모음.
server
Plugin server 표면 — tool 집합 노출.
tool
Tool 호출 표면 — plugin이 노출하는 단위 tool의 trait.

Constants§

VERSION
SDK crate 버전 (CARGO_PKG_VERSION). 호환성 진단용 — core가 session_start 응답에 core 버전과 함께 노출해 plugin SDK ↔ core 버전 skew를 한눈에 드러낸다.