Asana

Lightweight, dependency-free, in-memory fake of the Asana API v1 for testing code that uses the real node-asana client or the language-agnostic /api/1.0 REST surface.

Default port: 4789

All responses are wrapped in the Asana envelope: { data: { ... } } for a single resource, { data: [ ... ] } for collections. Errors use { errors: [{ message }] }.

Quick start

import { AsanaServer } from "./services/asana/src/server.js";

const server = new AsanaServer(4789);
await server.start();
// ... run your app/tests ...
await server.stop();
const res = await fetch("http://127.0.0.1:4789/api/1.0/tasks", {
  method: "POST",
  headers: { Authorization: "Bearer asana_xxx", "Content-Type": "application/json" },
  body: JSON.stringify({ data: { name: "My task", workspace: "1000001" } }),
});
// => 201 { data: { gid, resource_type: "task", name: "My task", ... } }

Access via MCP / preview URL

Point your MCP server / agent tooling at the preview URL printed by the parlel pool (defaults to http://127.0.0.1:4789). Set ASANA_BASE_URL to that URL and supply any non-empty ASANA_ACCESS_TOKEN; the fake accepts any Bearer token.

Implemented operations

All /api/1.0/* routes require an Authorization: Bearer <token> header.

Tasks

Projects

Workspaces

Users

Service & inspection

Surface coverage

This emulator faithfully replicates the API surface most application code and agents exercise. Anything below the supported lines is either an intentional design choice for a fast, zero-cost local emulator (✓ By design) or a candidate for a future release (⟳ Roadmap) — never a silent inaccuracy.

Legend: ✅ fully supported · ◐ accepted (stored, not strictly enforced) · ✓ by design · ⟳ on the roadmap.

FeatureStatus
Task create / get / update / delete / list✅ Supported
Project list / create / get✅ Supported
Workspace list / get✅ Supported
users/me✅ Supported
{ data: ... } request/response wrapping✅ Supported
Bearer token auth✅ Supported
due_at (datetime) and due_on (date)✅ Supported
start_on, html_notes task fields✅ Supported
workspace required param on task/project list✅ Supported
Error envelope { errors: [{ message }] }✅ Supported
Sections, subtasks, stories, attachments, tags⟳ Roadmap
opt_fields / opt_expand field selection◐ Returns full resource
Pagination (offset/limit/next_page)◐ Returns all in one page
Token validity / scope enforcement✓ By design — Any non-empty credential is accepted — no real secrets needed

Error shapes

Errors use the Asana envelope { errors: [{ message }] }.

StatusWhen
400missing required field (e.g. task/project name, workspace on list endpoints)
401no Authorization: Bearer header
404unknown resource / endpoint
405method not allowed

Manifest

See services/asana/manifest.json:

<!-- parlel:testenv:start -->

Configuration — test.env

Copy these into your test.env (used by the bridge sidecar flow). Tokens are Parlel's seeded test credentials — any non-empty value is accepted by the emulator, so you rarely need to change them. Swap in real credentials only when pointing at the live service in prod.env.

ASANA_ACCESS_TOKEN=asana_parlel
ASANA_BASE_URL=http://parlel-bridge:4789
<!-- parlel:testenv:end -->