MCP Client / API Access Question (Atlassian + Playwright + Custom MCP) #649
Replies: 2 comments
This comment was marked as spam.
This comment was marked as spam.
-
|
I am getting this error while use sdk client S C:\Surekha\MCP Projects\agent-mcp-api> node src/server.js Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Surekha\MCP Projects\agent-mcp-api\node_modules@modelcontextprotocol\sdk\dist\esm\index.js' imported from C:\Surekha\MCP Projects\agent-mcp-api\src\mcp\index.js |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
Hi MCP community 👋
I’m currently using multiple MCP servers:
Atlassian MCP (Jira)
Playwright MCP
A custom MCP server for automation flows
These are working correctly when run via STDIO (for example from VS Code using MCP config).
🎯 What I’m trying to achieve
I want to access these MCP servers from my own chat agent via an API, so that:
My chat agent receives a user prompt
The agent calls MCP tools (Playwright / Jira / custom MCP)
The results are returned back to the chat agent over HTTP
Essentially, I’m trying to build an API bridge between my chat agent and MCP servers.
🚫 Problem I’m facing
When I try to use client or WebSocket-related modules from the MCP SDK, I get errors like:
Error: Cannot find module '.../dist/esm/index.js'
or similar issues when attempting imports related to:
WebSocket clients
MCP client SDK usage outside VS Code
This made me unsure whether:
MCP officially supports HTTP / WebSocket access
There is a supported client SDK for external agents
Or if MCP is STDIO-only by design
❓ Questions for the community
Is MCP intentionally STDIO-only, with no official WebSocket or HTTP interface?
Is there a recommended pattern to expose MCP tools to an external chat agent (e.g., via a custom HTTP bridge)?
Is there a supported client API in @modelcontextprotocol/sdk, or should we avoid importing client modules entirely?
Are there any reference implementations or best practices for running MCP servers outside VS Code?
✅ What I’m looking for
Confirmation of the correct architecture
Guidance on whether building an MCP → HTTP bridge is the intended approach
Any official docs, examples, or recommendations
Thanks in advance 🙏
This project is super promising, and I’d love to align with MCP’s intended usage patterns.
Beta Was this translation helpful? Give feedback.
All reactions