Loading files
f28aa5c47This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/stack-chan-374381865.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
f28aa5c47This file is pinned to the selected release. Download the original to open it in your design tool.
# MCP Client Service Test
This test demonstrates the MCP (Model Context Protocol) client service by:
1. Starting a dummy MCP server with test tools
2. Creating an MCP client to connect to the server
3. Testing various client operations:
- Initialize connection
- List available tools
- Call tools with different parameters
- Error handling for invalid requests
- Reset and re-initialization
## Test Tools
The dummy server provides these test tools:
- **echo**: Echoes the input message
- **add**: Adds two numbers together
- **get_status**: Returns server status
## Runnint (Linux)
```bash
cd tests/services/mcp-client-service
mcconfig -m -d -p lin
```
## Expected Output
The test will show:
- Successful initialization with server info
- List of available tools
- Results from tool calls
- Proper error handling for invalid requests
- Reset and re-initialization functionality