Skip to content

Commit d52f8c0

Browse files
committed
add sequentialthinking
1 parent e9c36f1 commit d52f8c0

File tree

13 files changed

+903
-0
lines changed

13 files changed

+903
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ MCP 协议中有 STDIO 与 SSE 两种传输机制,大致如下:
3535
- Time: [start-mcp-time](./start-mcp-time/src/)
3636
- brave-search: [start-mcp-brave-search](./start-mcp-brave-search/src/)
3737
- ever-art: [start-mcp-ever-art](./start-mcp-ever-art/src)
38+
- sequentialthinking: [start-mcp-sequentialthinking](./start-mcp-sequentialthinking/src)
3839

3940
其中有 hello-world 示例:
4041

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
2+
> 注:当前项目为 Serverless Devs 应用,由于应用中会存在需要初始化才可运行的变量(例如应用部署地区、函数名等等),所以**不推荐**直接 Clone 本仓库到本地进行部署或直接复制 s.yaml 使用,**强烈推荐**通过 `s init ${模版名称}` 的方法或应用中心进行初始化,详情可参考[部署 & 体验](#部署--体验)
3+
4+
# start-mcp-sequentialthinking 帮助文档
5+
6+
<description>
7+
8+
Sequential Thinking MCP Server
9+
10+
</description>
11+
12+
13+
## 资源准备
14+
15+
使用该项目,您需要有开通以下服务并拥有对应权限:
16+
17+
<service>
18+
19+
20+
21+
| 服务/业务 | 权限 | 相关文档 |
22+
| --- | --- | --- |
23+
| 函数计算 | AliyunFCFullAccess | [帮助文档](https://help.aliyun.com/product/2508973.html) [计费文档](https://help.aliyun.com/document_detail/2512928.html) |
24+
25+
</service>
26+
27+
<remark>
28+
29+
30+
31+
</remark>
32+
33+
<disclaimers>
34+
35+
36+
37+
</disclaimers>
38+
39+
## 部署 & 体验
40+
41+
<appcenter>
42+
43+
- :fire: 通过 [云原生应用开发平台 CAP](https://cap.console.aliyun.com/template-detail?template=start-mcp-sequentialthinking)[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://cap.console.aliyun.com/template-detail?template=start-mcp-sequentialthinking) 该应用。
44+
45+
</appcenter>
46+
<deploy>
47+
48+
49+
</deploy>
50+
51+
## 案例介绍
52+
53+
<appdetail id="flushContent">
54+
55+
# Sequential Thinking MCP Server
56+
57+
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
58+
59+
## Features
60+
61+
- Break down complex problems into manageable steps
62+
- Revise and refine thoughts as understanding deepens
63+
- Branch into alternative paths of reasoning
64+
- Adjust the total number of thoughts dynamically
65+
- Generate and verify solution hypotheses
66+
67+
## Tool
68+
69+
### sequential_thinking
70+
71+
Facilitates a detailed, step-by-step thinking process for problem-solving and analysis.
72+
73+
**Inputs:**
74+
- `thought` (string): The current thinking step
75+
- `nextThoughtNeeded` (boolean): Whether another thought step is needed
76+
- `thoughtNumber` (integer): Current thought number
77+
- `totalThoughts` (integer): Estimated total thoughts needed
78+
- `isRevision` (boolean, optional): Whether this revises previous thinking
79+
- `revisesThought` (integer, optional): Which thought is being reconsidered
80+
- `branchFromThought` (integer, optional): Branching point thought number
81+
- `branchId` (string, optional): Branch identifier
82+
- `needsMoreThoughts` (boolean, optional): If more thoughts are needed
83+
84+
## Usage
85+
86+
The Sequential Thinking tool is designed for:
87+
- Breaking down complex problems into steps
88+
- Planning and design with room for revision
89+
- Analysis that might need course correction
90+
- Problems where the full scope might not be clear initially
91+
- Tasks that need to maintain context over multiple steps
92+
- Situations where irrelevant information needs to be filtered out
93+
94+
## Configuration
95+
96+
### Usage with Claude Desktop
97+
98+
Add this to your `claude_desktop_config.json`:
99+
100+
#### npx
101+
102+
```json
103+
{
104+
"mcpServers": {
105+
"sequential-thinking": {
106+
"command": "npx",
107+
"args": [
108+
"-y",
109+
"@modelcontextprotocol/server-sequential-thinking"
110+
]
111+
}
112+
}
113+
}
114+
```
115+
116+
#### docker
117+
118+
```json
119+
{
120+
"mcpServers": {
121+
"sequentialthinking": {
122+
"command": "docker",
123+
"args": [
124+
"run",
125+
"--rm",
126+
"-i",
127+
"mcp/sequentialthinking"
128+
]
129+
}
130+
}
131+
}
132+
```
133+
134+
## Building
135+
136+
Docker:
137+
138+
```bash
139+
docker build -t mcp/sequentialthinking -f src/sequentialthinking/Dockerfile .
140+
```
141+
142+
## License
143+
144+
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
145+
146+
</appdetail>
147+
148+
149+
150+
151+
152+
153+
154+
## 使用流程
155+
156+
<usedetail id="flushContent">
157+
158+
部署完成拿到 URL 后,准备好支持 SSE 的 MCP Client,通过 SSETransport 进行连接。
159+
160+
</usedetail>
161+
162+
163+
164+
165+
166+
167+
168+
169+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
async function preInit(inputObj) {
2+
3+
}
4+
5+
async function postInit(inputObj) {
6+
7+
}
8+
9+
module.exports = {
10+
postInit,
11+
preInit
12+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Edition: 3.0.0
2+
Type: Project
3+
Name: start-mcp-sequentialthinking
4+
Version: 0.0.2
5+
Provider:
6+
- 阿里云 # 取值内容参考:https://api.devsapp.cn/v3/common/args.html
7+
Description: Sequential Thinking MCP Server
8+
HomePage: https://github.com/modelcontextprotocol/servers.git
9+
Tags: #标签详情
10+
- MCP
11+
- Serverless Devs
12+
- Develop-Fold
13+
Category: AI工具 # 取值内容参考:https://api.devsapp.cn/v3/common/args.html
14+
Service: # 使用的服务
15+
函数计算: # 取值内容参考:https://api.devsapp.cn/v3/common/args.html
16+
Authorities: #权限描述
17+
- AliyunFCFullAccess # 所需要的权限,例如AliyunFCFullAccess
18+
Organization: 阿里云函数计算(FC) # 所属组织
19+
Effective: Public # 是否公开,取值:Public,Private,Organization
20+
Parameters:
21+
type: object
22+
additionalProperties: false # 不允许增加其他属性
23+
required: # 必填项
24+
- region
25+
- functionName
26+
properties:
27+
region:
28+
title: 地域
29+
type: string
30+
default: cn-hangzhou
31+
description: 创建应用所在的地区
32+
enum:
33+
- cn-beijing
34+
- cn-hangzhou
35+
- cn-shanghai
36+
- cn-shenzhen
37+
- ap-southeast-1
38+
functionName:
39+
title: 函数名
40+
type: string
41+
default: mcp-server-${default-suffix}
42+
pattern: "^[a-zA-Z_][a-zA-Z0-9-_]{0,127}$"
43+
description: 应用的函数名称, 只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-128 之间

0 commit comments

Comments
 (0)