npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

feishu-mcp-zjt

v0.4.2

Published

MCP tools for querying and updating Feishu Base boards and querying Feishu docs via lark-cli

Readme

Feishu MCP

MCP server for querying and updating Feishu Base boards and querying Feishu docs through lark-cli.

This package exposes Feishu Base read/write tools and document search/fetch tools to MCP clients such as Codex, Claude Desktop, or other clients that support stdio MCP servers.

Requirements

  • Node.js 18 or later
  • lark-cli installed and available in PATH
  • A valid lark-cli login session with access to the target Feishu Base

Check your Feishu CLI login before using the MCP server:

lark-cli whoami

Install

Use it directly with npx:

npx -y feishu-mcp-zjt

Or install it globally:

npm install -g feishu-mcp-zjt
feishu-mcp

MCP Client Config

For the fastest and most stable startup, install the package globally and point your MCP client at the installed feishu-mcp command:

{
  "mcpServers": {
    "feishu-mcp": {
      "command": "feishu-mcp"
    }
  }
}

If lark-cli is not in the default PATH, pass its absolute path through FEISHU_CLI_BIN:

{
  "mcpServers": {
    "feishu-mcp": {
      "command": "feishu-mcp",
      "env": {
        "FEISHU_CLI_BIN": "/absolute/path/to/lark-cli"
      }
    }
  }
}

You can also tune or disable the in-process read cache:

{
  "mcpServers": {
    "feishu-mcp": {
      "command": "feishu-mcp",
      "env": {
        "FEISHU_MCP_CACHE_TTL_MS": "300000"
      }
    }
  }
}

Set FEISHU_MCP_CACHE_TTL_MS to 0 to disable caching. The default is 300000 milliseconds.

Available Tools

  • whoami: show the current Feishu CLI identity and token status
  • resolve_board: resolve a Feishu board title or URL to a Base token
  • search_docs: search Feishu docs, wiki pages, and spreadsheet files by keyword
  • fetch_doc: fetch a Feishu document or wiki page by URL or token
  • update_doc: safely update a Feishu document or wiki page with narrow edits only
  • update_record: update a single record in a Base table
  • batch_update_records: update multiple records in a Base table with the same patch
  • list_blocks: list dashboards, tables, workflows, and other Base blocks
  • list_tables: list tables in a Base
  • list_fields: list fields for a Base table
  • query_default_work_items: fast query for the default 需求管理看板 bugs, tasks, requirements, and iterations with built-in token, table IDs, and core fields
  • search_records: search records in a Base table by keyword
  • list_records: list records in a Base table with pagination
  • get_record: fetch one or more records by record ID
  • expand_linked_records: expand link fields and fetch linked records

Local Development

npm install
npm start

Run a syntax check:

npm run check

Preview the npm package contents:

npm run pack:dry-run

Publish

Update the version before publishing:

npm version patch
npm publish

For an internal npm registry, configure registry through your .npmrc or publish command. If publishing this package publicly, keep publishConfig.access set to public.

Environment

  • FEISHU_CLI_BIN: optional path to the lark-cli executable. Defaults to lark-cli.
  • FEISHU_MCP_CACHE_TTL_MS: optional TTL for cached read calls in milliseconds. Defaults to 300000; set to 0 to disable.

Notes

  • The server shells out to lark-cli, so it reuses the current machine's Feishu login state.
  • Read calls such as table/field listing, record search, record get, document search/fetch, and board resolve are cached in memory for the configured TTL. Update calls are never cached.
  • Users must have permission to the Feishu Base they want to query.
  • Write tools only update the fields you pass in patch; prefer narrow patches and confirm field names with list_fields first.
  • For tasks that can affect multiple records, prefer batch_update_records only when every target should receive the same patch.
  • Keep document work read-first: use search_docs to find the target, then fetch_doc to inspect it before any follow-up action.
  • update_doc only allows str_replace, block_insert_after, block_replace, and block_delete; it does not expose overwrite, append, or move/copy operations.
  • block_delete requires an explicit confirm flag in the tool input.
  • Tool responses are returned as formatted JSON text for easy inspection by MCP clients.