Repository navigation
feat(init): set up the Netlify MCP server for the project #8638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
domitriusclark
wants to merge
18
commits into
main
Choose a base branch
from
claude/mcp-setup-init-aa455c
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4157f26
feat(init): add Netlify MCP server for Claude Code
domitriusclark 51f308a
feat(init): set up MCP for the agents init detects
domitriusclark 0d3de81
feat(init): remember MCP agent choices per user
domitriusclark 433ef8f
test(init): use .cmd fake agent binaries on Windows
domitriusclark bb3ddc1
fix(init): install skills in new and empty folders
domitriusclark 059e415
fix(init): only write MCP config when a person picks it
domitriusclark f6a8241
fix(init): re-offer agents that kept another MCP server
domitriusclark 8fc3f35
feat(init): set up the Netlify MCP server per project
domitriusclark 535189f
fix(init): read older claude mcp list output and flag commands left t…
domitriusclark 404f7ab
feat(init): add the MCP server for the agent running init
domitriusclark 8875f87
fix(init): name where Claude's MCP entry is saved
domitriusclark 73eae05
fix(init): never overwrite or go user-wide by default
domitriusclark b70b3e3
fix(init): keep agent runs from touching saved MCP choices
domitriusclark b3fe95a
fix(init): address MCP setup review round three
domitriusclark d7c3ed7
test(init): skip relative-PATH tests when temp is on another drive
domitriusclark 5c7d7c4
fix(init): address MCP setup review round four
domitriusclark cdde3f9
fix(init): check every Netlify entry at user scope
domitriusclark 49efae0
refactor(init): drop unrequested MCP edge cases
domitriusclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import { promises as fs } from 'node:fs' | ||
| import { homedir } from 'node:os' | ||
| import path from 'node:path' | ||
|
|
||
| const realpathOrSelf = async (target: string): Promise<string> => { | ||
| try { | ||
| return await fs.realpath(target) | ||
| } catch { | ||
| return path.resolve(target) | ||
| } | ||
| } | ||
|
|
||
| export interface ProjectSetupBlocker { | ||
| place: 'home' | 'root' | ||
| reason: string | ||
| } | ||
|
|
||
| export const findProjectSetupBlocker = async ( | ||
| root: string, | ||
| home: string = homedir(), | ||
| ): Promise<ProjectSetupBlocker | undefined> => { | ||
| const resolvedRoot = await realpathOrSelf(root) | ||
| if (resolvedRoot === (await realpathOrSelf(home))) { | ||
| return { place: 'home', reason: 'this is your home directory, where they would apply to every project' } | ||
| } | ||
| if (resolvedRoot === path.parse(resolvedRoot).root) { | ||
| return { place: 'root', reason: 'this is the root of the file system' } | ||
| } | ||
| return undefined | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.