# Decern

Manage customer relationships and sales pipelines through a centralized interface. Track contact history, deal stages, and operational tasks to optimize business workflows. Monitor high-value approva…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add decern/crm

# Browse available tools
npx -y @smithery/cli@latest tool list decern/crm

# Get full schema for a tool
npx -y @smithery/cli@latest tool get decern/crm search_contacts

# Call a tool
npx -y @smithery/cli@latest tool call decern/crm search_contacts '{}'
```

## Direct MCP Connection

Endpoint: `https://crm--decern.run.tools`

**Required config:**
- `X-Decern-Agent-Key` (query) — Your private Agent API Key. Generate one at https://decernhq.com/api-keys

## Tools (8)

- `search_contacts` — Search contacts by name, email, or role. Returns matching contacts.
- `get_contact` — Get full details for a specific contact by ID.
- `create_contact` — Create a new contact in the CRM.
- `create_deal` — Create a new deal in the sales pipeline.
- `create_task` — Create a task in the Operations module.
- `update_deal_stage` — Move a deal to a different pipeline stage. Deals worth >= $10,000 require human approval.
- `log_activity` — Log an interaction or activity on any CRM object.
- `get_approval_status` — Check whether a pending approval has been granted or rejected.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get decern/crm <tool-name>
```

## Resources

- `decern://sales/pipeline` — Active deals with stage, value, and approval state
- `decern://contacts/list` — All contacts with status, health score, and intent signals
- `decern://contacts/{id}/history` — Full audit trail and activity history for a specific contact
- `decern://ops/status` — Task queue counts by execution state
- `decern://approvals/pending` — Pending approval requests awaiting human decision
