Skip to content

Commit ed7929c

Browse files
BrentMifsudclaude
andauthored
Add MCP servers, swift-lsp plugin, and Context7 documentation rules (#6)
* Add Context7 and XcodeBuildMCP servers to project MCP config Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add swift-lsp plugin to project settings Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add Context7 documentation lookup rules to CLAUDE.md Instructs Claude to use Context7 MCP for documentation lookup before falling back to web search, with library references specific to this project. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 32fe7f1 commit ed7929c

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

.claude/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"enabledPlugins": {
3-
"swift-concurrency@swift-concurrency-agent-skill": true
3+
"swift-concurrency@swift-concurrency-agent-skill": true,
4+
"swift-lsp@claude-plugins-official": true
45
},
56
"extraKnownMarketplaces": {
67
"swift-concurrency-agent-skill": {

.mcp.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"mcpServers": {
3+
"context7": {
4+
"type": "stdio",
5+
"command": "npx",
6+
"args": [
7+
"-y",
8+
"@upstash/context7-mcp@latest"
9+
],
10+
"env": {}
11+
},
12+
"XcodeBuildMCP": {
13+
"type": "stdio",
14+
"command": "npx",
15+
"args": [
16+
"-y",
17+
"xcodebuildmcp@latest",
18+
"mcp"
19+
],
20+
"env": {}
21+
}
22+
}
23+
}

CLAUDE.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,13 @@ The `HTTPRequest` protocol has special handling for bodyless requests:
3939
### Testing Approach
4040

4141
Tests use Swift Testing framework (`@Suite`, `@Test`, `#expect`). Network tests mock `URLSession` via `MockURLProtocol` configured on an ephemeral session configuration.
42-
- When running tests, be sure to run tests for all supported platforms
42+
- When running tests, be sure to run tests for all supported platforms
43+
44+
## Documentation Lookup (Context7)
45+
46+
When working on this project, **always use Context7** to look up documentation before relying on training data or web search. Use the `mcp__context7__resolve-library-id` and `mcp__context7__get-library-docs` tools.
47+
48+
Key libraries relevant to Simplicity:
49+
- **Foundation**`URLSession`, `URLRequest`, `URLCache`, `JSONEncoder`/`JSONDecoder` APIs
50+
- **Swift Concurrency** — actors, `async`/`await`, `@Sendable`, `@concurrent`, `nonisolated`
51+
- **Swift Testing**`@Suite`, `@Test`, `#expect`, `#require`, `Issue.record`

0 commit comments

Comments
 (0)