First-party app
Asana

Asana

Manage Asana projects, tasks, subtasks, comments, tags, and users via the Asana REST API.

stable ProductivityProject Management

About

Asana ships in the w6w first-party pack. It declares 22 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.asana
Version
0.2.2
Author
w6w
Licence
MIT
Categories
Productivity · Project Management

Overview

Asana gives a workflow full control over projects and tasks — creating, updating, moving and deleting tasks and subtasks, searching across them, and keeping tags, comments and project membership in sync as work moves through a process.

Tasks can carry comments and tags that are added or removed independently, and a task can belong to more than one project at once — added to or removed from either without touching the task itself. Subtasks are managed as their own resource (created, listed) rather than as fields on the parent, which matches how Asana actually models a checklist of smaller pieces of work.

Project and user data — creating and updating projects, listing and looking up users — round it out, so a workflow can turn an external event, such as a support ticket or a form submission, into tracked work in Asana, or pull task state back out to drive another step.

Build with Asana

Three routes to the same 22 actions. The Workflow tab is generated from Asana's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Add Task Comment

add-task-comment

Post a comment (story) to a task. Toggle `isTextHtml` to send the body as HTML.

Add Task to Project

add-task-project

Add a task to a project, optionally placing it relative to another task or inside a section.

Add Tag to Task

add-task-tag

Add a tag to a task.

Create Project

create-project

Create a project. When `team` is set, posts to `/teams/{team}/projects`; otherwise, posts to `/projects` with `workspace` in the body.

Create Subtask

create-subtask

Create a subtask under the given parent task.

Create Task

create-task

Create a task in the given workspace.

Delete Project

delete-project

Delete a project by ID.

Delete Task

delete-task

Delete a task by ID.

Get Project

get-project

Retrieve a single project by ID.

Get Task

get-task

Retrieve a single task by ID.

Get User

get-user

Retrieve a user by gid, email, or the keyword `me` (current user making the request).

List Projects

list-projects

List projects in a workspace or team. Walks one page; pass back `offset` (from `next_page.offset`) to get the next.

List Subtasks

list-subtasks

List subtasks of a parent task. Walks one page; pass back `offset` (from `next_page.offset`) to get the next.

List Tasks

list-tasks

List tasks with optional filters. Walks one page; pass back `offset` (from `next_page.offset`) to get the next. Note: if `assignee` is set, `workspace` is required.

List Users

list-users

List users in a workspace.

Move Task to Section

move-task

Move a task into the given section (POST /sections/{section}/addTask).

Remove Task Comment

remove-task-comment

Delete a task comment (story) by ID.

Remove Task from Project

remove-task-project

Remove a task from a project.

Remove Tag from Task

remove-task-tag

Remove a tag from a task.

Search Tasks

search-tasks

Search for tasks in a workspace (GET /workspaces/{workspace}/tasks/search).

Update Project

update-project

Update a project's fields.

Update Task

update-task

Update a task's fields.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Asana's real ids.

{
  "manifestVersion": "2",
  "name": "asana-example",
  "steps": [
    {
      "id": "add-task-comment",
      "uses": {
        "app": "io.w6w.asana",
        "action": "add-task-comment",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "id": "<id>",
        "text": "<text>"
      }
    }
  ]
}

Here are some of the things you can do

  • Add Task Comment

    perform
    add-task-comment
  • Add Task to Project

    perform
    add-task-project
  • Add Tag to Task

    perform
    add-task-tag
  • Create Project

    perform
    create-project
  • Create Subtask

    perform
    create-subtask

+17 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Asana, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Asana. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "create-task",
  payload: {
    workspace: "<value>",
    name: "<value>",
    // assignee: "<value>",
    // assignee_status: "<value>",
    // completed: "<value>",
    // due_on: "<value>",
    // liked: "<value>",
    // notes: "<value>",
    // projects: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action create-task --payload '{"workspace":"<value>","name":"<value>"}'

Give an AI agent Asana — without giving it Asana's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.asana#add-task-comment",
    "input": {
      "id": "<id>",
      "text": "<text>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Asana connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Asana's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Asana itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Asana declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Asana platform status

Atlassian Statuspage rollup for status.asana.com, with per-component detail. Unauthenticated and unsigned.

quota

API quota headroom