synapse-mcp 1.0.0__tar.gz
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.
- synapse_mcp-1.0.0/LICENSE +21 -0
- synapse_mcp-1.0.0/PKG-INFO +269 -0
- synapse_mcp-1.0.0/README.md +245 -0
- synapse_mcp-1.0.0/pyproject.toml +39 -0
- synapse_mcp-1.0.0/setup.cfg +4 -0
- synapse_mcp-1.0.0/src/synapse_mcp/__init__.py +3 -0
- synapse_mcp-1.0.0/src/synapse_mcp/prompts/__init__.py +1 -0
- synapse_mcp-1.0.0/src/synapse_mcp/prompts/templates.py +181 -0
- synapse_mcp-1.0.0/src/synapse_mcp/resources/__init__.py +1 -0
- synapse_mcp-1.0.0/src/synapse_mcp/resources/wiki.py +59 -0
- synapse_mcp-1.0.0/src/synapse_mcp/server.py +79 -0
- synapse_mcp-1.0.0/src/synapse_mcp/state/__init__.py +1 -0
- synapse_mcp-1.0.0/src/synapse_mcp/state/manager.py +115 -0
- synapse_mcp-1.0.0/src/synapse_mcp/tools/__init__.py +1 -0
- synapse_mcp-1.0.0/src/synapse_mcp/tools/pipeline.py +180 -0
- synapse_mcp-1.0.0/src/synapse_mcp/tools/session.py +130 -0
- synapse_mcp-1.0.0/src/synapse_mcp/tools/wiki.py +216 -0
- synapse_mcp-1.0.0/src/synapse_mcp.egg-info/PKG-INFO +269 -0
- synapse_mcp-1.0.0/src/synapse_mcp.egg-info/SOURCES.txt +21 -0
- synapse_mcp-1.0.0/src/synapse_mcp.egg-info/dependency_links.txt +1 -0
- synapse_mcp-1.0.0/src/synapse_mcp.egg-info/entry_points.txt +2 -0
- synapse_mcp-1.0.0/src/synapse_mcp.egg-info/requires.txt +1 -0
- synapse_mcp-1.0.0/src/synapse_mcp.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ankechenlab-node
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: synapse-mcp
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Universal MCP server for code development pipeline and knowledge management
|
|
5
|
+
Author-email: ankechenlab-node <ankechenlab@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/ankechenlab-node/synapse-mcp
|
|
8
|
+
Project-URL: Repository, https://github.com/ankechenlab-node/synapse-mcp
|
|
9
|
+
Project-URL: Issues, https://github.com/ankechenlab-node/synapse-mcp/issues
|
|
10
|
+
Keywords: mcp,code-generation,knowledge-base,pipeline,synapse
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Requires-Python: >=3.12
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: fastmcp>=2.0.0
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# Synapse MCP
|
|
26
|
+
|
|
27
|
+
Universal MCP server for code development pipeline and knowledge management.
|
|
28
|
+
|
|
29
|
+
通用 MCP 服务器,一体化完成代码开发流水线与知识管理。
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
[English](#english) | [中文](#chinese)
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## English
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
**Session Management** — Create, track, and archive development sessions across projects.
|
|
42
|
+
|
|
43
|
+
**Pipeline Execution** — Multi-stage code delivery pipeline (REQ → ARCH → DEV → INT → QA → DEPLOY) with real-time progress reporting via MCP Tasks API.
|
|
44
|
+
|
|
45
|
+
**Knowledge Management** — Initialize wikis, ingest content, query knowledge, and run health checks.
|
|
46
|
+
|
|
47
|
+
**URI Resources** — Direct access to wiki pages and session state via `wiki://`, `state://`, `log://` URIs.
|
|
48
|
+
|
|
49
|
+
**Prompt Templates** — Built-in templates for pipeline stages and wiki pages.
|
|
50
|
+
|
|
51
|
+
### Quick Start
|
|
52
|
+
|
|
53
|
+
#### Via uv (recommended)
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
uvx synapse-mcp
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### Via pip
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pip install synapse-mcp
|
|
63
|
+
python -m synapse_mcp.server
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Client Configuration
|
|
67
|
+
|
|
68
|
+
**Claude Desktop / Cursor / Windsurf**
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"mcpServers": {
|
|
73
|
+
"synapse": {
|
|
74
|
+
"command": "uv",
|
|
75
|
+
"args": ["run", "--from", "synapse-mcp", "synapse-mcp-server"]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Claude Code**
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
claude mcp add synapse -- uv run --from synapse-mcp synapse-mcp-server
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**HTTP Transport (remote)**
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
python -m synapse_mcp.server --transport http --port 8000
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### MCP Tools
|
|
94
|
+
|
|
95
|
+
| Tool | Description |
|
|
96
|
+
|------|-------------|
|
|
97
|
+
| `session_create` | Create a new development session |
|
|
98
|
+
| `session_status` | Check session progress and tasks |
|
|
99
|
+
| `session_list` | List all sessions |
|
|
100
|
+
| `session_save` | Force-save session state |
|
|
101
|
+
| `session_archive` | Archive a completed session |
|
|
102
|
+
| `pipeline_run` | Execute pipeline stages with progress |
|
|
103
|
+
| `pipeline_status` | Check pipeline run status |
|
|
104
|
+
| `pipeline_stages` | List available pipeline stages |
|
|
105
|
+
| `wiki_init` | Initialize a wiki knowledge base |
|
|
106
|
+
| `wiki_ingest` | Ingest content into wiki |
|
|
107
|
+
| `wiki_query` | Query wiki with natural language |
|
|
108
|
+
| `wiki_lint` | Run wiki health check |
|
|
109
|
+
|
|
110
|
+
### MCP Resources
|
|
111
|
+
|
|
112
|
+
| URI Pattern | Description |
|
|
113
|
+
|-------------|-------------|
|
|
114
|
+
| `wiki://{path}` | Read wiki page (e.g., `wiki://CLAUDE.md`) |
|
|
115
|
+
| `state://{project}` | Read session state JSON |
|
|
116
|
+
| `log://{project}` | Read session activity log |
|
|
117
|
+
|
|
118
|
+
### MCP Prompts
|
|
119
|
+
|
|
120
|
+
| Prompt | Description |
|
|
121
|
+
|--------|-------------|
|
|
122
|
+
| `pipeline_template` | Get prompt for pipeline stage (REQ/ARCH/DEV/INT/QA) |
|
|
123
|
+
| `wiki_page_template` | Get template for wiki page (concept/decision/guide) |
|
|
124
|
+
|
|
125
|
+
### Architecture
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
┌─────────────────────────────────────┐
|
|
129
|
+
│ MCP Client (any host) │
|
|
130
|
+
│ Claude Desktop / Cursor / Claude Code│
|
|
131
|
+
└──────────────┬──────────────────────┘
|
|
132
|
+
│ stdio / http
|
|
133
|
+
▼
|
|
134
|
+
┌─────────────────────────────────────┐
|
|
135
|
+
│ Synapse MCP Server │
|
|
136
|
+
│ Tools: session/pipeline/wiki │
|
|
137
|
+
│ Resources: wiki:// state:// log:// │
|
|
138
|
+
│ Prompts: pipeline/wiki templates │
|
|
139
|
+
│ State: ~/.synapse/ (persistent) │
|
|
140
|
+
└──────────────┬──────────────────────┘
|
|
141
|
+
│
|
|
142
|
+
┌────────┼────────┐
|
|
143
|
+
▼ ▼ ▼
|
|
144
|
+
Pipeline Wiki State (JSON)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 中文
|
|
150
|
+
|
|
151
|
+
### 功能特性
|
|
152
|
+
|
|
153
|
+
**会话管理** — 创建、追踪和归档跨项目的开发会话状态。
|
|
154
|
+
|
|
155
|
+
**流水线执行** — 多阶段代码交付流水线(REQ → ARCH → DEV → INT → QA → DEPLOY),通过 MCP Tasks API 实时报告进度。
|
|
156
|
+
|
|
157
|
+
**知识管理** — 初始化知识库、摄取内容、智能查询、健康检查。
|
|
158
|
+
|
|
159
|
+
**URI 资源** — 通过 `wiki://`、`state://`、`log://` URI 直接访问 wiki 页面和会话状态。
|
|
160
|
+
|
|
161
|
+
**提示词模板** — 内置流水线阶段和 wiki 页面的提示词模板。
|
|
162
|
+
|
|
163
|
+
### 快速开始
|
|
164
|
+
|
|
165
|
+
#### 使用 uv(推荐)
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
uvx synapse-mcp
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
#### 使用 pip
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
pip install synapse-mcp
|
|
175
|
+
python -m synapse_mcp.server
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### 客户端配置
|
|
179
|
+
|
|
180
|
+
**Claude Desktop / Cursor / Windsurf**
|
|
181
|
+
|
|
182
|
+
```json
|
|
183
|
+
{
|
|
184
|
+
"mcpServers": {
|
|
185
|
+
"synapse": {
|
|
186
|
+
"command": "uv",
|
|
187
|
+
"args": ["run", "--from", "synapse-mcp", "synapse-mcp-server"]
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Claude Code**
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
claude mcp add synapse -- uv run --from synapse-mcp synapse-mcp-server
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**HTTP 传输(远程模式)**
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
python -m synapse_mcp.server --transport http --port 8000
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### MCP 工具
|
|
206
|
+
|
|
207
|
+
| 工具 | 说明 |
|
|
208
|
+
|------|------|
|
|
209
|
+
| `session_create` | 创建新的开发会话 |
|
|
210
|
+
| `session_status` | 查看会话进度和任务 |
|
|
211
|
+
| `session_list` | 列出所有会话 |
|
|
212
|
+
| `session_save` | 强制保存会话状态 |
|
|
213
|
+
| `session_archive` | 归档已完成的会话 |
|
|
214
|
+
| `pipeline_run` | 执行流水线阶段,带进度报告 |
|
|
215
|
+
| `pipeline_status` | 查看流水线运行状态 |
|
|
216
|
+
| `pipeline_stages` | 列出可用的流水线阶段 |
|
|
217
|
+
| `wiki_init` | 初始化知识库 |
|
|
218
|
+
| `wiki_ingest` | 摄取内容到知识库 |
|
|
219
|
+
| `wiki_query` | 自然语言查询知识库 |
|
|
220
|
+
| `wiki_lint` | 知识库健康检查 |
|
|
221
|
+
|
|
222
|
+
### MCP 资源
|
|
223
|
+
|
|
224
|
+
| URI 模式 | 说明 |
|
|
225
|
+
|---------|------|
|
|
226
|
+
| `wiki://{路径}` | 读取 wiki 页面(如 `wiki://CLAUDE.md`) |
|
|
227
|
+
| `state://{项目}` | 读取会话状态 JSON |
|
|
228
|
+
| `log://{项目}` | 读取会话活动日志 |
|
|
229
|
+
|
|
230
|
+
### MCP 提示词
|
|
231
|
+
|
|
232
|
+
| 提示词 | 说明 |
|
|
233
|
+
|--------|------|
|
|
234
|
+
| `pipeline_template` | 获取流水线阶段提示词(REQ/ARCH/DEV/INT/QA) |
|
|
235
|
+
| `wiki_page_template` | 获取 wiki 页面模板(concept/decision/guide) |
|
|
236
|
+
|
|
237
|
+
### 架构
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
┌─────────────────────────────────────┐
|
|
241
|
+
│ MCP 客户端(任意宿主) │
|
|
242
|
+
│ Claude Desktop / Cursor / Claude Code│
|
|
243
|
+
└──────────────┬──────────────────────┘
|
|
244
|
+
│ stdio / http
|
|
245
|
+
▼
|
|
246
|
+
┌─────────────────────────────────────┐
|
|
247
|
+
│ Synapse MCP Server │
|
|
248
|
+
│ Tools: session/pipeline/wiki │
|
|
249
|
+
│ Resources: wiki:// state:// log:// │
|
|
250
|
+
│ Prompts: pipeline/wiki 模板 │
|
|
251
|
+
│ State: ~/.synapse/(持久化) │
|
|
252
|
+
└──────────────┬──────────────────────┘
|
|
253
|
+
│
|
|
254
|
+
┌────────┼────────┐
|
|
255
|
+
▼ ▼ ▼
|
|
256
|
+
Pipeline Wiki State (JSON)
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Related Projects / 相关项目
|
|
262
|
+
|
|
263
|
+
- [synapse-brain](https://github.com/ankechenlab-node/synapse-brain) — OpenClaw 持久化编排代理
|
|
264
|
+
- [synapse-code](https://github.com/ankechenlab-node/synapse-code) — 智能代码开发工作流引擎
|
|
265
|
+
- [synapse-wiki](https://github.com/ankechenlab-node/synapse-wiki) — 智能知识库管理系统
|
|
266
|
+
|
|
267
|
+
## License
|
|
268
|
+
|
|
269
|
+
MIT
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
# Synapse MCP
|
|
2
|
+
|
|
3
|
+
Universal MCP server for code development pipeline and knowledge management.
|
|
4
|
+
|
|
5
|
+
通用 MCP 服务器,一体化完成代码开发流水线与知识管理。
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
[English](#english) | [中文](#chinese)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## English
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
**Session Management** — Create, track, and archive development sessions across projects.
|
|
18
|
+
|
|
19
|
+
**Pipeline Execution** — Multi-stage code delivery pipeline (REQ → ARCH → DEV → INT → QA → DEPLOY) with real-time progress reporting via MCP Tasks API.
|
|
20
|
+
|
|
21
|
+
**Knowledge Management** — Initialize wikis, ingest content, query knowledge, and run health checks.
|
|
22
|
+
|
|
23
|
+
**URI Resources** — Direct access to wiki pages and session state via `wiki://`, `state://`, `log://` URIs.
|
|
24
|
+
|
|
25
|
+
**Prompt Templates** — Built-in templates for pipeline stages and wiki pages.
|
|
26
|
+
|
|
27
|
+
### Quick Start
|
|
28
|
+
|
|
29
|
+
#### Via uv (recommended)
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
uvx synapse-mcp
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
#### Via pip
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pip install synapse-mcp
|
|
39
|
+
python -m synapse_mcp.server
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Client Configuration
|
|
43
|
+
|
|
44
|
+
**Claude Desktop / Cursor / Windsurf**
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"mcpServers": {
|
|
49
|
+
"synapse": {
|
|
50
|
+
"command": "uv",
|
|
51
|
+
"args": ["run", "--from", "synapse-mcp", "synapse-mcp-server"]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Claude Code**
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
claude mcp add synapse -- uv run --from synapse-mcp synapse-mcp-server
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**HTTP Transport (remote)**
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
python -m synapse_mcp.server --transport http --port 8000
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### MCP Tools
|
|
70
|
+
|
|
71
|
+
| Tool | Description |
|
|
72
|
+
|------|-------------|
|
|
73
|
+
| `session_create` | Create a new development session |
|
|
74
|
+
| `session_status` | Check session progress and tasks |
|
|
75
|
+
| `session_list` | List all sessions |
|
|
76
|
+
| `session_save` | Force-save session state |
|
|
77
|
+
| `session_archive` | Archive a completed session |
|
|
78
|
+
| `pipeline_run` | Execute pipeline stages with progress |
|
|
79
|
+
| `pipeline_status` | Check pipeline run status |
|
|
80
|
+
| `pipeline_stages` | List available pipeline stages |
|
|
81
|
+
| `wiki_init` | Initialize a wiki knowledge base |
|
|
82
|
+
| `wiki_ingest` | Ingest content into wiki |
|
|
83
|
+
| `wiki_query` | Query wiki with natural language |
|
|
84
|
+
| `wiki_lint` | Run wiki health check |
|
|
85
|
+
|
|
86
|
+
### MCP Resources
|
|
87
|
+
|
|
88
|
+
| URI Pattern | Description |
|
|
89
|
+
|-------------|-------------|
|
|
90
|
+
| `wiki://{path}` | Read wiki page (e.g., `wiki://CLAUDE.md`) |
|
|
91
|
+
| `state://{project}` | Read session state JSON |
|
|
92
|
+
| `log://{project}` | Read session activity log |
|
|
93
|
+
|
|
94
|
+
### MCP Prompts
|
|
95
|
+
|
|
96
|
+
| Prompt | Description |
|
|
97
|
+
|--------|-------------|
|
|
98
|
+
| `pipeline_template` | Get prompt for pipeline stage (REQ/ARCH/DEV/INT/QA) |
|
|
99
|
+
| `wiki_page_template` | Get template for wiki page (concept/decision/guide) |
|
|
100
|
+
|
|
101
|
+
### Architecture
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
┌─────────────────────────────────────┐
|
|
105
|
+
│ MCP Client (any host) │
|
|
106
|
+
│ Claude Desktop / Cursor / Claude Code│
|
|
107
|
+
└──────────────┬──────────────────────┘
|
|
108
|
+
│ stdio / http
|
|
109
|
+
▼
|
|
110
|
+
┌─────────────────────────────────────┐
|
|
111
|
+
│ Synapse MCP Server │
|
|
112
|
+
│ Tools: session/pipeline/wiki │
|
|
113
|
+
│ Resources: wiki:// state:// log:// │
|
|
114
|
+
│ Prompts: pipeline/wiki templates │
|
|
115
|
+
│ State: ~/.synapse/ (persistent) │
|
|
116
|
+
└──────────────┬──────────────────────┘
|
|
117
|
+
│
|
|
118
|
+
┌────────┼────────┐
|
|
119
|
+
▼ ▼ ▼
|
|
120
|
+
Pipeline Wiki State (JSON)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## 中文
|
|
126
|
+
|
|
127
|
+
### 功能特性
|
|
128
|
+
|
|
129
|
+
**会话管理** — 创建、追踪和归档跨项目的开发会话状态。
|
|
130
|
+
|
|
131
|
+
**流水线执行** — 多阶段代码交付流水线(REQ → ARCH → DEV → INT → QA → DEPLOY),通过 MCP Tasks API 实时报告进度。
|
|
132
|
+
|
|
133
|
+
**知识管理** — 初始化知识库、摄取内容、智能查询、健康检查。
|
|
134
|
+
|
|
135
|
+
**URI 资源** — 通过 `wiki://`、`state://`、`log://` URI 直接访问 wiki 页面和会话状态。
|
|
136
|
+
|
|
137
|
+
**提示词模板** — 内置流水线阶段和 wiki 页面的提示词模板。
|
|
138
|
+
|
|
139
|
+
### 快速开始
|
|
140
|
+
|
|
141
|
+
#### 使用 uv(推荐)
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
uvx synapse-mcp
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### 使用 pip
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
pip install synapse-mcp
|
|
151
|
+
python -m synapse_mcp.server
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### 客户端配置
|
|
155
|
+
|
|
156
|
+
**Claude Desktop / Cursor / Windsurf**
|
|
157
|
+
|
|
158
|
+
```json
|
|
159
|
+
{
|
|
160
|
+
"mcpServers": {
|
|
161
|
+
"synapse": {
|
|
162
|
+
"command": "uv",
|
|
163
|
+
"args": ["run", "--from", "synapse-mcp", "synapse-mcp-server"]
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Claude Code**
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
claude mcp add synapse -- uv run --from synapse-mcp synapse-mcp-server
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**HTTP 传输(远程模式)**
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
python -m synapse_mcp.server --transport http --port 8000
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### MCP 工具
|
|
182
|
+
|
|
183
|
+
| 工具 | 说明 |
|
|
184
|
+
|------|------|
|
|
185
|
+
| `session_create` | 创建新的开发会话 |
|
|
186
|
+
| `session_status` | 查看会话进度和任务 |
|
|
187
|
+
| `session_list` | 列出所有会话 |
|
|
188
|
+
| `session_save` | 强制保存会话状态 |
|
|
189
|
+
| `session_archive` | 归档已完成的会话 |
|
|
190
|
+
| `pipeline_run` | 执行流水线阶段,带进度报告 |
|
|
191
|
+
| `pipeline_status` | 查看流水线运行状态 |
|
|
192
|
+
| `pipeline_stages` | 列出可用的流水线阶段 |
|
|
193
|
+
| `wiki_init` | 初始化知识库 |
|
|
194
|
+
| `wiki_ingest` | 摄取内容到知识库 |
|
|
195
|
+
| `wiki_query` | 自然语言查询知识库 |
|
|
196
|
+
| `wiki_lint` | 知识库健康检查 |
|
|
197
|
+
|
|
198
|
+
### MCP 资源
|
|
199
|
+
|
|
200
|
+
| URI 模式 | 说明 |
|
|
201
|
+
|---------|------|
|
|
202
|
+
| `wiki://{路径}` | 读取 wiki 页面(如 `wiki://CLAUDE.md`) |
|
|
203
|
+
| `state://{项目}` | 读取会话状态 JSON |
|
|
204
|
+
| `log://{项目}` | 读取会话活动日志 |
|
|
205
|
+
|
|
206
|
+
### MCP 提示词
|
|
207
|
+
|
|
208
|
+
| 提示词 | 说明 |
|
|
209
|
+
|--------|------|
|
|
210
|
+
| `pipeline_template` | 获取流水线阶段提示词(REQ/ARCH/DEV/INT/QA) |
|
|
211
|
+
| `wiki_page_template` | 获取 wiki 页面模板(concept/decision/guide) |
|
|
212
|
+
|
|
213
|
+
### 架构
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
┌─────────────────────────────────────┐
|
|
217
|
+
│ MCP 客户端(任意宿主) │
|
|
218
|
+
│ Claude Desktop / Cursor / Claude Code│
|
|
219
|
+
└──────────────┬──────────────────────┘
|
|
220
|
+
│ stdio / http
|
|
221
|
+
▼
|
|
222
|
+
┌─────────────────────────────────────┐
|
|
223
|
+
│ Synapse MCP Server │
|
|
224
|
+
│ Tools: session/pipeline/wiki │
|
|
225
|
+
│ Resources: wiki:// state:// log:// │
|
|
226
|
+
│ Prompts: pipeline/wiki 模板 │
|
|
227
|
+
│ State: ~/.synapse/(持久化) │
|
|
228
|
+
└──────────────┬──────────────────────┘
|
|
229
|
+
│
|
|
230
|
+
┌────────┼────────┐
|
|
231
|
+
▼ ▼ ▼
|
|
232
|
+
Pipeline Wiki State (JSON)
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Related Projects / 相关项目
|
|
238
|
+
|
|
239
|
+
- [synapse-brain](https://github.com/ankechenlab-node/synapse-brain) — OpenClaw 持久化编排代理
|
|
240
|
+
- [synapse-code](https://github.com/ankechenlab-node/synapse-code) — 智能代码开发工作流引擎
|
|
241
|
+
- [synapse-wiki](https://github.com/ankechenlab-node/synapse-wiki) — 智能知识库管理系统
|
|
242
|
+
|
|
243
|
+
## License
|
|
244
|
+
|
|
245
|
+
MIT
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "synapse-mcp"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Universal MCP server for code development pipeline and knowledge management"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
requires-python = ">=3.12"
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "ankechenlab-node", email = "ankechenlab@gmail.com"},
|
|
14
|
+
]
|
|
15
|
+
keywords = ["mcp", "code-generation", "knowledge-base", "pipeline", "synapse"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"License :: OSI Approved :: MIT License",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
23
|
+
"Topic :: Software Development :: Code Generators",
|
|
24
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
25
|
+
]
|
|
26
|
+
dependencies = [
|
|
27
|
+
"fastmcp>=2.0.0",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.scripts]
|
|
31
|
+
synapse-mcp-server = "synapse_mcp.server:main"
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://github.com/ankechenlab-node/synapse-mcp"
|
|
35
|
+
Repository = "https://github.com/ankechenlab-node/synapse-mcp"
|
|
36
|
+
Issues = "https://github.com/ankechenlab-node/synapse-mcp/issues"
|
|
37
|
+
|
|
38
|
+
[tool.setuptools.packages.find]
|
|
39
|
+
where = ["src"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""MCP Prompts for Synapse."""
|