mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[PR #5965] feat(realtime): add Model Context Protocol (MCP) client support #5437
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5437
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5965
Author: @rahulbsw
Created: 3/9/2026
Status: 🔄 Open
Base:
main← Head:feat/mcp-client-support📝 Commits (10+)
ec97a96feat(realtime): add Model Context Protocol (MCP) client supportaddbe8fdocs(mcp): add comprehensive tests and documentation6494089docs(mcp): add local testing guide with Playwright examples3cd04earefactor(mcp): move MCP to separate sidebar navigationce36e26fix(mcp): replace HoppSmartSelect with HoppButtonSecondary40a0d75fix(mcp): address critical PR review issues87240e0feat(mcp): add server catalog for quick connections9313e80fix(mcp): address PR review issues from cubic-dev-aifd5e4a4fix(mcp): address additional PR review issues5e90944fix(mcp): address remaining PR review issues📊 Changes
32 files changed (+5410 additions, -78 deletions)
View changed files
➕
packages/hoppscotch-common/assets/icons/mcp.svg(+1 -0)📝
packages/hoppscotch-common/locales/en.json(+53 -0)📝
packages/hoppscotch-common/src/components.d.ts(+14 -0)📝
packages/hoppscotch-common/src/components/app/Sidenav.vue(+7 -0)➕
packages/hoppscotch-common/src/components/collections/mcp/Add.vue(+93 -0)➕
packages/hoppscotch-common/src/components/collections/mcp/Edit.vue(+104 -0)➕
packages/hoppscotch-common/src/components/collections/mcp/index.vue(+184 -0)➕
packages/hoppscotch-common/src/components/history/mcp/Card.vue(+122 -0)➕
packages/hoppscotch-common/src/components/mcp/Configuration.vue(+220 -0)➕
packages/hoppscotch-common/src/components/mcp/EnvVarsList.vue(+176 -0)➕
packages/hoppscotch-common/src/components/mcp/HTTPAuth.vue(+206 -0)➕
packages/hoppscotch-common/src/components/mcp/MethodCard.vue(+164 -0)➕
packages/hoppscotch-common/src/components/mcp/PromptsList.vue(+103 -0)➕
packages/hoppscotch-common/src/components/mcp/ResourcesList.vue(+122 -0)➕
packages/hoppscotch-common/src/components/mcp/ServerCard.vue(+105 -0)➕
packages/hoppscotch-common/src/components/mcp/ServerCatalog.vue(+136 -0)➕
packages/hoppscotch-common/src/components/mcp/ToolsList.vue(+99 -0)➕
packages/hoppscotch-common/src/helpers/mcp/servers.ts(+249 -0)➕
packages/hoppscotch-common/src/helpers/realtime/MCPConnection.ts(+86 -0)➕
packages/hoppscotch-common/src/helpers/realtime/MCPHTTPConnection.ts(+335 -0)...and 12 more files
📄 Description
Summary
Adds comprehensive Model Context Protocol (MCP) client support to Hoppscotch, similar to Postman's implementation. This enables users to connect to MCP servers, discover capabilities (tools, prompts, resources), and invoke methods with JSON arguments.
Closes #5966
Key Features:
Technical Implementation
Data Layer:
@hoppscotch/datausing verzod patternHoppMCPRequesttype with transport configs and authConnection Layer:
MCPConnectionbase classMCPHTTPConnection- JSON-RPC 2.0 over HTTP/SSEMCPSTDIOConnection- Process-based transport (requires Agent/Desktop)State Management:
MCPSessionstore with 20+ dispatchersUI Components:
Integration:
/realtime/mcprouteFiles Changed
23 new files (~3,600 lines):
packages/hoppscotch-data/src/mcp/)packages/hoppscotch-common/src/helpers/realtime/)packages/hoppscotch-common/src/newstore/MCPSession.ts)packages/hoppscotch-common/src/components/mcp/)packages/hoppscotch-common/src/pages/realtime/mcp.vue)5 modified files:
packages/hoppscotch-common/src/newstore/collections.ts- MCP collections supportpackages/hoppscotch-common/src/newstore/history.ts- MCP history trackingpackages/hoppscotch-common/src/pages/realtime.vue- Navigation entrypackages/hoppscotch-common/locales/en.json- i18n stringspnpm-lock.yaml- No new dependenciesTest Plan
eslint --fix)vue-tsc --noEmit)Reference
Implementation based on Postman's MCP support and the Model Context Protocol specification.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.