Skip to content

Commit 04476c4

Browse files
committed
Merge branch 'main' into add_root_notification
2 parents 82af156 + be73067 commit 04476c4

File tree

124 files changed

+1837
-1114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+1837
-1114
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Applied 120 line-length rule to all files: https://github.com/modelcontextprotocol/python-sdk/pull/856
22
543961968c0634e93d919d509cce23a1d6a56c21
3+
4+
# Added 100% code coverage baseline with pragma comments: https://github.com/modelcontextprotocol/python-sdk/pull/1553
5+
89e9c43acf7e23cf766357d776ec1ce63ac2c58e

.gitattribute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Generated
2-
uv.lock linguist-generated=true
2+
uv.lock linguist-generated=true

.github/workflows/shared.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ jobs:
5555
- name: Install the project
5656
run: uv sync ${{ matrix.dep-resolution.install-flags }} --all-extras --python ${{ matrix.python-version }}
5757

58-
- name: Run pytest
59-
run: uv run ${{ matrix.dep-resolution.install-flags }} --no-sync pytest
58+
- name: Run pytest with coverage
59+
run: |
60+
uv run ${{ matrix.dep-resolution.install-flags }} --no-sync coverage run -m pytest
61+
uv run ${{ matrix.dep-resolution.install-flags }} --no-sync coverage combine
62+
uv run ${{ matrix.dep-resolution.install-flags }} --no-sync coverage report
6063
env:
6164
UV_RESOLUTION: ${{ matrix.dep-resolution.name == 'lowest-direct' && 'lowest-direct' || 'highest' }}
6265

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
fail_fast: true
22

33
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v6.0.0
6+
hooks:
7+
- id: end-of-file-fixer
8+
49
- repo: https://github.com/pre-commit/mirrors-prettier
510
rev: v3.1.0
611
hooks:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
python-dotenv>=1.0.0
22
requests>=2.31.0
33
mcp>=1.0.0
4-
uvicorn>=0.32.1
4+
uvicorn>=0.32.1

examples/clients/simple-chatbot/mcp_simple_chatbot/servers_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
"args": ["-y", "@modelcontextprotocol/server-puppeteer"]
1010
}
1111
}
12-
}
12+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# MCP Everything Server
2+
3+
A comprehensive MCP server implementing all protocol features for conformance testing.
4+
5+
## Overview
6+
7+
The Everything Server is a reference implementation that demonstrates all features of the Model Context Protocol (MCP). It is designed to be used with the [MCP Conformance Test Framework](https://github.com/modelcontextprotocol/conformance) to validate MCP client and server implementations.
8+
9+
## Installation
10+
11+
From the python-sdk root directory:
12+
13+
```bash
14+
uv sync --frozen
15+
```
16+
17+
## Usage
18+
19+
### Running the Server
20+
21+
Start the server with default settings (port 3001):
22+
23+
```bash
24+
uv run -m mcp_everything_server
25+
```
26+
27+
Or with custom options:
28+
29+
```bash
30+
uv run -m mcp_everything_server --port 3001 --log-level DEBUG
31+
```
32+
33+
The server will be available at: `http://localhost:3001/mcp`
34+
35+
### Command-Line Options
36+
37+
- `--port` - Port to listen on (default: 3001)
38+
- `--log-level` - Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL (default: INFO)
39+
40+
## Running Conformance Tests
41+
42+
See the [MCP Conformance Test Framework](https://github.com/modelcontextprotocol/conformance) for instructions on running conformance tests against this server.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""MCP Everything Server - Comprehensive conformance test server."""
2+
3+
__version__ = "0.1.0"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""CLI entry point for the MCP Everything Server."""
2+
3+
from .server import main
4+
5+
if __name__ == "__main__":
6+
main()

0 commit comments

Comments
 (0)