# Asana

> Connect Asana to FlyMyAI agents - tasks, projects, comments and any endpoint via OAuth.

Connects [Asana](https://asana.com) to FlyMyAI agents via OAuth. Connect your
Asana account once and the agent can manage tasks, projects, comments and more
through the Asana API - no token to paste.

## What it can do

- **Tasks** - create, read, update, delete, list and search; add comments; move into sections
- **Projects & structure** - list/create/get projects, list sections, list tags
- **People** - current user, workspaces, and users in a workspace
- **Any endpoint** - `asana_request(method, path, query, data)` reaches the full Asana API

The agent acts as the connected Asana user and is bound by that user's access.
Confirm before deleting tasks or making bulk changes.

## How to get credentials

Asana uses OAuth - there's no token to copy.

1. In FlyMyAI, open the Asana MCP and start the setup flow.
2. An Asana authorization screen opens. Sign in with the account the agent should
   act as and approve access.
3. You're redirected back to FlyMyAI; the tool flips to **Configured**.

To revoke access later, in Asana open **My Settings → Apps** and remove FlyMyAI.

## Fields to fill in FlyMyAI

No fields - the OAuth flow stores the access and refresh tokens automatically.
To switch accounts, remove the tool and reconnect.

## Troubleshooting

- **OAuth denied** - approve the FlyMyAI app on the Asana consent screen; an org
  admin may need to allow third-party apps.
- **`401` after about an hour** - the access token expired; FlyMyAI refreshes it
  automatically, but if the refresh token was revoked, reconnect.
- **Search needs a paid plan** - `asana_search_tasks` is an Asana premium feature;
  use `asana_list_tasks` (by project or assignee) otherwise.
- **Missing workspace** - many calls need a workspace gid; call
  `asana_list_workspaces` to find it.

## Links

- [Asana](https://asana.com)
- [Asana API reference](https://developers.asana.com/reference/rest-api-reference)
- [Asana OAuth](https://developers.asana.com/docs/oauth)
