ThinkPrompt MCP服务器
模型上下文协议服务器 ThinkPrompt --将Claude、Cursor和其他人工智能工具与团队的编码标准、要求和项目管理联系起来。
](https://www.npmjs.com/package/@honeyfield/thinkprompt-mcp) ](https://nodejs.org/) 
概述
ThinkPrompt MCP服务器实现了 模型上下文协议 将AI助手与ThinkPrompt平台连接起来。它提供 85工具 让AI代理管理样式指南、需求、项目、文档、工作流等,所有这些都可以在IDE中完成。
安装
无需安装!MCP服务器通过以下方式运行 npx:
npx @honeyfield/thinkprompt-mcp配置
环境变量
| 变量 | 描述 | 必填 |
|---|---|---|
THINKPROMPT_API_URL | ThinkPrompt API基础URL | 是 |
THINKPROMPT_API_KEY | API密钥(在thinkpromt.ai/settings创建) | 是 |
克劳德代码/光标
添加到您的项目 .mcp.json 或全局克劳德设置:
{
"mcpServers": {
"thinkprompt": {
"command": "npx",
"args": ["@honeyfield/thinkprompt-mcp"],
"env": {
"THINKPROMPT_API_URL": "https://thinkprompt-api-v2.azurewebsites.net/api/v1",
"THINKPROMPT_API_KEY": "tp_your-api-key-here"
}
}
}
}克劳德桌面版
添加到您的 claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - 窗户:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"thinkprompt": {
"command": "npx",
"args": ["@honeyfield/thinkprompt-mcp"],
"env": {
"THINKPROMPT_API_URL": "https://thinkprompt-api-v2.azurewebsites.net/api/v1",
"THINKPROMPT_API_KEY": "tp_your-api-key-here"
}
}
}
}可用工具(85)
风格指南(4)
list_style_guides · get_style_guide · create_style_guide · update_style_guide
模板(4)
list_templates · get_template · create_template · update_template
工作区(3)
list_workspaces · get_current_workspace · switch_workspace
标签(5)
list_tags · get_tag · create_tag · update_tag · delete_tag
项目(4)
list_projects · get_project · get_project_statistics · create_project
工作流程(8)
list_workflows · get_workflow · create_workflow · update_workflow · delete_workflow · validate_workflow · get_workflow_executions · get_workflow_execution
插件市场(6)
search_marketplace_plugins · get_marketplace_plugin · get_plugin_categories · get_featured_plugins · register_marketplace_plugin · track_plugin_install
文件(13)
list_documents · get_document · create_document · update_document · delete_document · search_documents · get_document_versions · get_document_version · restore_document_version · add_document_tags · remove_document_tag · list_document_folders · get_document_folder_tree
文档文件夹(5)
get_document_folder · create_document_folder · update_document_folder · delete_document_folder · reorder_document_folders
要求(20)
list_requirements · get_requirement · create_requirement · update_requirement · update_requirement_status · delete_requirement · search_requirements · list_acceptance_criteria · create_acceptance_criterion · update_acceptance_criterion · delete_acceptance_criterion · list_preconditions · create_precondition · update_precondition · delete_precondition · list_verification_tests · create_verification_test · update_verification_test · delete_verification_test · list_requirement_links
需求子实体(13)
create_requirement_link · delete_requirement_link · list_requirement_comments · create_requirement_comment · update_requirement_comment · delete_requirement_comment · add_requirement_tags · remove_requirement_tag · get_requirement_tags · calculate_requirement_quality · get_requirement_quality · get_requirement_activity · *以及更多*
资源
提示也作为MCP资源提供 prompt://{id}.
示例用法
“Show me all style guides in my workspace”
“Create a requirement for user authentication with acceptance criteria”
“List all documents in the project”
“Switch to workspace \'frontend-team\'”
“Search requirements matching \'payment\'”发展
git clone https://github.com/Honeyfield-Org/thinkprompt-mcp.git
cd thinkprompt-mcp
pnpm install
# Development with hot-reload
pnpm dev
# Build
pnpm build
# Test with MCP Inspector
pnpm inspect项目结构
src/
├── index.ts # MCP server entry point (tool definitions & handlers)
└── api-client.ts # ThinkPrompt API client故障排除
| 问题 | 解决方案 |
|---|---|
| 工具未出现 | 保存配置后重新启动Claude/Cursor |
| 身份验证错误 | 在thinkprompt.ai/settings验证您的API密钥 |
| 连接超时 | 检查API URL是否可访问 |
npx 找不到 | 确保已安装Node.js(v18+)并在PATH中 |
相关转载
- thinkprompt前端 --Next.js前端
- thinkprompt api -NestJS后端API
- thinkprompt插件 --Claude代码插件
许可证
麻省理工学院--© 霍尼菲尔德有限公司
