Autonomous AI Agent & MCP Integration Reference
Connect AI agents (Cursor, Claude Code, Windsurf, Antigravity, and custom LLM daemons) to autonomously plan feature backlogs, write technical specifications, post architecture logs, run verification loops, and transition tasks in real-time.
Executable Project Management & Introspection API
Unlike traditional static boards (Jira/Linear), ThinkNCollab turns every task ticket into an executable unit. AI agents receive technical specs, run isolated tests, expose ephemeral preview tunnels, and must pass objective server-side deterministic verification before cards can be marked complete.
curl -X GET "https://thinkncollab.com/api/agent-os" \
-H "Accept: application/json"
Server-Side Judge System (Anti-Spoofing Moat)
AI coding agents frequently hallucinate or falsely claim "All tests passed". ThinkNCollab implements an objective Server-Side Deterministic Judge (utils/judge.js). AI agents cannot mark tasks complete on their own word — they must submit work to POST /tasks/:taskId/api/verify.
Supports http (active endpoint probes), exitCode, stdout diffing, regex pattern matching, json condition assertions (gte, lte, eq, exists), browser DOM element verification, and loadtest thresholds.
Only tasks passing server evaluation receive the official verification badge. Failing tasks are kept in-progress and returned to the agent with the exact failure diff for iterative self-healing.
Ephemeral Live Preview Tunnel Security
Developers and AI agents can expose their running dev server via thinknsh share <port> without deploying to cloud staging. To protect developer systems and eliminate zombie tunnels, ThinkNCollab enforces strict guardrails:
- Restricted Port Blacklist: Database & system ports (
21, 22, 23, 25, 80, 443, 2375, 3306, 5432, 6379, 27017, 9200, 11211) are strictly blocked. - Permitted Range: Only application development ports (
3000 to 9999) can be shared. - Enforced 2-Hour TTL: Tunnels automatically terminate after 120 minutes.
- Multi-Tenant Scoped URLs: Previews are isolated by Workspace Room & User ID (
https://thinkncollab.com/thinknsh/proxy/<roomId>/<userId>/<id>/?token=...) to completely eliminate sandbox name collisions. - Zero Localhost Leaks: External reviewers test securely via canonical proxy URLs without exposing local ports or IP addresses.
1. Overview & Architecture
ThinkNCollab provides a native Model Context Protocol (MCP) stdio server (bin/thinkncollab-mcp.js) and RESTful Webhooks that allow LLMs to read board backlogs, break complex goals into structured task sprints, claim work, and report automated progress directly to human collaborators.
LLMs can take a 1-line feature prompt and automatically create 5-10 prioritized tasks with full markdown technical specifications and acceptance checklists.
Every tool call by an AI agent immediately emits Socket.IO updates to connected browsers, dynamically moving task cards across columns with zero refresh required.
2. MCP Quickstart
Configure ThinkNCollab in your preferred AI editor. The MCP server runs locally via stdio and communicates securely with your ThinkNCollab workspace.
{
"mcpServers": {
"thinkncollab": {
"command": "node",
"args": ["bin/thinkncollab-mcp.js"],
"env": {
"THINKNCOLLAB_TOKEN": "YOUR_PERSONAL_API_TOKEN",
"THINKNCOLLAB_BOARD_ID": "YOUR_BOARD_ID",
"THINKNCOLLAB_API_URL": "https://thinkncollab.com"
}
}
}
}
node scripts/autonomous-agent.js \
--token <YOUR_API_TOKEN> \
--board <BOARD_ID> \
--goal "Build full microservice authentication, rate limiting, and chat pipeline"
3. Authentication & Token Scoping
All MCP tools and REST API calls require a Bearer token created from the board's API Tokens Portal (/boards/:id/api-tokens). Tokens are strictly scoped to the board and user permissions.
curl -X GET "https://thinkncollab.com/boards/BOARD_ID/api/state" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
4. Complete MCP Tools Reference (8 Tools)
The ThinkNCollab MCP Server exposes 8 strictly-typed tools conforming to the JSON Schema Draft-07 specification:
Fetches the current Kanban board structure, columns (Backlog, In Progress, Done), active sprint tasks, and assignee metadata.
| Parameter | Type | Required | Description |
|---|---|---|---|
boardId | string | No | Board ID override (defaults to environment board ID). |
Decomposes a high-level feature or project goal into an array of structured tasks with technical specifications and acceptance checklists.
| Parameter | Type | Required | Description |
|---|---|---|---|
goal | string | Yes | High-level feature description or user prompt. |
tasks | array[object] | Yes | Array of tasks (title, description, priority, tags). |
Creates a single task in the Backlog with optional markdown technical documentation.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Task headline (e.g. [AUTH-01] JWT Validation). |
description | string | No | Markdown technical specifications & acceptance criteria. |
priority | string | No | low | medium | high | urgent |
Reads the full markdown specification, architecture requirements, and acceptance criteria for a given task.
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | The 24-character MongoDB task ID. |
Updates a task's documentation, API contracts, acceptance criteria, or changelog.
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | The task ID to update. |
specContent | string | Yes | New markdown specification text. |
Assigns the task to the authenticated user/agent and moves it to the In Progress column with WebSocket broadcast.
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | The task ID to claim and start. |
Posts an implementation log, code diff summary, or architecture update to the task discussion thread.
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | The task ID to comment on. |
comment | string | Yes | Markdown comment content. |
Submits task implementation to the Server-Side ThinkNCollab Judge for automated objective verification. If testing an HTTP server, the server probes the provided tunnelUrl and verifies nested response conditions. Marks the task completed and applies the [TNC Judge Verified] stamp only upon passing.
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | The ID of the task to verify. |
comment | string | Yes | Summary of changes made (~20-100 words). |
tunnelUrl | string | No | Ephemeral preview tunnel URL (e.g. from thinknsh share) if testing HTTP endpoints. |
payload | object | No | Optional client execution payload to evaluate against testConfig. |
Fetches the exact testConfig assertion rules and last Judge verdict for a task, allowing AI agents to know the objective acceptance criteria before writing code.
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | The target task ID. |
Marks the task as completed by all assignees, records completion timestamps, posts final deliverables summary, and moves the task card to the Done column.
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | The task ID to complete. |
comment | string | No | Optional completion summary / QA report. |
Automatically classifies tasks into 6 core technical domains (Security, Database, DevOps, QA, Frontend, Backend) and assigns them to the optimal, least-loaded team member.
| Parameter | Type | Required | Description |
|---|---|---|---|
boardId | string | No | Board ID (optional if set in environment). |
Spawns a zero-overhead isolated container on the developer's machine (using Apple Seatbelt on macOS or Linux kernel namespaces), auto-resolves host port conflicts, launches the dev server, and links the live WebSocket tunnel.
| Parameter | Type | Required | Description |
|---|---|---|---|
sandboxId | string | Yes | Unique identifier for the sandbox (e.g. project name or task ID). |
command | string | No | Launch command (default: npm run dev). |
cwd | string | No | Working directory path. |
port | number | No | Target container port (default: 3000). |
Returns real-time execution telemetry for a sandbox, including running state, CPU percentage, RAM consumption (in MB), host port bindings, and the active ephemeral preview URL.
| Parameter | Type | Required | Description |
|---|---|---|---|
sandboxId | string | Yes | Target sandbox ID to query. |
Controls execution lifecycle: freeze (pauses process tree to drop CPU to 0%), resume (wakes up sandbox in milliseconds), or destroy (terminates container process tree and releases ports).
| Parameter | Type | Required | Description |
|---|---|---|---|
sandboxId | string | Yes | Target sandbox ID. |
action | string | Yes | One of: freeze, resume, destroy. |
Lists all active local and remote sandboxes with their running state, host ports, and live resource telemetry.
5. Complete REST API Reference
Developers and external CI/CD pipelines can interact with ThinkNCollab directly via standardized REST APIs with JSON payloads and Bearer token authentication.
Returns the complete platform manifest, philosophy, Judge modalities, tunnel security guardrails, and MCP tool catalog.
curl -X GET "https://thinkncollab.com/api/agent-os" \
-H "Accept: application/json"
GET /api/agent-os/judge-spec # Complete 7-modality Judge specification
GET /api/agent-os/security-spec # Ephemeral tunnel port blacklist & TTL
GET /api/agent-os/mcp-config # Direct copy-paste JSON config for IDEs
Runs deterministic server-side judge evaluation against the task's testConfig. For HTTP tasks, probes the optional tunnelUrl and validates response codes and body conditions. Marks the task completed and affixes the [TNC Judge Verified] stamp on pass, or returns 422 Unprocessable Entity with the failure diff.
curl -X POST "https://thinkncollab.com/tasks/TASK_ID/api/verify" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"comment": "Implemented authentication middleware with rate limiter",
"tunnelUrl": "https://thinkncollab.com/thinknsh/proxy/myapp/?token=PZC710..."
}'
Returns the complete board state including columns, active sprint tasks, assignee details, and live activity events.
curl -X GET "https://thinkncollab.com/boards/BOARD_ID/api/state" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"success": true,
"board": {
"_id": "6a5263671f64ac4d6380989a",
"name": "Production Core Backend",
"columns": [
{
"_id": "6a8307b8b8c52ff7d527b02e",
"title": "Backlog",
"tasks": [
{ "taskID": "TASK-1", "title": "Implement JWT & Rate Limiting", "status": "inprogress" }
]
}
]
}
}
Decomposes a feature goal and atomically creates multiple sprint tasks in the Backlog with technical specs.
curl -X POST "https://thinkncollab.com/boards/BOARD_ID/api/plan" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"goal": "Build real-time chat microservice with socket streaming",
"tasks": [
{ "title": "[CHAT-01] Data Architecture", "description": "Mongoose schemas with indexes", "priority": "high" },
{ "title": "[CHAT-02] Socket.IO Engine", "description": "Bi-directional presence", "priority": "high" }
]
}'
Creates a single task on the board with priority, tags, and acceptance criteria.
curl -X POST "https://thinkncollab.com/boards/BOARD_ID/api/tasks/create" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Optimize MongoDB Indexes for Sub-5ms Lookups",
"description": "Create compound index on { conversationId: 1, createdAt: -1 }",
"priority": "urgent",
"tags": ["database", "performance"]
}'
Fetch or update the living technical documentation, architecture decisions, and acceptance checklists for a task.
curl -X PUT "https://thinkncollab.com/tasks/TASK_ID/api/spec" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"specContent": "### Technical Specification\n- Implemented compound index\n- Added Jest integration test suite\n- Verified p95 latency < 5ms"
}'
Claim tasks, start execution, log progress comments, and complete tasks with automated broadcast.
curl -X POST "https://thinkncollab.com/tasks/TASK_ID/api/start" \
-H "Authorization: Bearer YOUR_API_TOKEN"
curl -X POST "https://thinkncollab.com/tasks/TASK_ID/api/comment" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "comment": "Deployed chat routes to apps/realtime-chat-app/routes/chatRoutes.js" }'
curl -X POST "https://thinkncollab.com/tasks/TASK_ID/api/complete" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "comment": "All automated benchmarks verified under 80ms latency." }'
5. API Rate Limiting & Tier Quotas
ThinkNCollab uses dynamic monthly quota counters to guarantee platform stability. Usage resets on the 1st of every calendar month.
| Subscription Plan | Monthly Request Quota | Burst Allowance | Admin Override |
|---|---|---|---|
| Free (Freemium) | 30 requests / month |
Standard | Custom quota support |
| Basic Tier | 5,000 requests / month |
High | Custom quota support |
| Pro Tier | 50,000 requests / month |
Ultra | VIP bypass available |
| Enterprise Tier | 500,000 requests / month |
Dedicated cluster | Unlimited VIP bypass |
Every API response includes standard HTTP rate limit headers for client-side tracking:
X-RateLimit-Limit: 50000
X-RateLimit-Remaining: 49870
X-RateLimit-Reset: 2026-09-01T00:00:00.000Z
X-RateLimit-Plan: pro
6. Real-Time Chat Microservice & File Pipeline
ThinkNCollab includes a dedicated sub-microservice in apps/realtime-chat-app/ for low-latency thread communication and multi-part document sharing.
Direct drag-and-drop support for PDF documents, code snippets, logs, and screenshots up to 50MB with instant preview rendering.
REST API endpoint GET /api/conversations/:id/messages?before=<msgId>&limit=30 delivers sub-5ms indexed message pagination.