mcp_profile 0.2.0
mcp_profile: ^0.2.0 copied to clipboard
AI persona definitions with template rendering, context injection, profile selection, and appraisal scoring for the MCP ecosystem.
MCP Profile #
Positioning:
mcp_profileis 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_profile/imports remain valid for advanced or integration scenarios but are discouraged in product code.
AI persona definitions with template rendering, context injection, profile selection, and appraisal scoring. Pluggable engines (appraisal / decision / expression) drive a unified runtime that exposes the mcp_bundle standard ports.
Components #
- Definition —
Profile, sections, capability metadata, builder, registry, renderer. - Expression — formatter, policy, style, evaluator (templated profile prompts).
- Appraisal — engine, metric definition / source, normalization, results.
- Decision — evaluator, decision policy, policy condition, guidance.
- Bundle — profile bundle spec.
- Engines (re-exported for custom implementations and tests) —
AppraisalEnginePort,DecisionEnginePort,ExpressionEnginePort,EnginePortscontainer. - Standard port adapters —
MetricsPortAdapter,AppraisalPortAdapter,DecisionPortAdapter,ExpressionPortAdapter,ProfileSummariesPortAdapterimplementingmcp_bundleContract Layer. - Runtime — unified
ProfileRuntimeorchestrating Appraisal → Decision → Expression. - Feature modules — cache, versioning, concurrency, fact-graph integration.
Quick Start #
import 'package:mcp_profile/mcp_profile.dart';
final runtime = ProfileRuntime(
registry: ProfileRegistry(),
engines: EnginePorts(
appraisal: StubAppraisalEnginePort(),
decision: DefaultDecisionEnginePort(),
expression: PassthroughExpressionEnginePort(),
facts: factsPort,
summaries: summariesPort,
llm: llmPort,
),
);
final result = await runtime.apply(profileId, RuntimeProfileContext(...));
Support #
License #
MIT — see LICENSE.