package.json•5.09 kB
{
"name": "vscode-mcp-extension",
"displayName": "MCP Server",
"description": "Extension for the VSCode MCP Server",
"version": "0.2.0",
"publisher": "block",
"private": true,
"repository": {
"type": "git",
"url": "",
"directory": "vscode-mcp/extension"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "dist/extension.js",
"contributes": {
"commands": [
{
"command": "mcp-companion.toggleFileContext",
"title": "Toggle File in AI Context",
"category": "MCP",
"icon": "$(megaphone)"
},
{
"command": "mcp-companion.showContextFiles",
"title": "Show AI Context Files",
"category": "MCP",
"icon": "$(list-tree)"
},
{
"command": "mcp-companion.clearAllContext",
"title": "Clear All Files from AI Context",
"category": "MCP",
"icon": "$(clear-all)"
},
{
"command": "mcp-companion.removeFromContext",
"title": "Remove from AI Context",
"category": "MCP",
"icon": "$(close)"
},
{
"command": "mcp-companion.includeSelectedLines",
"title": "Include Selected Lines in AI Context",
"category": "MCP"
},
{
"command": "mcp-companion.clearLineSelections",
"title": "Clear Line Selections from AI Context",
"category": "MCP"
},
{
"command": "mcp-companion.removeLineRange",
"title": "Remove Line Range from Context",
"category": "MCP"
}
],
"menus": {
"editor/title": [
{
"command": "mcp-companion.toggleFileContext",
"group": "navigation@1",
"when": "editorIsOpen"
}
],
"view/title": [
{
"command": "mcp-companion.clearAllContext",
"when": "view == contextFilesExplorer",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "mcp-companion.removeFromContext",
"when": "viewItem == contextFile",
"group": "inline"
},
{
"command": "mcp-companion.removeLineRange",
"when": "viewItem == lineRange",
"group": "inline"
}
],
"editor/context": [
{
"command": "mcp-companion.toggleFileContext",
"group": "MCPGroup@1",
"when": "editorTextFocus"
},
{
"command": "mcp-companion.includeSelectedLines",
"group": "MCPGroup@2",
"when": "editorHasSelection"
},
{
"command": "mcp-companion.clearLineSelections",
"group": "MCPGroup@3",
"when": "editorTextFocus"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "mcp-sidebar",
"title": "MCP Companion",
"icon": "$(symbol-keyword)"
}
]
},
"views": {
"mcp-sidebar": [
{
"id": "contextFilesExplorer",
"name": "AI Context Files",
"icon": "$(symbol-file)",
"contextualTitle": "AI Context Files"
},
{
"id": "mcp-settings",
"name": "Settings",
"type": "webview"
}
]
},
"keybindings": [
{
"command": "mcp-companion.toggleFileContext",
"key": "ctrl+alt+c",
"mac": "cmd+alt+c",
"when": "editorTextFocus"
},
{
"command": "mcp-companion.includeSelectedLines",
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"when": "editorHasSelection"
},
{
"command": "mcp-companion.clearLineSelections",
"key": "ctrl+alt+r",
"mac": "cmd+alt+r",
"when": "editorTextFocus"
}
],
"configuration": {
"title": "MCP Companion",
"properties": {
"mcp-companion.enableInlineButtons": {
"type": "boolean",
"default": true,
"description": "Show inline 'Add to Goose' buttons when selecting text"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"package-extension": "npm --prefix $(pwd) exec vsce package",
"publish-extension": "npm --prefix $(pwd) exec vsce publish",
"lint": "eslint src --ext ts",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"devDependencies": {
"@types/node": "^20.11.24",
"@types/vscode": "^1.44.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vitest/coverage-v8": "^1.6.1",
"@vscode/vsce": "^2.24.0",
"eslint": "^8.26.0",
"ts-loader": "^9.5.0",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^1.6.1",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.4"
},
"workspaces": []
}