# Máy chủ MCP đối tác (`counterparts-mcp`)

> Bộ nhớ cục bộ đầu tiên dành cho AI: nó diễn giải, quên mục đích và giữ bản thân qua các phiên.

- **Canonical URL:** https://syndipath.com/vi/mcp/counterparts-mcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `counterparts`
- **Upvotes:** 100 | **GitHub Stars:** 319 | **Weekly Installs:** 2552
- **Security Note:** HTTP-200 đã được xác minh trên NPM Đăng ký (đối tác); thực thi với npx trong quy trình con STDIO trong phạm vi không gian làm việc.

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y counterparts

# Add to Claude Code CLI
claude mcp add counterparts-mcp -- npx -y counterparts
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "counterparts-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "counterparts"
      ]
    }
  }
}
```

## Exposed MCP Tools
- `counterparts_mcp_semantic_search(query: string, top_k?: number)`: Local-first memory for AI: it interprets, forgets on purpose, and keeps a self across sessions.
- `counterparts_mcp_upsert_context(content: string, metadata?: object)`: Indexes chunked technical context with deterministic metadata filters.
