# Constraint Satisfaction Matrix AI Agent Connect

> Constraint Satisfaction Matrix MCP provides a logical engine for your AI client to evaluate and rank candidates. It uses five specific pillars, including hard constraints, soft preferences, thresholds, dependencies, and exclusions, to filter through options. Instead of guessing, your agent can now run mathematical evaluations to find the best possible outcomes based on your exact rules.

## Overview
- **Category:** data-analysis
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ZNVzsWIZt17GjeCGhT4SFfVu9onTZBDyehKfyw9d/ai-agent-connect
- **Tags:** optimization, logic, evaluation, pareto, constraints

## Description

You can stop asking your agent to "pick the best option" and start giving it a rigorous framework for decision making. This MCP acts as a decision-support engine that applies mathematical and logical rigor to your selection process. It handles the heavy lifting of comparing candidates against a matrix of rules, ensuring that each choice respects your hard constraints and soft preferences. 

You can use it to manage complex dependencies where one requirement relies on another, or set strict thresholds that must be met before an option is even considered. It also handles exclusions to ensure certain combinations never happen. Whether you are trying to find the most efficient solution or trying to understand why a specific candidate failed to meet your criteria, this MCP provides the logical backbone to make those decisions objective. It moves your agent from subjective reasoning to structured, rule-based evaluation.

## Tools

### summarize_rejections
This tool generates a high-level report that explains exactly why specific options failed your evaluation.

### validate_rule_consistency
This tool checks your rule matrix for logical contradictions before the evaluation begins to prevent errors.

### evaluate_candidates
This tool performs the core mathematical and logical evaluation of your options against your rule matrix.

### find_pareto_frontier
This tool identifies the set of non-dominated, optimal options from your list of evaluated candidates.

## Prompt Examples

**Prompt:** 
```
Evaluate these three candidates against a hard constraint that budget must be under 100.
```

**Response:** 
```
Candidate A (Budget: 80) passed, while Candidate B (Budget: 120) failed due to the Hard Constraint: Budget.
```

**Prompt:** 
```
Find the Pareto optimal options from my evaluated results.
```

**Response:** 
```
The Pareto optimal candidates are Candidate 1 and Candidate 3.
```

**Prompt:** 
```
Why did Candidate 5 fail the evaluation?
```

**Response:** 
```
Candidate 5 failed due to Hard Constraint: Dependency and Threshold: Minimum Quality.
```

## Capabilities

### Rule Validation
Your agent checks for logical conflicts in your rules before running any evaluations.

### Weighted Scoring
The MCP calculates scores based on your specific constraints and preferences.

### Pareto Optimization
Your agent identifies the best possible trade-offs among a set of candidates.

### Failure Analysis
The engine provides clear reasons why specific options did not meet your requirements.

### Constraint Management
The tool handles hard constraints, soft preferences, and dependencies simultaneously.

## Use Cases

### Budgetary Compliance
Filter project proposals to ensure they stay within strict financial limits.

### Resource Allocation
Match personnel or equipment to tasks based on specific skill dependencies and availability.

### Supply Chain Optimization
Rank vendors based on a mix of cost, lead time, and quality thresholds.

### Product Feature Prioritization
Evaluate new features against development constraints and user preference weights.

## Benefits

- Removes subjective bias from the decision-making process.
- Prevents logical errors by validating rule consistency upfront.
- Provides clear, actionable reasons for why options are rejected.
- Identifies optimal trade-offs using Pareto frontier logic.

## How It Works

The MCP connects your AI client to a structured logical engine.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Define your rule matrix including hard constraints and soft preferences.
3. Run the validation tool to ensure your rules do not contradict each other.
4. Execute the evaluation to score your candidates.
5. Review the Pareto frontier or rejection summaries to finalize your choice.

## Frequently Asked Questions

**What is a hard constraint in this MCP?**
A hard constraint is a mandatory requirement that an option must meet to pass the evaluation. If an option fails a hard constraint, it is rejected regardless of other scores.

**How does the MCP handle soft preferences?**
Soft preferences are used to weight and rank candidates. They don't cause a failure, but they influence the final score to favor better options.

**Can I use this with Claude or Cursor?**
Yes, you can use this MCP with any MCP-compatible client, including Claude, Cursor, and Windsurf.

**What does the Pareto frontier represent?**
The Pareto frontier is the set of optimal candidates where you cannot improve one metric without making another one worse.

**How do I know if my rules are broken?**
You can use the validate_rule_consistency tool to check for logical contradictions in your rule matrix before you start evaluating.

**How does the evaluation status work?**
Each criterion results in one of three states: 'pass' if requirements are met, 'fail' if a hard constraint or mandatory threshold is violated, or 'unknown' if data is insufficient. You can use `summarize_rejections` to see why an option failed.

**What is Pareto Optimality in this context?**
It is a method for handling ties in scoring. By using `find_pareto_frontier`, the system identifies candidates where you cannot improve one attribute without making another worse.

**Can I check for rule conflicts before running an evaluation?**
Yes, use the `validate_rule_consistency` tool to check for logical contradictions between constraints and exclusions before you begin.
