Skip to content

Conversation

allenzhou101
Copy link
Contributor

@allenzhou101 allenzhou101 commented Feb 18, 2025

This PR adds a MCP CLI Client example written in Typescript as a companion to the Python version. This should be merged before the documentation update PR.

Motivation and Context

The codebase currently lacks a basic TypeScript example for implementing an MCP client. Adding this example will help developers understand how to properly implement MCP clients in TypeScript applications, following the protocol specifications and best practices shown in the documentation.

The MCP Server example already exists for both Typescript and Python.

How Has This Been Tested?

This has been tested with existing MCP Servers via the CLI.

Breaking Changes

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

There will be a corresponding documentation PR opened in the docs repo. Also, this fixes package.lock registry links in the weather-server-typescript folder that prevented public installation.

@dsp-ant dsp-ant merged commit 1a6be37 into modelcontextprotocol:main Mar 10, 2025
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.

3 participants