Skip to content

Commit 00051b0

Browse files
committed
Merge upstream main into add-file-locking
2 parents 280f6fb + 97ba6b3 commit 00051b0

47 files changed

Lines changed: 3720 additions & 2566 deletions

Some content is hidden

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

‎.github/workflows/readme-pr-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
body: [
4747
'Thanks for your contribution!',
4848
'',
49-
'**We are no longer accepting PRs to add new servers to the README.** The server lists are deprecated and will eventually be removed entirely, replaced by the registry.',
49+
'**We are no longer accepting PRs to add new servers to the README.** The third-party server list has been removed from this README in favor of the [MCP Server Registry](https://registry.modelcontextprotocol.io/).',
5050
'',
5151
'👉 **To add a new MCP server:** Please publish it to the [MCP Server Registry](https://github.com/modelcontextprotocol/registry) instead. You can browse published servers at [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io/).',
5252
'',

‎CLAUDE.md‎

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code when working with code in this repository.
4+
5+
## Project Overview
6+
7+
Official MCP reference server implementations. This is an npm workspaces monorepo containing 7 servers (4 TypeScript, 3 Python) under `src/`. Each server is a standalone package published to npm or PyPI.
8+
9+
## Monorepo Structure
10+
11+
```
12+
src/
13+
everything/ TS @modelcontextprotocol/server-everything (reference server, all MCP features)
14+
filesystem/ TS @modelcontextprotocol/server-filesystem (file operations with Roots access control)
15+
memory/ TS @modelcontextprotocol/server-memory (knowledge graph persistence)
16+
sequentialthinking/ TS @modelcontextprotocol/server-sequential-thinking (step-by-step reasoning)
17+
fetch/ Py mcp-server-fetch (web content fetching)
18+
git/ Py mcp-server-git (git repository operations)
19+
time/ Py mcp-server-time (timezone queries and conversion)
20+
```
21+
22+
## Build & Test Commands
23+
24+
### TypeScript servers
25+
26+
```bash
27+
# Single server
28+
cd src/<server> && npm ci && npm run build && npm test
29+
30+
# All TS servers from root
31+
npm install && npm run build
32+
```
33+
34+
- Build: `tsc` (target ES2022, module Node16, strict mode)
35+
- Tests: **vitest** with `@vitest/coverage-v8` (required for new tests)
36+
- Node version: **22**
37+
38+
### Python servers
39+
40+
```bash
41+
cd src/<server> && uv sync --frozen --all-extras --dev
42+
43+
# Run tests (if tests/ or test/ directory exists)
44+
uv run pytest
45+
46+
# Type checking
47+
uv run pyright
48+
49+
# Linting
50+
uv run ruff check .
51+
```
52+
53+
- Build system: **hatchling** (`uv build`)
54+
- Package manager: **uv** (not pip)
55+
- Python version: **>= 3.10** (per-server `.python-version` file)
56+
- Type checking: **pyright** (enforced in CI)
57+
- Linting: **ruff**
58+
59+
## Code Style
60+
61+
### TypeScript
62+
63+
- ES modules with `.js` extension in import paths
64+
- Strict TypeScript typing for all functions and variables
65+
- Zod schemas for tool input validation
66+
- 2-space indentation, trailing commas in multi-line objects
67+
- camelCase for variables/functions, PascalCase for types/classes, UPPER_CASE for constants
68+
- kebab-case for file names and registered tools/prompts/resources
69+
- Verb-first tool names (e.g., `get-file-info`, not `file-info`)
70+
- Imports grouped: external first, then internal
71+
72+
### Python
73+
74+
- Type hints enforced via pyright
75+
- Async/await patterns (especially in fetch server with pytest-asyncio)
76+
- Follow existing module layout per server
77+
78+
## Contributing Guidelines
79+
80+
**Accepted:** Bug fixes, usability improvements, enhancements demonstrating MCP protocol features (Resources, Prompts, Roots -- not just Tools).
81+
82+
**Selective:** New features outside a server's core purpose or highly opinionated additions.
83+
84+
**Not accepted:** New server implementations (use the [MCP Server Registry](https://github.com/modelcontextprotocol/registry)), README server listing changes.
85+
86+
## CI/CD Pipeline
87+
88+
Both TypeScript and Python workflows use **dynamic package detection** (find + jq matrix strategy):
89+
90+
1. `detect-packages` -- finds all `package.json` / `pyproject.toml` under `src/`
91+
2. `test` -- runs tests per package
92+
3. `build` -- compiles and type-checks per package
93+
4. `publish` -- on release events only (npm for TS, PyPI trusted publishing for Python)
94+
95+
## MCP Protocol Reference
96+
97+
The repo is configured with an MCP docs server (`.mcp.json`) pointing to `https://modelcontextprotocol.io/mcp`. For schema details, reference `https://github.com/modelcontextprotocol/modelcontextprotocol/tree/main/schema` which contains versioned schemas in JSON and TypeScript formats.
98+
99+
## Key Patterns
100+
101+
- Each server registers capabilities via `registerTools(server)`, `registerResources(server)`, `registerPrompts(server)` functions
102+
- Tool annotations: set `readOnlyHint`, `idempotentHint`, `destructiveHint` per MCP spec
103+
- Transport support: stdio (default), SSE (deprecated), Streamable HTTP
104+
- All PRs are reviewed against the [PR template](.github/pull_request_template.md) checklist -- ensure MCP docs are read, security best practices followed, and changes tested with an LLM client

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ We accept changes through [the standard GitHub flow model](https://docs.github.c
66

77
## Server Listings
88

9-
We are **no longer accepting PRs** to add server links to the README. Please publish your server to the [MCP Server Registry](https://github.com/modelcontextprotocol/registry) instead. Follow the [quickstart guide](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/quickstart.mdx).
9+
The README no longer contains a list of third-party MCP servers — that list has been retired in favor of the [MCP Server Registry](https://github.com/modelcontextprotocol/registry). To make your server discoverable, follow the [quickstart guide](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/quickstart.mdx) to publish it there.
1010

11-
You can browse published servers using the simple UI at [https://registry.modelcontextprotocol.io/](https://registry.modelcontextprotocol.io/).
11+
You can browse published servers at [https://registry.modelcontextprotocol.io/](https://registry.modelcontextprotocol.io/).
1212

1313
## Server Implementations
1414

0 commit comments

Comments
 (0)