mcp_skill 0.2.0
mcp_skill: ^0.2.0 copied to clipboard
Skill definitions and runtime execution for AI capabilities with LLM integration, MCP tools, and claim recording for the MCP ecosystem.
MCP Skill #
Positioning:
mcp_skillis an internal component of the MakeMind knowledge stack exposed through themcp_knowledgefacade. Application code should importpackage:mcp_knowledge/mcp_knowledge.dart— the symbols declared here are re-exported from there. Directpackage:mcp_skill/imports remain valid for advanced or integration scenarios but are discouraged in product code.
A typed skill definition and execution runtime for AI capabilities — JSON-Schema-validated inputs/outputs, multi-step procedures with branching and circuit breakers, embedded expression language, and Contract Layer integration with the rest of the MCP ecosystem.
Components #
- Definition —
Skill,Parameter,Step,Proceduremodels. - Bundle —
SkillBundlepackaging with loader, validator, capability composition, capability verifier, permission enforcer. - Registry —
SkillRegistryand an in-memory implementation. - Runtime —
SkillRuntimewith context builder, branch merger, circuit breaker, error aggregator, claim extractor, procedure executor. - Multi-skill — chained execution and dependency resolution across skills.
- Expression language — lexer / parser / AST / evaluator / function registry for skill conditionals and templated values.
- Evaluation — rubric-based scoring of skill executions.
- FactGraph integration — bridge into
mcp_fact_graphfor claim recording. - Contract Layer adapters —
SkillRuntimePortAdapter,SkillRegistryPortAdapterimplementing themcp_bundlestandard ports.
Quick Start #
import 'package:mcp_skill/mcp_skill.dart';
final registry = MemorySkillRegistry();
await registry.register(mySkill);
final runtime = SkillRuntime(registry: registry, llm: llmPort);
final result = await runtime.run(skillId: 'summarize', input: {'text': '...'});
Support #
License #
MIT — see LICENSE.