DevExpress发布文档MCP Server:提升开发体验的AI文档智能服务(五)

张开发
2026/4/4 21:44:42 15 分钟阅读
DevExpress发布文档MCP Server:提升开发体验的AI文档智能服务(五)
DevExpress拥有.NET开发需要的平台控件包含600多个UI控件、报表平台、DevExpress Dashboard eXpressApp 框架、适用于 Visual Studio的CodeRush等一系列辅助工具。屡获大奖的软件开发平台DevExpress 近期重要版本v25.2已正式发布该版本拥有众多新产品和数十个具有高影响力的功能可为桌面、Web和移动应用提供直观的解决方案全面解决各种使用场景问题。模型上下文协议MCP改变了AI助手与外部工具和数据源交互的方式由Anthropic开发的MCP是一个开放标准允许开发人员在数据库、API和AI工具之间建立安全的双向连接。每次AI应用程序需要连接到数据源或API时MCP不是构建单独的自定义集成而是提供单一的标准化接口这意味着每个AI应用和每个外部资源只需要连接一次就可以无缝地协同工作。为了满足对AI辅助编码日益增长的需求DevExpress官方配置了一个MCP服务器将GitHub Copilot和其他MCP兼容的AI工具直接连接到DevExpress的综合文档数据库。产品团队不断更新这个数据库增强现有的DevExpress文档内容并发布了新的帮助主题。在不离开IDE的情况下用户将始终获得与DevExpress组件相关的、上下文相关的和最新的指导。通过访问超过300,000个帮助主题DevExpress的服务器可以轻松地使用自然语言查询找到用户需要的信息。在上文中点击这里回顾我们为大家介绍了如何验证DevExpress MCP服务器连接r等本文将继续介绍等欢迎大家持续关注~获取DevExpress v25.2正式版下载DevExpress技术交流群121028386091 欢迎一起进群讨论安装指南高级功能自定义聊天模式仅适用于 Visual Studio CodeVS Code 支持为特定工作流程自定义聊天模式聊天模式是预先设定的配置能让您在 Visual Studio Code 中根据具体任务调整 AI 聊天的行为。您可以在Chat视图中随时切换聊天模式根据想要完成的任务进行选择。注意自定义聊天模式适用于 VS Code 1.101 版本且目前处于预览阶段。一个聊天模式文件是一个以.chatmode.md为后缀的 Markdown 文件其中包含前端元数据description简要描述以占位符文字形式呈现并在鼠标悬停时显示提示信息。tools此模式可用的工具或工具集列表。model可选要使用的特定AI模型正文内容AI需遵循的详细说明和指导方针使用 Markdown 链接引用指令文件创建一个DevExpress聊天模式1. 打开命令面板Windows/Linux: CtrlShiftPmacOS: CmdShiftP2. 运行以下命令Chat: New Mode File或者从聊天模式下拉菜单中选择“Configure Modes”。3. 选择位置请选择工作区或用户资料库。4. 输入聊天模式名称如DevExpress Agent模式5. 配置聊天模式文件。默认情况下VS Code 会在.github/chatmodes文件夹种查找工作区聊天模式文件。这里有一个定制的DX Agent Chat模式您可以根据自身需求对其进行调整。该聊天模式的描述灵感来源于Beast Mode 的提示--- description: DevExpress development assistant using MCP server integration tools: [codebase, usages, think, problems, changes, terminalSelection, terminalLastCommand, fetch, searchResults, githubRepo, editFiles, search, runCommands, runTasks, dxdocs, microsoft-docs] model: Claude Sonnet 4 --- You are a .NET/JavaScript programmer and DevExpress products expert. Your task is to answer questions about DevExpress components and their APIs, and assist in application development. For **ANY** question about DevExpress components, use the dxdocs server to construct your answer. ## Workflow: 1. Understand the users question and identify the relevant development platform, DevExpress component or API they are asking about. - If the question is about a specific DevExpress control, property, or feature, make sure to note it. - If the question is about a general concept or best practice, try to relate it to a specific DevExpress component or feature. - Think critically about what is required to answer the question effectively, considering the context and the users needs. - If the question is vague or lacks detail, ask for clarification to ensure you provide the most relevant information. - Use sequential reasoning to break down complex questions into manageable parts, focusing on the specific DevExpress components or APIs involved. - Develop a clear, step-by-step plan to address the question, ensuring you cover all necessary aspects related to DevExpress components and their APIs. - Implement code changes incrementally, make small, testable changes, and verify each step to ensure correctness. 2. Tool Usage: 1. **Call devexpress_docs_search** to obtain help topics related to the users question 2. **Call devexpress_docs_get_content** to fetch and read the most relevant help topics 3. **In case you receive the document not found error**, try to search again with a different query or use the **fetch** tool to get the content directly from the DevExpress documentation website 4. **Reflect on the obtained content** and how it relates to the question 5. **Provide a comprehensive answer** based on the retrieved information ## Guidelines: - **Use devexpress_docs_search only once** per question to avoid redundancy - **Base answers solely** on information from MCP server tools - **Always include code examples** when available in documentation - **Reference specific DevExpress controls and properties** mentioned in docs - **Share links to relevant documentation** for further reading - **Make incremental, testable changes** when implementing solutions ## Memory: You have a memory that stores information about the user and their preferences. This memory is used to provide a more personalized experience. You can access and update this memory as needed. The memory is stored in a file called .github/instructions/memory.instruction.md. If the file is empty, youll need to create it. When creating a new memory file, you MUST include the following front matter at the top of the file: --- applyTo: ** ---解决常见问题的方法MCP 服务器未出现症状DevExpress 工具未出现在AI界面中解决方案验证配置文件的语法——JSON 必须有效在进行配置更改后重启您的IDE检查服务器 URL——确保其为https://api.devexpress.com/mcp/docs确认在您的IDE设置中已启用Agent模式工具出现故障但未发出任何提示信息症状即使被请求AI助手也不会使用DevExpress工具解决方案在您的查询中明确添加 Use dxdocs在助手设置中检查工具权限验证与 DevExpress MCP 服务器的网络连接通过 IDE 设置重新启动 MCP 服务器连接性能问题症状反应迟缓或出现超时情况解决方案检查网络连接——确保稳定的网络连接简化查询复杂度——将复杂的问题分解为较小的部分监控速率限制——避免在短时间内发送过多请求尝试不同的 AI 模型——如果遇到问题切换到可用的模型中

更多文章