Below are common issues and solutions, with additional explanations to help identify causes and process quickly.
Solutions:
- Check local network connection and proxy settings.
- Verify that
APP_IDandAPP_SECRETare filled in correctly. - Test if you can access the open platform API domain normally (such as
https://open.feishu.cnorhttps://open.larksuite.com).
Solutions:
- Check if the token has expired (usually valid for 2 hours).
- It's recommended to use
loginto obtain and save user tokens first. - If using in server/CI environment, ensure secure token management and proper refresh.
Solutions:
- Enable corresponding API permissions for the application in the developer console and wait for approval.
- For scenarios calling as a user (requiring
user_access_token), ensure the authorization scope (scope) includes the corresponding permissions. If not, you need to login again.
Solutions:
- The current version does not support file/image upload and download yet. These capabilities will be supported in future versions.
Solutions:
- Execute
chcp 65001in Command Prompt to switch to UTF-8. - PowerShell users can adjust fonts or related terminal settings to improve compatibility.
Solutions:
- macOS/Linux: Use
sudo npm install -g @larksuiteoapi/lark-mcpor adjust npm global path permissions. - Windows: Try running Command Prompt as administrator.
Solutions:
- Use
-t(or-tin MCP configurationargs) to reduce the number of enabled APIs. - Use models that support larger context lengths.
Solutions:
- Check port usage and change ports if necessary.
- Ensure the client connects correctly to the corresponding endpoint and can handle event streams.
Note:
- Does not affect scenarios of "manually passing
user_access_token" or "not usinguser_access_token".
StorageManager uses keytar for encrypted storage of user_access_token.
Solutions:
- Install
libsecretdependency:- Debian/Ubuntu:
sudo apt-get install libsecret-1-dev - Red Hat-based:
sudo yum install libsecret-devel - Arch Linux:
sudo pacman -S libsecret
- Debian/Ubuntu: