mcfactory
v0.1.0-alpha.1
Published
Model Context Factory – a unified AI framework for providers, workflows, guardrails, media processing, and training pipelines.
Downloads
248
Maintainers
Readme
MCFactory
An SDK for the Model Context Protocol (MCP) - A unified framework for building AI applications with providers, workflows, guardrails, and training pipelines.
What does MCFactory manufacture?
MCFactory creates and orchestrates Model Context instances - programmable AI environments that connect multiple providers, apply safety guardrails, and execute complex workflows.
import { createMC } from 'mcfactory';
// One-liner to spin up a Model Context
const ctx = createMC({
providers: ['openai', 'anthropic'],
guardrails: ['content-filter', 'jailbreak-detection'],
workflow: 'translation-pipeline'
});Alpha Release Notice
This is an early Alpha release. The API may change during Alpha. MCFactory is free to use for projects earning less than 10,000 USD per month. Repackaging or resale of MCFactory is not permitted.
Installation
npm install mcfactoryUsage
MCFactory provides both a CLI tool for development workflows and an SDK for programmatic integration.
SDK - Programmatic Usage
import { createMC, providers } from 'mcfactory';
// Create a Model Context with multiple AI providers
const context = createMC({
providers: [
providers.openai({ apiKey: 'your-key' }),
providers.anthropic({ apiKey: 'your-key' })
],
guardrails: ['content-moderation', 'jailbreak-prevention']
});
// Execute AI tasks through the unified interface
const result = await context.translate({
text: "Hello world",
targetLanguage: "es",
provider: "anthropic" // or let MCFactory auto-route
});CLI - Development Tool
# Install globally for CLI usage
npm install -g mcfactory
# Get help
mcfactory --help
# Run a training pipeline
mcfactory run-pipeline --config my-config.jsonFeatures
- Translation services
- AI detection
- Content moderation
- Agent orchestration
- Media processing
- Training data management
- Guardrails and safety
- Workflow automation
- MCP (Model Context Protocol) integration
Documentation
- Introduction - Overview and getting started
- Installation - Setup and configuration
- Architecture - System design and principles
- SDK - Client library usage
- CLI - Command-line interface
- Services - Available AI services
- Agents - Intelligent text processing agents
- Providers - AI model providers
- Factories - Service factory pattern
- Guardrails - Safety and validation
- Workflows - Pipeline automation
- Configuration - System configuration
- Training Datasets - Data preparation
- Translation - Language services
- Detection - AI content detection
- Moderation - Content safety
- Error Handling - Error management
- MCP Tools - Model Context Protocol
- Integration - Third-party integration
- Project Structure - Code organization
License
This project uses the MCFactory ALPHA License. See LICENSE for details. #� �m�c�f�a�c�t�o�r�y� � �
