| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2ca58e49-a799-9f92-23b4-c5fb82a4c95b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7C2:358B3C:47A551D:65AAEEC:6A5006D4 |
| html-safe-nonce | a48d87aca60660935d2abc54671870b85c34f29f7dec6f90e048ac87f47b0087 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0MyOjM1OEIzQzo0N0E1NTFEOjY1QUFFRUM6NkE1MDA2RDQiLCJ2aXNpdG9yX2lkIjoiNzA0Mzg5NjYyNjY1NDQ4MDA4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 517763cd669e52429f2cb21bdc2deb1639b09f920ff16f157e1e52514dbd7afb |
| hovercard-subject-tag | pull_request:3687751529 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/72/files |
| twitter:image | https://avatars.githubusercontent.com/u/12181423?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12181423?s=400&v=4 |
| og:image:alt | 📋 概述
本 PR 为 Deep Code CLI 增加了完整的 MCP (Model Context Protocol) 服务器状态管理和可视化功能,包括实时状态监控、工具/提示/资源发现、错误处理以及优化的用户交互体验。
🎯 变更类型
✨ 新功能
🎨 UI 改进
🐛 Bug 修复
♻️ 代码重构
✅ 测试更新
📝 主要变更
1. MCP 客户端增强 (src/mcp/mcp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56eec25a3430492dd6ec2a480eb33256a0da5192d5714b0db4f5ab5f33203d94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git |
| octolytics-dimension-user_id | 118287711 |
| octolytics-dimension-user_login | lessweb |
| octolytics-dimension-repository_id | 1223512305 |
| octolytics-dimension-repository_nwo | lessweb/deepcode-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1223512305 |
| octolytics-dimension-repository_network_root_nwo | lessweb/deepcode-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93a615b89b7dcbdb6b678f4772931ecc28ada82a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/lessweb/deepcode-cli/pull/72/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F72%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F72%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli |
| Reload | https://github.com/lessweb/deepcode-cli/pull/72/files |
| Reload | https://github.com/lessweb/deepcode-cli/pull/72/files |
| Reload | https://github.com/lessweb/deepcode-cli/pull/72/files |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/72/files |
|
lessweb
| https://github.com/lessweb |
| deepcode-cli | https://github.com/lessweb/deepcode-cli |
|
Notifications
| https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli |
|
Fork
159
| https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli |
|
Star
1.8k
| https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli |
|
Code
| https://github.com/lessweb/deepcode-cli |
|
Issues
47
| https://github.com/lessweb/deepcode-cli/issues |
|
Pull requests
22
| https://github.com/lessweb/deepcode-cli/pulls |
|
Actions
| https://github.com/lessweb/deepcode-cli/actions |
|
Projects
| https://github.com/lessweb/deepcode-cli/projects |
|
Security and quality
0
| https://github.com/lessweb/deepcode-cli/security |
|
Insights
| https://github.com/lessweb/deepcode-cli/pulse |
|
Code
| https://github.com/lessweb/deepcode-cli |
|
Issues
| https://github.com/lessweb/deepcode-cli/issues |
|
Pull requests
| https://github.com/lessweb/deepcode-cli/pulls |
|
Actions
| https://github.com/lessweb/deepcode-cli/actions |
|
Projects
| https://github.com/lessweb/deepcode-cli/projects |
|
Security and quality
| https://github.com/lessweb/deepcode-cli/security |
|
Insights
| https://github.com/lessweb/deepcode-cli/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose |
| qorzj | https://github.com/qorzj |
| lessweb:main | https://github.com/lessweb/deepcode-cli/tree/main |
| hqwlkj:feature/mcp-refactor | https://github.com/hqwlkj/deepcode-cli/tree/feature/mcp-refactor |
|
Conversation
0
| https://github.com/lessweb/deepcode-cli/pull/72 |
|
Commits
13
| https://github.com/lessweb/deepcode-cli/pull/72/commits |
|
Checks
0
| https://github.com/lessweb/deepcode-cli/pull/72/checks |
|
Files changed
| https://github.com/lessweb/deepcode-cli/pull/72/files |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/72/files |
|
refactor: MCP 新增状态管理增强与 UI 可视化
| https://github.com/lessweb/deepcode-cli/pull/72/files#top |
|
Show all changes
13 commits
| https://github.com/lessweb/deepcode-cli/pull/72/files |
|
fb38560
feat(mcp): 集成并展示MCP服务器状态和资源列表
hqwlkj May 14, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/fb38560830a55c217122ebff5ee42836523d7c3b |
|
91e5240
feat(ui): 添加服务器错误信息显示功能
hqwlkj May 14, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/91e52406293ff1e8683e15ec00eac98bed175f7d |
|
40025e4
feat(mcp): 实时更新和展示 MCP 服务器状态
hqwlkj May 14, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/40025e495a6c19aa34939be78a4ace696a966ed7 |
|
d68baf7
refactor(ui): 优化 MCP 状态列表视图及界面细节调整
hqwlkj May 14, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/d68baf776ff6f92d112a15df4f8c6a079005308c |
|
b858c87
chore: update McpStatusList
hqwlkj May 14, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/b858c8755978480321f79dd8068376c7c45408d4 |
|
d9a3e15
Merge branch 'main' into feature/mcp-refactor
hqwlkj May 14, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/d9a3e152a09be7019c13babc46426c98e7577665 |
|
587a602
Merge branch 'main' into feature/mcp-refactor
hqwlkj May 15, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/587a6023295235adb67e2d96aea817baf30c4ade |
|
35b686d
test(session): 更新测试以包括提示和资源计数信息
hqwlkj May 15, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/35b686d55fa1a6fcd91f3845d49b17d5975fcd61 |
|
5a99628
refactor(ui): 移除McpStatusList中不必要的React导入和文本显示
hqwlkj May 15, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/5a996281dce9cb2ef6371374669aea304bdbec7c |
|
bee349b
fix(mcp-client): 增强协议版本校验和JSON-RPC批处理支持
hqwlkj May 15, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/bee349bb8ca700eefe96615cba4b51352bdc907b |
|
c819374
feat(ui): 添加无服务器时按Esc键退出的功能
hqwlkj May 15, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/c81937434575bee3eb734fcf28d9bec01bad4667 |
|
a094524
fix(ui): update string
hqwlkj May 15, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/a094524e8fd4e939b93e71d56743b0fd1a50806d |
|
9a21884
fix(ui): update string
hqwlkj May 15, 2026
| https://github.com/lessweb/deepcode-cli/pull/72/commits/9a2188407e71a66a46b1937a6798c094ae2a486f |
|
Clear filters
| https://github.com/lessweb/deepcode-cli/pull/72/files |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/72/files |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/72/files |
|
mcp-client.ts
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
mcp-manager.ts
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-710cf8658728525aefdd27c7d7ac3fce8d5aacd831b755ebce29ddbc1304ac96 |
|
session.ts
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb |
|
session.test.ts
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-de8fd838e685eb171fd68dd90115fa8a20cf6d0b1aa1756278c53d2825eae713 |
|
App.tsx
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-0022b32944774e72bcbec1b0520e753925073bfbeff256269d0f668f5f515b0e |
|
AskUserQuestionPrompt.tsx
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-8e937d1d46eb20e3ae5c50696ed9d5f883c1c40530c543e0ce88b3574877fe19 |
|
DropdownMenu.tsx
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-a2b9c0f15201e52cbb3cd5e55aed1c3c20ac5b988582ccc57d7ac5db39140c51 |
|
McpStatusList.tsx
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-42dda36a29773e24bfbeb630c276cce38b3e2d636f5658f32772137d6f0f8ffb |
|
MessageView.tsx
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-98529297184603c06e7504c8597d26336d6df669c6a57940ce4ad1e60b4b011b |
|
PromptInput.tsx
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2 |
|
SessionList.tsx
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-9ac820054d226d3a46ec8e52320b29693146818c6d3358e14467eba5e54dbdb7 |
|
SlashCommandMenu.tsx
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-1b2c26b7a2b23c928b8397db12456ad0504e21ec7312ac5b06f0645228bcf0b4 |
| src/mcp/mcp-client.ts | https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
View file
| https://github.com/hqwlkj/deepcode-cli/blob/9a2188407e71a66a46b1937a6798c094ae2a486f/src/mcp/mcp-client.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/lessweb/deepcode-cli/pull/72/{{ revealButtonHref }} |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
|
| https://github.com/lessweb/deepcode-cli/pull/72/files#diff-629980a013434764d29c6eb5dc269c55468056f2e134ac78c04ac0b24fd0989d |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/72/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |