|
| 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) ,[](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 | + |
0 commit comments