MetorialDocs

Set up Chatwork in Metorial for Claude, ChatGPT and Cursor

Share Chatwork with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API token sign-in, 20 tools (9 read-only).

To give your team Chatwork in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Chatwork integration in a Metorial portal, and each person signs in to Chatwork with their own account. Agents can send, read, edit, and delete messages in chat rooms. The integration has 20 tools, 9 read-only, 9 write and 2 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares Chatwork in a portal and how each person connects
  • The 22 OAuth scopes Chatwork can request, and what each one allows
  • How to keep the 9 read-only tools and reject the other 11

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth (default)OAuthSigns in to Chatwork
API TokenAPI tokentoken

The portal and metorial setup use OAuth unless someone picks another method.

OAuth

People sign in to Chatwork and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
users.profile.me:readRead User ProfileRead your own profile information
users.status.me:readRead User StatusRead your unread/mention/task counts
users.tasks.me:readRead User TasksRead your assigned task list
users.all:readAll User Data (Read)Read all user data including profile, status, and tasks
rooms.all:read_writeRooms (Read & Write)Full read and write access to chat rooms
rooms.all:readRooms (Read)Read room info, members, messages, tasks, and files
rooms.all:writeRooms (Write)Write room info, members, messages, tasks, and files
rooms:writeCreate/Delete RoomsCreate and delete chat rooms
rooms.info:readRoom Info (Read)List and get room details
rooms.info:writeRoom Info (Write)Update room information
rooms.members:readRoom Members (Read)Get room member lists
rooms.members:writeRoom Members (Write)Add, remove, or change room member roles
rooms.messages:readMessages (Read)Read messages in chat rooms
rooms.messages:writeMessages (Write)Post, edit, and delete messages; mark as read/unread
rooms.tasks:readTasks (Read)Read tasks in chat rooms
rooms.tasks:writeTasks (Write)Create tasks in chat rooms
rooms.files:readFiles (Read)Read file information in chat rooms
rooms.files:writeFiles (Write)Upload files to chat rooms
contacts.all:read_writeContacts (Read & Write)Read and manage contacts and contact requests
contacts.all:readContacts (Read)Read contacts and incoming contact requests
contacts.all:writeContacts (Write)Approve or reject incoming contact requests
offline_accessOffline AccessEnables indefinite refresh token lifetime

API Token

To connect, a person enters:

  • token: Chatwork API token from account settings

Use your own Chatwork OAuth app

With your own OAuth app, people see your company's name on the Chatwork consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Chatwork and copy the Redirect URI.

Register the app with Chatwork

Create an OAuth app or client in Chatwork and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Chatwork integration.

Admin: share Chatwork in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Chatwork. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Chatwork as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Chatwork.

Choose who gets it

Add the access groups that should see Chatwork. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Chatwork integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search chatwork

Employee: connect Chatwork

In the portal

Open Chatwork in the catalog

Sign in to your portal and open Chatwork. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Chatwork sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search chatwork
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with API Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Chatwork connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list chatwork
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 9 read-only tools, such as get_room and get_task, and lose the 9 write tools, such as create_room or create_task, and the 2 destructive tools, such as delete_message or leave_or_delete_room.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list chatwork
metorial tools <integration-id>
metorial call <integration-id> get_profile -d '{}'

metorial tools lists the 20 tools, minus any you rejected. get_profile takes no input.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (9)

  • get_tasks: Retrieves tasks either from a specific room or the authenticated user's personal task list across all rooms.
  • get_messages: Retrieves messages from a chat room. Needs roomId.
  • get_message: Retrieves a message by its ID, including the sender, full body, and timestamps.
  • get_room: Retrieves detailed information about a specific chat room including its name, description, type, member counts, and activity statistics. Needs roomId.
  • get_profile: Retrieves the authenticated user's profile information and account status.
  • get_task: Retrieves a task by its ID, including its assignee, assigner, deadline, and originating message.
  • list_rooms: Lists all chat rooms the authenticated user participates in.
  • get_files: Lists files in a chat room or prepares a specific file for download. Needs roomId.
  • get_contacts: Retrieves the authenticated user's contact list.

Write tools (9)

  • edit_message: Edits an existing message in a chat room. Needs roomId, messageId and body.
  • update_room: Updates a chat room's name, description, or icon. Needs roomId.
  • manage_room_members: Updates the membership and roles of a chat room. Needs roomId and membersAdminIds.
  • create_task: Creates a task in a chat room and assigns it to one or more members. Needs roomId, body and assigneeIds.
  • update_task_status: Updates the completion status of a task in a chat room. Needs roomId, taskId and status.
  • mark_messages: Marks messages as read or unread in a chat room. Needs roomId, messageId and action.
  • send_message: Sends a message to a chat room. Needs roomId and body.
  • create_room: Creates a new group chat room. Needs name and membersAdminIds.
  • handle_contact_request: Approves or declines an incoming contact request. Needs requestId and action.

Destructive tools (2)

  • delete_message: Deletes a message from a chat room. Needs roomId and messageId.
  • leave_or_delete_room: Leaves or permanently deletes a chat room. **Leaving** removes your tasks and files from the room. **Deleting** permanently removes all messages, tasks, and files for all members (irreversible). Needs roomId and action.

Triggers

Chatwork has 1 trigger, which fire on events in Chatwork:

  • message_event: Triggers when a message is created, updated, or the user is mentioned in a chat room.

Next steps