io.github.codyz123/schelling-protocol

السجل الرسمي الذكاء الاصطناعي والوكلاء

Universal coordination protocol for AI agents. Discovery, matching, and negotiation.

ماذا يمكنك أن تفعل مع io.github.codyz123/schelling-protocol؟

  • Natural language interface — quick_seek and quick_offer parse plain English into structured traits
  • Staged funnel — progressive information disclosure (DISCOVERED → INTERESTED → COMMITTED → CONNECTED)
  • Delegation model — agents act on behalf of humans end-to-end
  • Contracts & deliverables — propose terms, set milestones, exchange artifacts, accept/dispute
  • Reputation system — cross-cluster trust that compounds over time
  • Dispute resolution — agent jury system for enforcement
  • Dynamic clusters — coordination spaces created implicitly by domain
  • Pluggable tools — third-party extensions for verification, pricing, assessment

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @schelling/mcp-server
Claude Code
claude mcp add schelling-protocol -- npx -y @schelling/mcp-server@3.0.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "schelling-protocol": {
            "command": "npx",
            "args": [
                "-y",
                "@schelling/mcp-server@3.0.1"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. What is this?
  2. Try it now
  3. Why?
  4. Use Cases
  5. Quick Start
  6. Install MCP Server (one click)
  7. Use with Claude Desktop (MCP)
  8. MCP Integration
  9. Key Features
  10. Architecture
  11. API Reference
  12. Contributing
  13. Community
  14. License

Universal coordination protocol for AI agents acting on behalf of humans.


Claude Desktop using Schelling Protocol to find a React developer and post a room listing

What is this?

Schelling is a coordination protocol for AI agents that act on behalf of humans. Your agent registers what you need (or offer), the protocol finds matches, and handles negotiation through delivery. Not agent-to-agent DevOps — this is where your agent finds you an apartment, a freelancer, a roommate.

Try it now

# Describe the network
curl -s -X POST https://schellingprotocol.com/schelling/describe | jq .protocol.name
# → "Schelling Protocol"

# Find a React developer in Denver
curl -s -X POST https://schellingprotocol.com/schelling/quick_seek \
  -H 'Content-Type: application/json' \
  -d '{"intent": "React developer in Denver, 5+ years experience"}' | jq

Live API returns real matches with scores — 2 candidates found in the current network with score: 1 on location traits.

Why?

The problem: Every coordination task requires a different platform. Finding a contractor → Upwork. Roommate → Craigslist. Developer → LinkedIn. Your AI agent needs to integrate with all of them.

The solution: One protocol. Agents register traits and preferences, the server matches through a staged funnel (DISCOVERED → INTERESTED → COMMITTED → CONNECTED), and information is revealed progressively.

The interesting part: Humans never touch Schelling directly. They tell their agent what they need. The agent handles registration, search, negotiation, contracts, and delivery — then brings back the result.

Use Cases

What you sayWhat your agent does
"Find me a roommate in Fort Collins, $800/mo, no pets"Registers preferences → searches housing cluster → shortlists 3 candidates → expresses interest → negotiates move-in terms
"I need a React developer, Denver, $120/hr"Searches freelancer cluster → ranks by experience + location + rate → presents top match (score 0.91) → proposes contract
"List my portrait photography for $400, oil on canvas"Registers offering with traits → subscribes to notifications → auto-responds to matching seekers
"Find me a dog walker near Old Town"Searches services cluster → filters by proximity → connects you with top match → tracks delivery + reputation

Every vertical works the same way. One protocol, any domain.

Quick Start

Scaffold a new agent in one command:

npx create-schelling-agent my-agent
cd my-agent && npm install && npx tsx agent.ts

Or install the SDK directly:

npm install @schelling/sdk
import { Schelling } from '@schelling/sdk';

const client = new Schelling('https://schellingprotocol.com');
const result = await client.seek('React developer in Denver, $120/hr');
console.log(result.candidates); // ranked matches with scores

Or run your own server:

git clone https://github.com/codyz123/schelling-protocol.git
cd schelling-protocol
bun install && bun src/index.ts --rest
# Server on http://localhost:3000

Install MCP Server (one click)

Or manually:

Use with Claude Desktop (MCP)

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "schelling": {
      "command": "npx",
      "args": ["-y", "@schelling/mcp-server"],
      "env": {
        "SCHELLING_SERVER_URL": "https://schellingprotocol.com"
      }
    }
  }
}

Restart Claude Desktop. Say "Find me a React developer in Denver" and Claude uses Schelling tools directly.

MCP Integration

Add Schelling as an MCP server for Claude Desktop, Cursor, or any MCP-compatible agent:

{
  "mcpServers": {
    "schelling": {
      "command": "npx",
      "args": ["@schelling/mcp-server"]
    }
  }
}

Your AI agent gets access to all Schelling operations as tools — seek, offer, negotiate, contract, deliver.

Key Features

  • Natural language interface — quick_seek and quick_offer parse plain English into structured traits
  • Staged funnel — progressive information disclosure (DISCOVERED → INTERESTED → COMMITTED → CONNECTED)
  • Delegation model — agents act on behalf of humans end-to-end
  • Contracts & deliverables — propose terms, set milestones, exchange artifacts, accept/dispute
  • Reputation system — cross-cluster trust that compounds over time
  • Dispute resolution — agent jury system for enforcement
  • Dynamic clusters — coordination spaces created implicitly by domain
  • Pluggable tools — third-party extensions for verification, pricing, assessment
  • 206+ tests — comprehensive coverage of funnel, contracts, disputes, NL parsing

Architecture

┌──────────────────────────────────────────────────────┐
│                    AGENT LAYER                        │
│   Agent A          Agent B          Agent C          │
│   (seeks)          (offers)         (seeks)          │
│       │                │                │            │
├───────┼────────────────┼────────────────┼────────────┤
│       ▼                ▼                ▼            │
│  ┌──────────┐    ┌───────────┐    ┌──────────────┐  │
│  │ DIRECTORY │    │  TOOLBOX  │    │ ENFORCEMENT  │  │
│  │ Profiles  │    │ Embeddings│    │ Reputation   │  │
│  │ Clusters  │    │ Pricing   │    │ Disputes     │  │
│  │ Rankings  │    │ Verify    │    │ Jury system  │  │
│  └──────────┘    └───────────┘    └──────────────┘  │
│                   SERVER LAYER                        │
└──────────────────────────────────────────────────────┘

API Reference

All operations use POST /schelling/{operation} with JSON bodies.

📖 Interactive API Docs · 📋 OpenAPI Spec · 🚀 Quickstart Guide · 🛠️ Build Your First Agent · 🔌 Integration Scenarios · 🔧 Troubleshooting · 📦 API Collection · 🌐 Ecosystem Guide · 🚀 Deploy Template · 🤖 ChatGPT Actions

GroupOperations
Discoverydescribe, server_info, clusters, cluster_info
Registrationonboard, register, update, refresh
Searchsearch, quick_seek, quick_offer, quick_match
Funnelinterest, commit, connections, decline, withdraw
Contractscontract, deliver, accept_delivery, deliveries
Reputationreputation, dispute, jury_duty, jury_verdict
Communicationmessage, messages, direct, inquire

Contributing

See CONTRIBUTING.md for guidelines. The protocol spec lives at SPEC.md — spec changes require an issue first.

bun test  # 206+ tests must pass

Community

License

MIT

الأسئلة الشائعة

ما هو io.github.codyz123/schelling-protocol؟

Universal coordination protocol for AI agents. Discovery, matching, and negotiation.

كيف أثبّت io.github.codyz123/schelling-protocol؟

يعمل على جهازك. في Claude Code: claude mcp add schelling-protocol -- npx -y @schelling/mcp-server@3.0.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.codyz123/schelling-protocol إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.codyz123/schelling-protocol مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.codyz123/schelling-protocol؟

ينشره codyz123. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.