mcpField
F
feishu-perm

feishu-perm

github.com/m1hengDocuments4.2k263 installsUpdated 30w ago
Repository

About feishu-perm

A Feishu permission-management skill that provides one tool for listing, adding, and removing collaborators on documents and other file types. It supports several member identifiers and permission levels, and is disabled by default because it changes access rights.

Key features

  1. 01List document collaborators
  2. 02Add or remove collaborators
  3. 03Support multiple file and document types
  4. 04Set view, edit, or full access

Use cases

  1. 01Reviewing who can access a file
  2. 02Sharing a document with an email address
  3. 03Granting a group view access to a folder

MCP support

Exposes the `feishu_perm` tool for MCP clients to list, add, and remove collaborators on Feishu files and documents. The tool is disabled by default and requires the `drive:permission` permission.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/m1heng/clawdbot-feishu --skill feishu-perm

After installing, type/feishu-permin Claude Code to confirm it loaded.

Details

From the project README

Feishu Permission Tool

Single tool feishu_perm for managing file/document permissions.

Actions

List Collaborators
{ "action": "list", "token": "ABC123", "type": "docx" }

Returns: members with member_type, member_id, perm, name.

Add Collaborator
{ "action": "add", "token": "ABC123", "type": "docx", "member_type": "email", "member_id": "[email protected]", "perm": "edit" }
Remove Collaborator
{ "action": "remove", "token": "ABC123", "type": "docx", "member_type": "email", "member_id": "[email protected]" }

Token Types

TypeDescription
docOld format document
docxNew format document
sheetSpreadsheet
bitableMulti-dimensional table
folderFolder
fileUploaded file
wikiWiki node
mindnoteMind map

Member Types

TypeDescription
emailEmail address
openidUser open_id
useridUser user_id
unionidUser union_id
openchatGroup chat open_id
opendepartmentidDepartment open_id

Permission Levels

PermDescription
viewView only
editCan edit
full_accessFull access (can manage permissions)

Examples

Share document with email:

{ "action": "add", "token": "doxcnXXX", "type": "docx", "member_type": "email", "member_id": "[email protected]", "perm": "edit" }

Share folder with group:

{ "action": "add", "token": "fldcnXXX", "type": "folder", "member_type": "openchat", "member_id": "oc_xxx", "perm": "view" }

Configuration

channels:
  feishu:
    tools:
      perm: true  # default: false (disabled)

Note: This tool is disabled by default because permission management is a sensitive operation. Enable explicitly if needed.

Permissions

Required: drive:permission

Comments

Markdown supported