Skip to main content
Glama
Roland0511

MCP Feishu Project Manager

by Roland0511

get_view_detail

Retrieve detailed lists of work items from specific views in Feishu project management systems. Specify view ID and pagination to organize and access project data efficiently.

Instructions

获取飞书项目视图工作项列表 Args: view_id: 视图标识 page_num: 页码,默认为1 page_size: 每页数量,默认为20

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_numNo
page_sizeNo
view_idYes

Implementation Reference

  • The MCP tool handler function for 'get_view_detail'. It ensures the plugin token is obtained and delegates to the FSProjClient's get_view_detail method to fetch the view details.
    @mcp.tool("get_view_detail") def get_view_detail(view_id: str, page_num: int = 1, page_size: int = 20): """根据视图id获取指定视图下的工作项列表 Args: view_id: 视图标识id page_num: 页码,默认为1 page_size: 每页数量,默认为20 """ client.get_plugin_token() return client.get_view_detail(view_id, page_num, page_size)
  • The core implementation in FSProjClient that performs the HTTP GET request to the Feishu Project API endpoint '/open_api/{project_key}/fix_view/{view_id}' to retrieve the work items in the specified view.
    def get_view_detail(self, view_id: str, page_num: int = 1, page_size: int = 20) -> Dict: """获取视图工作项列表 Args: view_id: 视图标识 page_num: 页码 page_size: 每页数量 """ data = { "page_num": page_num, "page_size": page_size } response = self._request( "GET", f"/open_api/{self.project_key}/fix_view/{view_id}", params=data ) err_code = response.get("code", 0) if err_code != 0: raise Exception(f"获取视图工作项列表失败,错误码: {err_code}, 错误信息: {response.get('err_msg')}") return response.get("data", {})

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Roland0511/mcp-feishu-proj'

If you have feedback or need assistance with the MCP directory API, please join our Discord server