claude-pangu 2.2.12 → 2.2.13
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.
- package/.claude-plugin/plugin.json +1 -1
- package/mcps/README.md +113 -0
- package/mcps/context7.json +53 -0
- package/mcps/grep_app.json +59 -0
- package/mcps/websearch.json +44 -0
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://code.claude.com/plugin-schema.json",
|
|
3
3
|
"name": "oh-my-claude",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.13",
|
|
5
5
|
"hooks": "../hooks/hooks.json",
|
|
6
6
|
"description": "基于中国传统文化的 Claude Code 智能编排插件 - A Claude Code plugin inspired by Chinese traditional culture",
|
|
7
7
|
"author": "ZDragon17",
|
package/mcps/README.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# oh-my-claude 内置 MCP 服务器
|
|
2
|
+
|
|
3
|
+
本目录包含 oh-my-claude 的 MCP (Model Context Protocol) 服务器配置参考文件。
|
|
4
|
+
|
|
5
|
+
## 自动安装
|
|
6
|
+
|
|
7
|
+
安装 oh-my-claude 时,以下 MCP 服务器会**自动配置**到 Claude Code 中:
|
|
8
|
+
|
|
9
|
+
| MCP | 功能 | 状态 |
|
|
10
|
+
|-----|------|------|
|
|
11
|
+
| **context7** | 官方文档查询 | ✅ 默认启用 |
|
|
12
|
+
| **grep-app** | GitHub 代码搜索 | ✅ 默认启用 |
|
|
13
|
+
| **deepwiki** | 开源项目文档 | ✅ 默认启用 |
|
|
14
|
+
| **open-websearch** | 网络搜索 (DuckDuckGo/Bing) | ✅ 默认启用 |
|
|
15
|
+
|
|
16
|
+
## 工作原理
|
|
17
|
+
|
|
18
|
+
oh-my-claude 在插件根目录提供 `.mcp.json` 文件,Claude Code 会自动读取并注册其中的 MCP 服务器。
|
|
19
|
+
|
|
20
|
+
## 验证安装
|
|
21
|
+
|
|
22
|
+
安装 oh-my-claude 后,在 Claude Code 中输入:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
你能使用哪些 MCP 工具?
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
应该能看到 `context7`、`grep-app`、`deepwiki`、`open-websearch` 等工具。
|
|
29
|
+
|
|
30
|
+
## 配置文件
|
|
31
|
+
|
|
32
|
+
### .mcp.json (插件根目录)
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"context7": {
|
|
37
|
+
"command": "npx",
|
|
38
|
+
"args": ["-y", "@upstash/context7-mcp"]
|
|
39
|
+
},
|
|
40
|
+
"grep-app": {
|
|
41
|
+
"command": "npx",
|
|
42
|
+
"args": ["-y", "@anthropic/grep-app-mcp"]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 本目录的 JSON 文件
|
|
48
|
+
|
|
49
|
+
本目录(`mcps/`)中的 JSON 文件是详细的配置参考,包含:
|
|
50
|
+
- 完整的工具定义
|
|
51
|
+
- 参数说明
|
|
52
|
+
- 使用示例
|
|
53
|
+
|
|
54
|
+
可用于了解每个 MCP 的详细功能。
|
|
55
|
+
|
|
56
|
+
## 禁用 MCP
|
|
57
|
+
|
|
58
|
+
如果需要禁用某个 MCP,可以在 oh-my-claude 配置中设置:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"mcp": {
|
|
63
|
+
"disabled_mcps": ["deepwiki"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
或直接编辑 `.mcp.json` 文件删除对应条目。
|
|
69
|
+
|
|
70
|
+
## 添加更多 MCP
|
|
71
|
+
|
|
72
|
+
### 方法一:编辑 .mcp.json
|
|
73
|
+
|
|
74
|
+
在插件目录的 `.mcp.json` 中添加:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"my-mcp": {
|
|
79
|
+
"command": "npx",
|
|
80
|
+
"args": ["-y", "@my-org/my-mcp-server"]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### 方法二:使用 Claude Code 设置
|
|
86
|
+
|
|
87
|
+
直接在 Claude Code 的 MCP 设置中添加。
|
|
88
|
+
|
|
89
|
+
## 需要 API 密钥的 MCP
|
|
90
|
+
|
|
91
|
+
某些 MCP 需要 API 密钥才能使用:
|
|
92
|
+
|
|
93
|
+
| MCP | 环境变量 | 获取方式 |
|
|
94
|
+
|-----|----------|----------|
|
|
95
|
+
| exa | `EXA_API_KEY` | https://exa.ai |
|
|
96
|
+
| postgres | `DATABASE_URL` | 自有数据库 |
|
|
97
|
+
|
|
98
|
+
设置环境变量后重启 Claude Code 即可使用。
|
|
99
|
+
|
|
100
|
+
## 故障排查
|
|
101
|
+
|
|
102
|
+
### MCP 不工作?
|
|
103
|
+
|
|
104
|
+
1. **检查 npm 可用性**:`npx --version`
|
|
105
|
+
2. **手动测试 MCP**:`npx -y @upstash/context7-mcp`
|
|
106
|
+
3. **检查网络**:确保能访问 npm registry
|
|
107
|
+
4. **重启 Claude Code**:安装后需要重启
|
|
108
|
+
|
|
109
|
+
### 常见错误
|
|
110
|
+
|
|
111
|
+
- `ENOENT`: npm 包名错误或网络问题
|
|
112
|
+
- `TIMEOUT`: 网络超时,检查代理设置
|
|
113
|
+
- `PERMISSION`: 权限问题,检查 npm 缓存目录
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/anthropics/anthropic-cookbook/main/misc/mcp-server-schema.json",
|
|
3
|
+
"name": "context7",
|
|
4
|
+
"description": "官方文档查询 MCP,获取任何编程库/框架的最新官方文档",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"command": "npx",
|
|
7
|
+
"args": ["-y", "@anthropic-ai/mcp-context7"],
|
|
8
|
+
"env": {},
|
|
9
|
+
"tools": [
|
|
10
|
+
{
|
|
11
|
+
"name": "resolve-library-id",
|
|
12
|
+
"description": "将包/产品名称解析为 Context7 兼容的库 ID。在调用 query-docs 之前必须先调用此工具获取有效的库 ID",
|
|
13
|
+
"inputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"libraryName": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "要搜索的库名称"
|
|
19
|
+
},
|
|
20
|
+
"query": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "用户原始问题或任务,用于按相关性排序库结果"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["query", "libraryName"]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "query-docs",
|
|
30
|
+
"description": "从 Context7 检索和查询任何编程库或框架的最新文档和代码示例",
|
|
31
|
+
"inputSchema": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"libraryId": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "精确的 Context7 兼容库 ID(如 '/mongodb/docs', '/vercel/next.js')"
|
|
37
|
+
},
|
|
38
|
+
"query": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "需要帮助的问题或任务,要具体并包含相关细节"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": ["libraryId", "query"]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"metadata": {
|
|
48
|
+
"provider": "Context7",
|
|
49
|
+
"website": "https://context7.com",
|
|
50
|
+
"pricing": "免费",
|
|
51
|
+
"rateLimit": "无限制"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/anthropics/anthropic-cookbook/main/misc/mcp-server-schema.json",
|
|
3
|
+
"name": "grep_app",
|
|
4
|
+
"description": "GitHub 代码搜索 MCP,在数百万公开 GitHub 仓库中搜索代码模式和实现示例",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"command": "npx",
|
|
7
|
+
"args": ["-y", "@anthropic-ai/mcp-grep-app"],
|
|
8
|
+
"env": {},
|
|
9
|
+
"tools": [
|
|
10
|
+
{
|
|
11
|
+
"name": "searchGitHub",
|
|
12
|
+
"description": "从数百万公开 GitHub 仓库中查找真实代码示例。搜索字面代码模式(如 grep),而非关键词。适用于:实现不熟悉的 API、查找正确的语法/参数、寻找生产级示例和最佳实践",
|
|
13
|
+
"inputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"query": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "要搜索的字面代码模式(如 'useState('、'import React from'、'async function')"
|
|
19
|
+
},
|
|
20
|
+
"language": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": { "type": "string" },
|
|
23
|
+
"description": "按编程语言过滤(如 ['TypeScript', 'TSX']、['Python'])"
|
|
24
|
+
},
|
|
25
|
+
"repo": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "按仓库过滤(如 'facebook/react'、'vercel/ai')"
|
|
28
|
+
},
|
|
29
|
+
"path": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "按文件路径过滤(如 'src/components/'、'README.md')"
|
|
32
|
+
},
|
|
33
|
+
"useRegexp": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"description": "是否将查询解释为正则表达式",
|
|
36
|
+
"default": false
|
|
37
|
+
},
|
|
38
|
+
"matchCase": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"description": "是否区分大小写",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
"matchWholeWords": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "是否仅匹配完整单词",
|
|
46
|
+
"default": false
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": ["query"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"metadata": {
|
|
54
|
+
"provider": "grep.app",
|
|
55
|
+
"website": "https://grep.app",
|
|
56
|
+
"pricing": "免费",
|
|
57
|
+
"rateLimit": "合理使用"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/anthropics/anthropic-cookbook/main/misc/mcp-server-schema.json",
|
|
3
|
+
"name": "websearch",
|
|
4
|
+
"description": "实时网络搜索 MCP,基于 Exa AI 提供高质量搜索结果",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"command": "npx",
|
|
7
|
+
"args": ["-y", "@anthropic-ai/mcp-exa-search"],
|
|
8
|
+
"env": {
|
|
9
|
+
"EXA_API_KEY": "${EXA_API_KEY}"
|
|
10
|
+
},
|
|
11
|
+
"tools": [
|
|
12
|
+
{
|
|
13
|
+
"name": "web_search",
|
|
14
|
+
"description": "搜索网络获取最新信息。适用于查找新闻、文章、博客、产品信息等",
|
|
15
|
+
"inputSchema": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"query": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "搜索查询词"
|
|
21
|
+
},
|
|
22
|
+
"numResults": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"description": "返回结果数量,默认 10",
|
|
25
|
+
"default": 10
|
|
26
|
+
},
|
|
27
|
+
"type": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["auto", "keyword", "neural"],
|
|
30
|
+
"description": "搜索类型:auto(自动)、keyword(关键词)、neural(语义)",
|
|
31
|
+
"default": "auto"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": ["query"]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"metadata": {
|
|
39
|
+
"provider": "Exa AI",
|
|
40
|
+
"website": "https://exa.ai",
|
|
41
|
+
"pricing": "免费额度 + 按量付费",
|
|
42
|
+
"rateLimit": "1000 次/月(免费)"
|
|
43
|
+
}
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-pangu",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.13",
|
|
4
4
|
"description": "基于中国传统文化的 Claude Code 智能编排插件 - A Claude Code plugin inspired by Chinese traditional culture (原名 oh-my-claude)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"commands/",
|
|
36
36
|
"hooks/",
|
|
37
37
|
"skills/",
|
|
38
|
+
"mcps/",
|
|
38
39
|
".claude-plugin/",
|
|
39
40
|
"scripts/",
|
|
40
41
|
"README.md",
|