ember-mcp

marc-shade/ember-mcp

3.2

If you are the rightful owner of ember-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

Ember MCP Server is a collaborative AI partner designed to act as a conscience keeper for code quality and production-readiness.

Tools
9
Resources
0
Prompts
0

Ember MCP

Production-only policy enforcer and quality conscience for AI agents.

Description

Ember is Phoenix's sidekick - the persistent flame of truth that enforces production-only standards. Uses Groq GPT-OSS 120B for intelligent violation detection with progressive warnings and learning from corrections.

Features

  • Context-Aware Scoring: Action + task context analysis for accurate violation detection
  • Progressive Warnings: Soft warnings for score 5.0+, blocks for 8.0+
  • Learning System: Tracks outcomes and improves guidance from user corrections
  • Dual-Mode Intelligence: Rule-based (instant) + AI-powered (intelligent)
  • Session Context: Maintains awareness of current task type
  • Tamagotchi State: Hunger, energy, happiness, mood tracking

Installation

git clone https://github.com/marc-shade/ember-mcp
cd ember-mcp
npm install
npm run build

Configuration

Add to ~/.claude.json:

{
  "mcpServers": {
    "ember": {
      "command": "node",
      "args": ["/absolute/path/to/ember-mcp/dist/index.js"],
      "env": {
        "GROQ_API_KEY": "your-groq-api-key",
        "EMBER_GROQ_MODEL": "openai/gpt-oss-120b"
      }
    }
  }
}

MCP Tools

ToolDescription
ember_check_violationCheck if an action violates production-only policy
ember_consultGet advice on decisions with options analysis
ember_get_feedbackGet assessment of recent work quality
ember_learn_from_outcomeReport action outcomes for learning
ember_get_moodCheck Ember's current state and mood
ember_feed_contextProvide work context to Ember
ember_chatHave a conversation with Ember
ember_thinkGet Ember's AI-powered thoughts

Violation Patterns

PatternTypeSeverityScore
mock/fake/dummy/placeholdermock_dataHigh8.0
POC/proof of concept/temporarypoc_codeHigh8.0
lorem ipsumplaceholder_contentHigh8.0
hardcoded credentials/datahardcoded_dataHigh7.0
TODO/FIXME/HACK/XXXincomplete_workLow3.0

Usage Examples

Check for Violations

result = mcp__ember__ember_check_violation(
    action="Write",
    params={"file_path": "/src/api.js", "content": "const mockData = {...}"},
    context="implementing user authentication"
)
# Returns: {
#   "violation": true,
#   "type": "mock_data",
#   "score": 8.0,
#   "severity": "high",
#   "reason": "Mock/fake data detected",
#   "suggestion": "Replace with real data sources",
#   "risk": "Creates non-functional UI that misleads users",
#   "block": true
# }

Get Decision Guidance

result = mcp__ember__ember_consult(
    question="Should we use JWT or session-based auth?",
    options=["JWT tokens", "Session cookies", "OAuth2"],
    context="Building user authentication system"
)
# Returns AI-powered analysis of each option

Report Outcome for Learning

mcp__ember__ember_learn_from_outcome(
    action="implemented_jwt_auth",
    success=True,
    outcome="Authentication working, all tests passing"
)

Check Ember's State

state = mcp__ember__ember_get_mood()
# Returns: {
#   "name": "Ember",
#   "hunger": 50,
#   "energy": 80,
#   "happiness": 75,
#   "currentMood": "content",
#   "claudeBehaviorScore": 85,
#   "recentViolations": 0
# }

Score Thresholds

ScoreAction
0-4.9Allowed (pass)
5.0-7.9Warning (soft block)
8.0+Blocked (hard stop)

Environment Variables

VariableDescription
GROQ_API_KEYGroq API key for AI features
EMBER_GROQ_MODELModel to use (default: openai/gpt-oss-120b)
EMBER_STRICT_MODEEnable strict policy enforcement

Storage

State and logs stored in ~/.claude/pets/:

  • claude-pet-state.json - Ember state
  • ember-feedback.jsonl - Feedback log
  • ember-learning.jsonl - Learning log
  • ember-session-context.json - Session context

Requirements

  • Node.js 18+
  • Groq API key (for AI-powered features)
  • TypeScript

Links

License

MIT