Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# GitHub collapses linguist-generated files in pull request diffs and leaves them out of the
# language statistics. Mark only output that CI proves matches its source; generated files
# whose changes are the point of a review (conformance baselines, interop/RESULTS.md) stay
# visible.

# Woven by scripts/weave.swift from docs/src/*.src.md and README.src.md (`--check` in CI).
/docs/*.md linguist-generated=true
/README.md linguist-generated=true

# Tests/MCPTests/Generated stays visible: no CI job reruns its generators
# (scripts/frontmatter-corpus.mjs, scripts/server-card-examples.mjs), and it holds the
# expected results the tests compare against.
5 changes: 4 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ that implement the "everything" reference client/server used by the
**`Examples/`** — `HelloServer`, `HelloClient`, `HTTPServerExample` and the doc snippet targets
(`*Snippets`, tests in `SnippetTests`). `docs/*.md` and `README.md` are generated from
`docs/src/*.src.md` and `README.src.md` by `swift scripts/weave.swift` (`--check` in CI);
never edit the generated files.
never edit the generated files. `.gitattributes` marks them `linguist-generated` (collapsed in
PR diffs); a new generator adds its output there only when CI proves it matches its source,
while output reviewers need to see (conformance baselines, `interop/RESULTS.md`, and
`Tests/MCPTests/Generated/`) stays unmarked.

**`Tests/MCPTests/`** — one test file per source area; most transport/client/server tests run
against `InMemoryTransport` or `Helpers/MockTransport.swift` rather than real sockets/processes.
Expand Down
Loading