@xzxzzx/bilibili-mcp 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +24 -1
  2. package/README_EN.md +55 -18
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  用claude code(glm4.7模型)做的总结B站视频的MCP(经过antigravity里的claude,gemini模型修改bug)(提取字幕与评论)
8
8
 
9
9
  > [!TIP]
10
- > ⚠️ **快速开始**:使用前请务必配置您的 B 站 Cookie,否则将无法提取视频字幕与评论。详见 [**⚙️ 凭证配置**](#️-凭证配置)。
10
+ > ⚠️ **提示**:使用前请务必配置您的 B 站 Cookie,否则将无法提取视频字幕与评论。详见 [**⚙️ 凭证配置**](#️-凭证配置)(凭证只会保存在本地,不会上传到任何地方)。
11
11
 
12
12
  View this document in [English](./README_EN.md).
13
13
 
@@ -27,6 +27,7 @@ View this document in [English](./README_EN.md).
27
27
  - [Claude Code](#claude-code)
28
28
  - [方法一:通过 CLI 命令快速安装(推荐)](#方法一通过-cli-命令快速安装推荐)
29
29
  - [方法二:通过配置文件手动添加(高级)](#方法二通过配置文件手动添加高级)
30
+ - [Claude Desktop (桌面客户端)](#claude-desktop-桌面客户端)
30
31
  - [方法三:通过 npm 全局安装](#方法三通过-npm-全局安装)
31
32
  - [🏗️ Trae (字节跳动官方 IDE)](#️-trae-字节跳动官方-ide)
32
33
  - [🌊 Windsurf (Codeium 官方 IDE)](#-windsurf-codeium-官方-ide)
@@ -129,6 +130,28 @@ claude mcp add bilibili-mcp --command "npx" --args "-y" --args "@xzxzzx/bilibili
129
130
  ```
130
131
  3. 保存后重启 Claude Code。
131
132
 
133
+ ### Claude Desktop (桌面客户端)
134
+
135
+ Claude Desktop 支持通过全局配置文件接入 MCP 服务器:
136
+
137
+ 1. 打开 Claude Desktop 配置文件:
138
+ - Windows 路径:`%APPDATA%\Claude\claude_desktop_config.json`
139
+ - macOS 路径:`~/Library/Application Support/Claude/claude_desktop_config.json`
140
+ - *提示:您也可以在 Claude Desktop 的 **Settings** -> **Developer** 中点击 **Edit Config** 直接打开该文件。*
141
+ 2. 在 `mcpServers` 节点下添加:
142
+
143
+ ```json
144
+ {
145
+ "mcpServers": {
146
+ "bilibili-mcp": {
147
+ "command": "npx",
148
+ "args": ["-y", "@xzxzzx/bilibili-mcp"]
149
+ }
150
+ }
151
+ }
152
+ ```
153
+ 3. 保存文件并从侧边栏重启或重新开启对话。
154
+
132
155
  #### 方法三:通过 npm 全局安装
133
156
 
134
157
  安装后可直接使用命令行工具管理配置:
package/README_EN.md CHANGED
@@ -7,7 +7,7 @@
7
7
  A Bilibili video auxiliary MCP tool built based on mainstream AI development tools like Claude Code, Cursor, Trae, and Google Antigravity. It aims to quickly extract core video information, highlights, and popular comments through Large Language Model capabilities, helping you process audio and video content efficiently.
8
8
 
9
9
  > [!TIP]
10
- > ⚠️ **Quick Start**: Please make sure to configure your Bilibili Cookies before use, otherwise video subtitles and comments cannot be extracted. See [**⚙️ Credential Configuration**](#⚙️-credential-configuration).
10
+ > ⚠️ **Quick Start**: Please make sure to configure your Bilibili Cookies before use, otherwise video subtitles and comments cannot be extracted. See [**⚙️ Credential Configuration**](#⚙️-credential-configuration)(Cookies are only stored locally and will not be uploaded anywhere).
11
11
 
12
12
  View this document in [简体中文](./README.md).
13
13
 
@@ -15,23 +15,38 @@ View this document in [简体中文](./README.md).
15
15
 
16
16
  ## 📑 Table of Contents
17
17
 
18
- - [🌟 Features](#🌟-features)
19
- - [📋 Requirements](#📋-requirements)
20
- - [🚀 Installation](#🚀-installation)
21
- - [Cursor](#cursor)
22
- - [Claude Code](#claude-code)
23
- - [Trae](#trae-official-ide-by-bytedance)
24
- - [Windsurf](#windsurf-official-ide-by-codeium)
25
- - [Zed](#zed)
26
- - [Gemini CLI](#gemini-cli-official-google-cli)
27
- - [Codex CLI](#codex-cli-official-openai-cli)
28
- - [Antigravity](#antigravity-official-google-ide)
29
- - [OpenCode](#opencode)
30
- - [⚙️ Credential Configuration](#⚙️-credential-configuration)
31
- - [💡 Usage Examples](#💡-usage-examples)
32
- - [🛡️ API Rate Limiting](#🛡️-api-rate-limiting)
33
- - [🛠️ Development Guide](#🛠️-development-guide)
34
- - [⚖️ Safety and Disclaimer](#⚖️-safety-and-disclaimer)
18
+ - [Bilibili MCP Tool](#bilibili-mcp-tool)
19
+ - [📑 Table of Contents](#-table-of-contents)
20
+ - [⚡ Pre-check](#-pre-check)
21
+ - [🌟 Features](#-features)
22
+ - [1. Video Summarization (`get_video_info`)](#1-video-summarization-get_video_info)
23
+ - [2. Comment Summarization (`get_video_comments`)](#2-comment-summarization-get_video_comments)
24
+ - [📋 Requirements](#-requirements)
25
+ - [🚀 Installation](#-installation)
26
+ - [🖱️ Cursor](#️-cursor)
27
+ - [Claude Code](#claude-code)
28
+ - [Method 1: Fast Installation via CLI (Recommended)](#method-1-fast-installation-via-cli-recommended)
29
+ - [Method 2: Manual Addition via Config File](#method-2-manual-addition-via-config-file)
30
+ - [Claude Desktop](#claude-desktop)
31
+ - [Method 3: Global npm Installation](#method-3-global-npm-installation)
32
+ - [🏗️ Trae (Official IDE by ByteDance)](#️-trae-official-ide-by-bytedance)
33
+ - [🌊 Windsurf (Official IDE by Codeium)](#-windsurf-official-ide-by-codeium)
34
+ - [⚡ Zed](#-zed)
35
+ - [♊ Gemini CLI (Official Google CLI)](#-gemini-cli-official-google-cli)
36
+ - [⌨️ Codex CLI (Official OpenAI CLI)](#️-codex-cli-official-openai-cli)
37
+ - [🪐 Antigravity (Official Google IDE)](#-antigravity-official-google-ide)
38
+ - [📦 OpenCode](#-opencode)
39
+ - [⚙️ Credential Configuration](#️-credential-configuration)
40
+ - [🔑 Step 1: Obtain Bilibili Cookies](#-step-1-obtain-bilibili-cookies)
41
+ - [📝 Step 2: Apply Credentials](#-step-2-apply-credentials)
42
+ - [Method A: CLI Wizard (Recommended, for global installations)](#method-a-cli-wizard-recommended-for-global-installations)
43
+ - [Method B: Manual Environment Variables (for local development or Docker)](#method-b-manual-environment-variables-for-local-development-or-docker)
44
+ - [🔒 Security Notice](#-security-notice)
45
+ - [💡 Usage Examples](#-usage-examples)
46
+ - [🛡️ API Rate Limiting](#️-api-rate-limiting)
47
+ - [🛠️ Development Guide](#️-development-guide)
48
+ - [⚖️ Safety and Disclaimer](#️-safety-and-disclaimer)
49
+ - [License](#license)
35
50
 
36
51
  ---
37
52
 
@@ -115,6 +130,28 @@ Restart Claude Code after completion.
115
130
  ```
116
131
  3. Save and restart Claude Code.
117
132
 
133
+ ### Claude Desktop
134
+
135
+ Claude Desktop supports MCP servers via a global configuration file:
136
+
137
+ 1. Open the Claude Desktop configuration file:
138
+ - Windows Path: `%APPDATA%\Claude\claude_desktop_config.json`
139
+ - macOS Path: `~/Library/Application Support/Claude/claude_desktop_config.json`
140
+ - *Tip: You can also open this file by clicking **Edit Config** in **Settings** -> **Developer** within Claude Desktop.*
141
+ 2. Add the following to the `mcpServers` node:
142
+
143
+ ```json
144
+ {
145
+ "mcpServers": {
146
+ "bilibili-mcp": {
147
+ "command": "npx",
148
+ "args": ["-y", "@xzxzzx/bilibili-mcp"]
149
+ }
150
+ }
151
+ }
152
+ ```
153
+ 3. Save the file and restart Claude Desktop or start a new conversation to load the tools.
154
+
118
155
  #### Method 3: Global npm Installation
119
156
 
120
157
  Manage configuration via the CLI tool after installation:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xzxzzx/bilibili-mcp",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Bilibili MCP tool for video and comment summarization",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",