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
2 changes: 0 additions & 2 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Claude Code

on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ The `--client` flag specifies which MCP client you're installing for:
- `gemini-cli`
- `claude-code`
- `goose`
- `zed`
- `warp` (outputs config to copy/paste into Warp's cloud-based settings)

## License
Expand Down
Empty file modified bin/run
100644 → 100755
Empty file.
176 changes: 88 additions & 88 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,90 +1,90 @@
{
"name": "install-mcp",
"version": "1.6.1",
"description": "A CLI tool to install and manage MCP servers.",
"bin": {
"install-mcp": "./bin/run"
},
"directories": {
"lib": "src",
"bin": "bin"
},
"files": [
"dist",
"bin"
],
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/supermemoryai/install-mcp.git"
},
"scripts": {
"build": "tsup-node",
"build:watch": "tsup-node --watch",
"clean": "rimraf dist",
"commit": "cz",
"commitlint": "commitlint --edit",
"compile": "tsc",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"start": "ts-node ./bin/run.ts",
"start:node": "node ./bin/run",
"test": "jest",
"test:watch": "jest --watchAll",
"prepare": "husky",
"release": "semantic-release"
},
"keywords": [
"typescript",
"starter",
"cli",
"mcp"
],
"author": "Dhravya Shah <[email protected]>",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@jest/globals": "^29.7.0",
"@tsconfig/node20": "^20.1.4",
"@types/jest": "^29.5.12",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.12.12",
"@types/prompts": "^2.4.9",
"@types/signale": "^1.4.7",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unused-imports": "^3.2.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.7",
"semantic-release": "^23.1.1",
"ts-jest": "^29.1.4",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
},
"dependencies": {
"consola": "^3.2.3",
"dotenv": "^16.4.5",
"giget": "^1.2.3",
"js-yaml": "^4.1.0",
"picocolors": "^1.0.1",
"yargs": "^17.7.2"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"packageManager": "[email protected]"
"name": "install-mcp",
"version": "1.6.2",
"description": "A CLI tool to install and manage MCP servers.",
"bin": {
"install-mcp": "./bin/run"
},
"directories": {
"lib": "src",
"bin": "bin"
},
"files": [
"dist",
"bin"
],
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/supermemoryai/install-mcp.git"
},
"scripts": {
"build": "tsup-node",
"build:watch": "tsup-node --watch",
"clean": "rimraf dist",
"commit": "cz",
"commitlint": "commitlint --edit",
"compile": "tsc",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"start": "ts-node ./bin/run.ts",
"start:node": "node ./bin/run",
"test": "jest",
"test:watch": "jest --watchAll",
"prepare": "husky",
"release": "semantic-release"
},
"keywords": [
"typescript",
"starter",
"cli",
"mcp"
],
"author": "Dhravya Shah <[email protected]>",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@jest/globals": "^29.7.0",
"@tsconfig/node20": "^20.1.4",
"@types/jest": "^29.5.12",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.12.12",
"@types/prompts": "^2.4.9",
"@types/signale": "^1.4.7",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unused-imports": "^3.2.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.7",
"semantic-release": "^23.1.1",
"ts-jest": "^29.1.4",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
},
"dependencies": {
"consola": "^3.2.3",
"dotenv": "^16.4.5",
"giget": "^1.2.3",
"js-yaml": "^4.1.0",
"picocolors": "^1.0.1",
"yargs": "^17.7.2"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"packageManager": "[email protected]"
}
6 changes: 4 additions & 2 deletions src/client-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ describe('client-config', () => {
'gemini-cli',
'vscode',
'claude-code',
'goose',
'zed',
]),
)
})

it('should have at least 11 clients', () => {
expect(clientNames.length).toBeGreaterThanOrEqual(11)
it('should have at least 13 clients', () => {
expect(clientNames.length).toBeGreaterThanOrEqual(13)
})
})

Expand Down
9 changes: 9 additions & 0 deletions src/client-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ function getClientPaths(): { [key: string]: ClientInstallTarget } {
configKey: 'extensions',
format: 'yaml',
},
zed: {
type: 'file',
path:
process.platform === 'win32'
? path.join(process.env.APPDATA || path.join(homeDir, 'AppData', 'Roaming'), 'Zed', 'settings.json')
: path.join(homeDir, '.config', 'zed', 'settings.json'),
configKey: 'context_servers',
},
}
}

Expand All @@ -141,6 +149,7 @@ export const clientNames = [
'vscode',
'claude-code',
'goose',
'zed',
]

// Helper function to get nested value from an object using dot notation
Expand Down
2 changes: 1 addition & 1 deletion src/commands/install.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('install command', () => {
beforeEach(() => {
jest.clearAllMocks()
Object.defineProperty(mockClientConfig, 'clientNames', {
value: ['claude', 'cline', 'cursor', 'vscode', 'warp'],
value: ['claude', 'cline', 'cursor', 'vscode', 'warp', 'goose', 'zed'],
writable: true,
})
mockClientConfig.readConfig.mockReturnValue({ mcpServers: {} })
Expand Down
9 changes: 9 additions & 0 deletions src/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ function setServerConfig(
timeout: 300,
...serverConfig, // Allow overriding defaults
}
} else if (client === 'zed') {
// Zed has a different config structure
servers[serverName] = {
source: 'custom',
command: serverConfig.command,
args: serverConfig.args,
env: {},
...serverConfig, // Allow overriding defaults
}
} else {
servers[serverName] = serverConfig
}
Expand Down
Loading