@codemap-ai/mcp 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +162 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3093,6 +3093,7 @@ var require_language_utils = __commonJS({
|
|
|
3093
3093
|
};
|
|
3094
3094
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3095
3095
|
exports.BINARY_SAMPLE_BYTES = exports.MIME_TYPE_BY_EXTENSION = exports.SOURCE_LANGUAGE_BY_EXTENSION = void 0;
|
|
3096
|
+
exports.extensionFromFilename = extensionFromFilename;
|
|
3096
3097
|
exports.normalizeExtension = normalizeExtension2;
|
|
3097
3098
|
exports.inferLanguage = inferLanguage;
|
|
3098
3099
|
exports.inferMimeType = inferMimeType;
|
|
@@ -3103,6 +3104,7 @@ var require_language_utils = __commonJS({
|
|
|
3103
3104
|
var promises_1 = __require("fs/promises");
|
|
3104
3105
|
var node_path_1 = __importDefault(__require("path"));
|
|
3105
3106
|
exports.SOURCE_LANGUAGE_BY_EXTENSION = {
|
|
3107
|
+
// Source code — parsers available
|
|
3106
3108
|
ts: "TypeScript",
|
|
3107
3109
|
tsx: "TypeScript",
|
|
3108
3110
|
js: "JavaScript",
|
|
@@ -3113,9 +3115,82 @@ var require_language_utils = __commonJS({
|
|
|
3113
3115
|
java: "Java",
|
|
3114
3116
|
kt: "Kotlin",
|
|
3115
3117
|
kts: "Kotlin",
|
|
3116
|
-
po: "Gettext"
|
|
3118
|
+
po: "Gettext",
|
|
3119
|
+
// Source code — no parser yet, language label only
|
|
3120
|
+
c: "C",
|
|
3121
|
+
h: "C",
|
|
3122
|
+
cpp: "C++",
|
|
3123
|
+
cc: "C++",
|
|
3124
|
+
cxx: "C++",
|
|
3125
|
+
cs: "C#",
|
|
3126
|
+
go: "Go",
|
|
3127
|
+
rs: "Rust",
|
|
3128
|
+
rb: "Ruby",
|
|
3129
|
+
swift: "Swift",
|
|
3130
|
+
lua: "Lua",
|
|
3131
|
+
r: "R",
|
|
3132
|
+
scala: "Scala",
|
|
3133
|
+
groovy: "Groovy",
|
|
3134
|
+
ex: "Elixir",
|
|
3135
|
+
exs: "Elixir",
|
|
3136
|
+
erl: "Erlang",
|
|
3137
|
+
hs: "Haskell",
|
|
3138
|
+
clj: "Clojure",
|
|
3139
|
+
fs: "F#",
|
|
3140
|
+
fsx: "F#",
|
|
3141
|
+
// Data / config / markup
|
|
3142
|
+
json: "JSON",
|
|
3143
|
+
jsonc: "JSON",
|
|
3144
|
+
json5: "JSON",
|
|
3145
|
+
yaml: "YAML",
|
|
3146
|
+
yml: "YAML",
|
|
3147
|
+
toml: "TOML",
|
|
3148
|
+
xml: "XML",
|
|
3149
|
+
html: "HTML",
|
|
3150
|
+
htm: "HTML",
|
|
3151
|
+
css: "CSS",
|
|
3152
|
+
scss: "SCSS",
|
|
3153
|
+
sass: "Sass",
|
|
3154
|
+
less: "Less",
|
|
3155
|
+
md: "Markdown",
|
|
3156
|
+
mdx: "MDX",
|
|
3157
|
+
rst: "reStructuredText",
|
|
3158
|
+
svg: "SVG",
|
|
3159
|
+
csv: "CSV",
|
|
3160
|
+
tsv: "TSV",
|
|
3161
|
+
sql: "SQL",
|
|
3162
|
+
graphql: "GraphQL",
|
|
3163
|
+
gql: "GraphQL",
|
|
3164
|
+
proto: "Protocol Buffers",
|
|
3165
|
+
// Shell / infra
|
|
3166
|
+
sh: "Shell",
|
|
3167
|
+
bash: "Shell",
|
|
3168
|
+
zsh: "Shell",
|
|
3169
|
+
fish: "Shell",
|
|
3170
|
+
ps1: "PowerShell",
|
|
3171
|
+
bat: "Batch",
|
|
3172
|
+
cmd: "Batch",
|
|
3173
|
+
dockerfile: "Dockerfile",
|
|
3174
|
+
makefile: "Makefile",
|
|
3175
|
+
cmake: "CMake",
|
|
3176
|
+
// Other text
|
|
3177
|
+
env: "dotenv",
|
|
3178
|
+
ini: "INI",
|
|
3179
|
+
cfg: "Config",
|
|
3180
|
+
conf: "Config",
|
|
3181
|
+
txt: "Text",
|
|
3182
|
+
log: "Log",
|
|
3183
|
+
diff: "Diff",
|
|
3184
|
+
patch: "Patch"
|
|
3117
3185
|
};
|
|
3118
3186
|
exports.MIME_TYPE_BY_EXTENSION = {
|
|
3187
|
+
// Images
|
|
3188
|
+
png: "image/png",
|
|
3189
|
+
jpg: "image/jpeg",
|
|
3190
|
+
jpeg: "image/jpeg",
|
|
3191
|
+
gif: "image/gif",
|
|
3192
|
+
webp: "image/webp",
|
|
3193
|
+
// Source code
|
|
3119
3194
|
ts: "text/plain",
|
|
3120
3195
|
tsx: "text/plain",
|
|
3121
3196
|
js: "text/javascript",
|
|
@@ -3124,13 +3199,66 @@ var require_language_utils = __commonJS({
|
|
|
3124
3199
|
php: "text/x-php",
|
|
3125
3200
|
java: "text/x-java-source",
|
|
3126
3201
|
kt: "text/x-kotlin",
|
|
3127
|
-
kts: "text/x-kotlin"
|
|
3202
|
+
kts: "text/x-kotlin",
|
|
3203
|
+
c: "text/x-c",
|
|
3204
|
+
h: "text/x-c",
|
|
3205
|
+
cpp: "text/x-c++",
|
|
3206
|
+
cc: "text/x-c++",
|
|
3207
|
+
cxx: "text/x-c++",
|
|
3208
|
+
cs: "text/x-csharp",
|
|
3209
|
+
go: "text/x-go",
|
|
3210
|
+
rs: "text/x-rust",
|
|
3211
|
+
rb: "text/x-ruby",
|
|
3212
|
+
swift: "text/x-swift",
|
|
3213
|
+
lua: "text/x-lua",
|
|
3214
|
+
scala: "text/x-scala",
|
|
3215
|
+
ex: "text/x-elixir",
|
|
3216
|
+
exs: "text/x-elixir",
|
|
3217
|
+
hs: "text/x-haskell",
|
|
3218
|
+
// Data / config / markup
|
|
3219
|
+
json: "application/json",
|
|
3220
|
+
jsonc: "application/json",
|
|
3221
|
+
json5: "application/json",
|
|
3222
|
+
yaml: "text/yaml",
|
|
3223
|
+
yml: "text/yaml",
|
|
3224
|
+
toml: "application/toml",
|
|
3225
|
+
xml: "text/xml",
|
|
3226
|
+
html: "text/html",
|
|
3227
|
+
htm: "text/html",
|
|
3228
|
+
css: "text/css",
|
|
3229
|
+
scss: "text/x-scss",
|
|
3230
|
+
sass: "text/x-sass",
|
|
3231
|
+
less: "text/x-less",
|
|
3232
|
+
md: "text/markdown",
|
|
3233
|
+
mdx: "text/markdown",
|
|
3234
|
+
svg: "image/svg+xml",
|
|
3235
|
+
csv: "text/csv",
|
|
3236
|
+
sql: "application/sql",
|
|
3237
|
+
graphql: "application/graphql",
|
|
3238
|
+
gql: "application/graphql",
|
|
3239
|
+
// Shell / infra
|
|
3240
|
+
sh: "text/x-shellscript",
|
|
3241
|
+
bash: "text/x-shellscript",
|
|
3242
|
+
zsh: "text/x-shellscript",
|
|
3243
|
+
fish: "text/x-shellscript",
|
|
3244
|
+
ps1: "text/x-powershell",
|
|
3245
|
+
// Other text
|
|
3246
|
+
env: "text/plain",
|
|
3247
|
+
ini: "text/plain",
|
|
3248
|
+
txt: "text/plain",
|
|
3249
|
+
log: "text/plain",
|
|
3250
|
+
diff: "text/plain"
|
|
3128
3251
|
};
|
|
3129
3252
|
exports.BINARY_SAMPLE_BYTES = 8192;
|
|
3130
|
-
function
|
|
3253
|
+
function extensionFromFilename(fileName) {
|
|
3131
3254
|
const extension = node_path_1.default.extname(fileName).slice(1).trim().toLowerCase();
|
|
3132
3255
|
return extension || null;
|
|
3133
3256
|
}
|
|
3257
|
+
function normalizeExtension2(input) {
|
|
3258
|
+
const value = input.includes(".") ? node_path_1.default.extname(input).slice(1) : input;
|
|
3259
|
+
const normalized = value.trim().toLowerCase();
|
|
3260
|
+
return normalized || null;
|
|
3261
|
+
}
|
|
3134
3262
|
function inferLanguage(extension) {
|
|
3135
3263
|
if (!extension)
|
|
3136
3264
|
return null;
|
|
@@ -3242,7 +3370,7 @@ var require_file_discovery = __commonJS({
|
|
|
3242
3370
|
return null;
|
|
3243
3371
|
}
|
|
3244
3372
|
const name = node_path_1.default.basename(absolutePath);
|
|
3245
|
-
const extension = (0, language_utils_js_1.
|
|
3373
|
+
const extension = (0, language_utils_js_1.extensionFromFilename)(name);
|
|
3246
3374
|
const language = (0, language_utils_js_1.inferLanguage)(extension);
|
|
3247
3375
|
const mimeType = (0, language_utils_js_1.inferMimeType)(extension);
|
|
3248
3376
|
const sample = await (0, language_utils_js_1.readSampleBuffer)(absolutePath, entryStats.size);
|
|
@@ -3322,7 +3450,7 @@ var require_file_discovery = __commonJS({
|
|
|
3322
3450
|
if (!entryStats.isFile())
|
|
3323
3451
|
return;
|
|
3324
3452
|
const relativePath = normalizeRepositoryFilePath(node_path_1.default.relative(workspacePath, absolutePath).split(node_path_1.default.sep).join("/"));
|
|
3325
|
-
const extension = (0, language_utils_js_1.
|
|
3453
|
+
const extension = (0, language_utils_js_1.extensionFromFilename)(name);
|
|
3326
3454
|
const language = (0, language_utils_js_1.inferLanguage)(extension);
|
|
3327
3455
|
const mimeType = (0, language_utils_js_1.inferMimeType)(extension);
|
|
3328
3456
|
const sample = await (0, language_utils_js_1.readSampleBuffer)(absolutePath, entryStats.size);
|
|
@@ -219238,7 +219366,7 @@ var require_dist = __commonJS({
|
|
|
219238
219366
|
"../code-index/dist/index.js"(exports) {
|
|
219239
219367
|
"use strict";
|
|
219240
219368
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
219241
|
-
exports.parseWorkspaceFileSemantics = exports.normalizeWorkspaceRelativePath = exports.loadTypeScriptResolverConfigs = exports.readSampleBuffer = exports.normalizeExtension = exports.isBinaryBuffer = exports.inferMimeType = exports.inferLanguage = exports.buildFileSha256 = exports.MIME_TYPE_BY_EXTENSION = exports.SOURCE_LANGUAGE_BY_EXTENSION = exports.BINARY_SAMPLE_BYTES = exports.PARSE_TOOL_VERSION = exports.PARSE_TOOL_NAME = exports.MAX_PARSE_BYTES_BY_LANGUAGE = exports.MAX_PARSE_BYTES = exports.IGNORED_NAMES = exports.collectWorkspaceFiles = exports.collectSingleFile = void 0;
|
|
219369
|
+
exports.KOTLIN_EXTENSIONS = exports.JAVA_EXTENSIONS = exports.PYTHON_EXTENSIONS = exports.PHP_EXTENSIONS = exports.DART_EXTENSIONS = exports.JS_TS_EXTENSIONS = exports.parseWorkspaceFileSemantics = exports.normalizeWorkspaceRelativePath = exports.loadTypeScriptResolverConfigs = exports.readSampleBuffer = exports.normalizeExtension = exports.isBinaryBuffer = exports.inferMimeType = exports.inferLanguage = exports.extensionFromFilename = exports.buildFileSha256 = exports.MIME_TYPE_BY_EXTENSION = exports.SOURCE_LANGUAGE_BY_EXTENSION = exports.BINARY_SAMPLE_BYTES = exports.PARSE_TOOL_VERSION = exports.PARSE_TOOL_NAME = exports.normalizeRepositoryFilePath = exports.MAX_PARSE_BYTES_BY_LANGUAGE = exports.MAX_PARSE_BYTES = exports.isPathIgnored = exports.IGNORED_NAMES = exports.collectWorkspaceFiles = exports.collectSingleFile = void 0;
|
|
219242
219370
|
var file_discovery_js_1 = require_file_discovery();
|
|
219243
219371
|
Object.defineProperty(exports, "collectSingleFile", { enumerable: true, get: function() {
|
|
219244
219372
|
return file_discovery_js_1.collectSingleFile;
|
|
@@ -219249,12 +219377,18 @@ var require_dist = __commonJS({
|
|
|
219249
219377
|
Object.defineProperty(exports, "IGNORED_NAMES", { enumerable: true, get: function() {
|
|
219250
219378
|
return file_discovery_js_1.IGNORED_NAMES;
|
|
219251
219379
|
} });
|
|
219380
|
+
Object.defineProperty(exports, "isPathIgnored", { enumerable: true, get: function() {
|
|
219381
|
+
return file_discovery_js_1.isPathIgnored;
|
|
219382
|
+
} });
|
|
219252
219383
|
Object.defineProperty(exports, "MAX_PARSE_BYTES", { enumerable: true, get: function() {
|
|
219253
219384
|
return file_discovery_js_1.MAX_PARSE_BYTES;
|
|
219254
219385
|
} });
|
|
219255
219386
|
Object.defineProperty(exports, "MAX_PARSE_BYTES_BY_LANGUAGE", { enumerable: true, get: function() {
|
|
219256
219387
|
return file_discovery_js_1.MAX_PARSE_BYTES_BY_LANGUAGE;
|
|
219257
219388
|
} });
|
|
219389
|
+
Object.defineProperty(exports, "normalizeRepositoryFilePath", { enumerable: true, get: function() {
|
|
219390
|
+
return file_discovery_js_1.normalizeRepositoryFilePath;
|
|
219391
|
+
} });
|
|
219258
219392
|
Object.defineProperty(exports, "PARSE_TOOL_NAME", { enumerable: true, get: function() {
|
|
219259
219393
|
return file_discovery_js_1.PARSE_TOOL_NAME;
|
|
219260
219394
|
} });
|
|
@@ -219274,6 +219408,9 @@ var require_dist = __commonJS({
|
|
|
219274
219408
|
Object.defineProperty(exports, "buildFileSha256", { enumerable: true, get: function() {
|
|
219275
219409
|
return language_utils_js_1.buildFileSha256;
|
|
219276
219410
|
} });
|
|
219411
|
+
Object.defineProperty(exports, "extensionFromFilename", { enumerable: true, get: function() {
|
|
219412
|
+
return language_utils_js_1.extensionFromFilename;
|
|
219413
|
+
} });
|
|
219277
219414
|
Object.defineProperty(exports, "inferLanguage", { enumerable: true, get: function() {
|
|
219278
219415
|
return language_utils_js_1.inferLanguage;
|
|
219279
219416
|
} });
|
|
@@ -219300,6 +219437,25 @@ var require_dist = __commonJS({
|
|
|
219300
219437
|
Object.defineProperty(exports, "parseWorkspaceFileSemantics", { enumerable: true, get: function() {
|
|
219301
219438
|
return index_js_1.parseWorkspaceFileSemantics;
|
|
219302
219439
|
} });
|
|
219440
|
+
var shared_js_1 = require_shared();
|
|
219441
|
+
Object.defineProperty(exports, "JS_TS_EXTENSIONS", { enumerable: true, get: function() {
|
|
219442
|
+
return shared_js_1.JS_TS_EXTENSIONS;
|
|
219443
|
+
} });
|
|
219444
|
+
Object.defineProperty(exports, "DART_EXTENSIONS", { enumerable: true, get: function() {
|
|
219445
|
+
return shared_js_1.DART_EXTENSIONS;
|
|
219446
|
+
} });
|
|
219447
|
+
Object.defineProperty(exports, "PHP_EXTENSIONS", { enumerable: true, get: function() {
|
|
219448
|
+
return shared_js_1.PHP_EXTENSIONS;
|
|
219449
|
+
} });
|
|
219450
|
+
Object.defineProperty(exports, "PYTHON_EXTENSIONS", { enumerable: true, get: function() {
|
|
219451
|
+
return shared_js_1.PYTHON_EXTENSIONS;
|
|
219452
|
+
} });
|
|
219453
|
+
Object.defineProperty(exports, "JAVA_EXTENSIONS", { enumerable: true, get: function() {
|
|
219454
|
+
return shared_js_1.JAVA_EXTENSIONS;
|
|
219455
|
+
} });
|
|
219456
|
+
Object.defineProperty(exports, "KOTLIN_EXTENSIONS", { enumerable: true, get: function() {
|
|
219457
|
+
return shared_js_1.KOTLIN_EXTENSIONS;
|
|
219458
|
+
} });
|
|
219303
219459
|
}
|
|
219304
219460
|
});
|
|
219305
219461
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemap-ai/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CodeMap MCP server for IDE integrations",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"tsup": "^8.5.1",
|
|
23
23
|
"tsx": "^4.21.0",
|
|
24
24
|
"typescript": "~6.0.3",
|
|
25
|
-
"@codemap-ai/core": "1.
|
|
25
|
+
"@codemap-ai/core": "1.3.0"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|