Skip to content

docs: add minimal Node client example#943

Closed
liuxiaopai-ai wants to merge 1 commit intoChromeDevTools:mainfrom
liuxiaopai-ai:docs/troubleshooting-min-example
Closed

docs: add minimal Node client example#943
liuxiaopai-ai wants to merge 1 commit intoChromeDevTools:mainfrom
liuxiaopai-ai:docs/troubleshooting-min-example

Conversation

@liuxiaopai-ai
Copy link
Copy Markdown

Adds a tiny, dependency-free Node example that spawns the server via npx and sends an MCP initialize request.

Why:

  • Provides a copy/paste smoke check for users debugging stdio transports.
  • Keeps the example small and avoids introducing new build/test requirements.

Notes:

  • Example is intentionally minimal and exits after receiving the initialize response.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Feb 13, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@liuxiaopai-ai
Copy link
Copy Markdown
Author

CLA has now been signed with this GitHub account. Could you please re-run/check the cla/google status? Thanks!

@OrKoN
Copy link
Copy Markdown
Collaborator

OrKoN commented Feb 13, 2026

Thanks for the PR but I think we should not document direct interactions with MCP and instead rely on the MCP SDK client implementations documented here https://modelcontextprotocol.io/docs/develop/build-client#typescript

@OrKoN OrKoN closed this Feb 13, 2026
@liuxiaopai-ai
Copy link
Copy Markdown
Author

liuxiaopai-ai commented Feb 13, 2026

Thanks for the feedback — updated. I replaced the direct JSON-RPC interaction example with an official MCP TypeScript SDK client example (Client + StdioClientTransport) and updated the README wording accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants