Skip to content

Commit b545744

Browse files
committed
Merge upstream main and fix filesystem append semantics
Open existing files with O_APPEND and without O_CREAT; preserve inode and symlink-swap checks across platforms. Use exclusive creation for create_or_append_file and append after a competing creation instead of overwriting. Move tool registrations into the refactored server and add real filesystem regression coverage. Signed-off-by: Benyamin <benyaminjmf@gmail.com>
2 parents 18fcd3d + bbb701e commit b545744

296 files changed

Lines changed: 62881 additions & 7997 deletions

File tree

Some content is hidden

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

‎.changeset/README.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Changesets
2+
3+
The four TypeScript servers (`everything`, `filesystem`, `memory`,
4+
`sequentialthinking`) are versioned with
5+
[changesets](https://github.com/changesets/changesets). This directory holds the
6+
pending ones: one small Markdown file per change, each naming the packages it
7+
bumps, the bump type, and the line that becomes the CHANGELOG entry. The whole
8+
release flow is in [`RELEASING.md`](../RELEASING.md).
9+
10+
A PR that changes what a TypeScript server publishes adds one:
11+
12+
```sh
13+
npm run changeset
14+
```
15+
16+
Pick the affected package or packages, choose the bump type, and write a
17+
one-line summary for a user of the server. Commit the generated file with the
18+
PR.
19+
20+
| Bump | When |
21+
| --- | --- |
22+
| **patch** | A bug fix |
23+
| **minor** | A new tool, prompt, resource or option |
24+
| **major** | A breaking change: a tool removed or renamed, a schema change that breaks clients, a protocol or Node floor bump |
25+
26+
A change that does not alter a published TypeScript package needs none: docs,
27+
skills, workflows, the gate's scripts, tests, and anything in a Python server.
28+
The Python servers (`fetch`, `git`, `time`) use CalVer and are stamped by the
29+
**Prepare Python Release** workflow instead.
30+
31+
Merged changesets accumulate on `v2/main`. The **Version Packages** workflow
32+
keeps one rolling PR open that consumes them: merging it applies the version
33+
bumps, writes each package's `CHANGELOG.md`, and deletes the consumed files.
34+
Nothing is published until a maintainer publishes a GitHub Release.

‎.changeset/config.json‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@4.0.1/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "modelcontextprotocol/servers" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "v2/main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@modelcontextprotocol/server-filesystem": minor
3+
---
4+
5+
Add `append_file` for existing files and `create_or_append_file` for creation or append. Append at physical EOF without replacing files, reject missing files for `append_file`, and preserve file identity checks against symlink swaps.

0 commit comments

Comments
 (0)