syntax-map-mcp 0.1.2 → 0.1.4

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/CHANGELOG.md CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.4 - 2026-05-04
6
+
7
+ - `build_context` 인덱스 검색 metadata에 `summarizedFiles`와 `omittedFiles`를 추가했습니다.
8
+ - `build_context`에 `maxFiles` 옵션을 추가해 인덱스 검색 기반 파일 요약 수를 제한할 수 있게 했습니다.
9
+ - 인덱스 기반 심볼/정의/참조 검색 결과를 소스 위치 기준으로 안정 정렬하도록 했습니다.
10
+ - `build_context`의 인덱스 검색 응답에 `metadata`를 추가해 stale 상태와 refresh 여부를 확인할 수 있게 했습니다.
11
+ - `build_context.indexedSearch`가 symbols 모드와 references 모드를 모두 지원하도록 확장했습니다.
12
+ - README의 도구별 입력/응답 예시를 `docs/tools.md`로 분리했습니다.
13
+ - npm 패키지에 `docs/tools.md`를 포함해 README의 도구 레퍼런스 링크가 패키지 안에서도 유지되도록 했습니다.
14
+
15
+ ## 0.1.3 - 2026-05-04
16
+
17
+ - README에 `summarize_file`, 인덱스 검색 도구, `get_index_status`의 입력/응답 예시를 추가했습니다.
18
+ - Python 파일의 `summarize_file.exports`가 top-level `__all__`을 기준으로 반환되는 동작을 문서화했습니다.
19
+ - 배포 전 `typecheck`, 테스트, 빌드, 패키징 dry-run을 한 번에 실행하는 `release:check` 스크립트를 추가했습니다.
20
+ - Python 파일의 top-level `__all__` 문자열 이름을 `summarize_file.exports`로 반환하도록 했습니다.
21
+ - 인덱스 검색 도구에 `includePreview` 옵션을 추가해 `previewMarkdown`을 반환할 수 있게 했습니다.
22
+ - `build_context`가 `indexedSearch` 입력으로 인덱스 검색 결과 기반 markdown 컨텍스트를 만들 수 있게 했습니다.
23
+ - 패키지 버전을 `0.1.3`으로 올렸습니다.
24
+
5
25
  ## 0.1.2 - 2026-05-04
6
26
 
7
27
  - `summarize_file`의 `exports` 추출을 AST 기반으로 변경해 문자열 내부 텍스트가 export로 잘못 반환되지 않도록 했습니다.
package/README.md CHANGED
@@ -47,10 +47,16 @@ npx -y syntax-map-mcp --workspace-root /path/to/workspace
47
47
 
48
48
  `index_workspace`는 `workspaceRoot` 아래의 `.syntax-map-mcp/index.sqlite`에 인덱스를 저장합니다. 인덱싱 대상은 `.js`, `.jsx`, `.ts`, `.tsx`, `.py` 파일이며, `.git`, `.syntax-map-mcp`, `dist`, `node_modules` 디렉터리는 제외합니다.
49
49
 
50
- 파일 변경 여부는 `mtimeMs`와 `size`로 판단합니다. 다시 `index_workspace`를 호출하면 변경된 파일만 재파싱하고, 삭제된 파일은 인덱스에서 제거합니다. `search_symbols`, `find_indexed_definition`, `find_indexed_references`는 `isStale`, `staleFiles`, `refreshed`를 반환해 검색 결과가 최신 인덱스 기반인지 알려줍니다. 세 도구에 `refreshIfStale: true`를 전달하면 stale 파일이 있을 때 먼저 인덱스를 갱신한 뒤 검색합니다. 인덱스 검색 도구는 인덱스에 저장된 위치를 조회한 뒤 현재 파일에서 해당 줄 snippet을 읽어 반환합니다. `contextBefore`, `contextAfter`를 0-10 사이 정수로 전달하면 snippet 주변 라인도 함께 반환합니다. 자동 watch 모드는 아직 포함하지 않았습니다.
50
+ 파일 변경 여부는 `mtimeMs`와 `size`로 판단합니다. 다시 `index_workspace`를 호출하면 변경된 파일만 재파싱하고, 삭제된 파일은 인덱스에서 제거합니다. `search_symbols`, `find_indexed_definition`, `find_indexed_references`는 `isStale`, `staleFiles`, `refreshed`를 반환해 검색 결과가 최신 인덱스 기반인지 알려줍니다. 세 도구에 `refreshIfStale: true`를 전달하면 stale 파일이 있을 때 먼저 인덱스를 갱신한 뒤 검색합니다. 인덱스 검색 도구는 인덱스에 저장된 위치를 조회한 뒤 현재 파일에서 해당 줄 snippet을 읽어 반환합니다. `contextBefore`, `contextAfter`를 0-10 사이 정수로 전달하면 snippet 주변 라인도 함께 반환합니다. `includePreview: true`를 전달하면 `path:line` 헤더와 코드블록으로 구성된 `previewMarkdown`도 함께 반환합니다. 자동 watch 모드는 아직 포함하지 않았습니다.
51
51
 
52
52
  `summarize_file`은 `sources` 필드로 `symbols`, `imports`, `exports`가 어떤 방식으로 추출되었는지 반환합니다.
53
53
 
54
+ Python은 JavaScript/TypeScript처럼 명시적인 `export` 문법이 없으므로, top-level `__all__`에 선언된 문자열 이름을 `exports`로 반환합니다. `__all__`이 없으면 `exports`는 빈 배열입니다.
55
+
56
+ ## 도구 레퍼런스
57
+
58
+ 도구별 입력과 응답 예시는 [docs/tools.md](./docs/tools.md)를 참고하세요.
59
+
54
60
  ## 변경 이력
55
61
 
56
62
  버전별 변경 내용은 [CHANGELOG.md](./CHANGELOG.md)를 참고하세요.
@@ -1,5 +1,16 @@
1
+ import { findIndexedReferences, searchSymbols } from './index.js';
1
2
  import { summarizeFile } from './summary.js';
2
3
  export async function buildContext(workspace, input) {
4
+ if (input.indexedSearch) {
5
+ return buildIndexedSearchContext(workspace, {
6
+ detail: input.detail,
7
+ maxFiles: input.maxFiles,
8
+ indexedSearch: input.indexedSearch
9
+ });
10
+ }
11
+ if (!input.paths) {
12
+ return failure('Either paths or indexedSearch must be provided');
13
+ }
3
14
  const summaries = [];
4
15
  for (const filePath of input.paths) {
5
16
  const summary = await summarizeFile(workspace, filePath);
@@ -12,8 +23,101 @@ export async function buildContext(workspace, input) {
12
23
  markdown: renderMarkdown(summaries, input.detail)
13
24
  };
14
25
  }
15
- function renderMarkdown(summaries, detail) {
16
- return ['# Code Context', ...summaries.map(summary => renderFile(summary, detail))].join('\n\n');
26
+ async function buildIndexedSearchContext(workspace, input) {
27
+ const { detail, indexedSearch } = input;
28
+ if (indexedSearch.mode === 'references') {
29
+ return buildIndexedReferenceContext(workspace, { detail, maxFiles: input.maxFiles, indexedSearch });
30
+ }
31
+ const search = await searchSymbols(workspace, {
32
+ ...indexedSearch,
33
+ includePreview: true
34
+ });
35
+ if (!search.ok)
36
+ return search;
37
+ const allPaths = [...new Set(search.symbols.map(symbol => symbol.path))];
38
+ const paths = limitPaths(allPaths, input.maxFiles);
39
+ const summaries = [];
40
+ for (const filePath of paths) {
41
+ const summary = await summarizeFile(workspace, filePath);
42
+ if (!summary.ok)
43
+ return summary;
44
+ summaries.push(summary);
45
+ }
46
+ return {
47
+ ok: true,
48
+ markdown: renderMarkdown(summaries, detail, renderIndexedSearchResults(search.symbols)),
49
+ metadata: {
50
+ indexedSearchMode: 'symbols',
51
+ indexPath: search.indexPath,
52
+ isStale: search.isStale,
53
+ staleFiles: search.staleFiles,
54
+ refreshed: search.refreshed,
55
+ total: search.total,
56
+ summarizedFiles: paths.length,
57
+ omittedFiles: Math.max(0, allPaths.length - paths.length)
58
+ }
59
+ };
60
+ }
61
+ async function buildIndexedReferenceContext(workspace, input) {
62
+ const search = await findIndexedReferences(workspace, {
63
+ ...input.indexedSearch,
64
+ includePreview: true
65
+ });
66
+ if (!search.ok)
67
+ return search;
68
+ const allPaths = [...new Set(search.references.map(reference => reference.path))];
69
+ const paths = limitPaths(allPaths, input.maxFiles);
70
+ const summaries = [];
71
+ for (const filePath of paths) {
72
+ const summary = await summarizeFile(workspace, filePath);
73
+ if (!summary.ok)
74
+ return summary;
75
+ summaries.push(summary);
76
+ }
77
+ return {
78
+ ok: true,
79
+ markdown: renderMarkdown(summaries, input.detail, renderIndexedSearchResults(search.references)),
80
+ metadata: {
81
+ indexedSearchMode: 'references',
82
+ indexPath: search.indexPath,
83
+ isStale: search.isStale,
84
+ staleFiles: search.staleFiles,
85
+ refreshed: search.refreshed,
86
+ total: search.total,
87
+ summarizedFiles: paths.length,
88
+ omittedFiles: Math.max(0, allPaths.length - paths.length)
89
+ }
90
+ };
91
+ }
92
+ function renderMarkdown(summaries, detail, intro) {
93
+ return ['# Code Context', intro, ...summaries.map(summary => renderFile(summary, detail))]
94
+ .filter(Boolean)
95
+ .join('\n\n');
96
+ }
97
+ function limitPaths(paths, maxFiles) {
98
+ if (maxFiles === undefined)
99
+ return paths;
100
+ return paths.slice(0, maxFiles);
101
+ }
102
+ function renderIndexedSearchResults(symbols) {
103
+ const lines = ['## Indexed Search Results'];
104
+ if (symbols.length === 0) {
105
+ lines.push('', '- None');
106
+ return lines.join('\n');
107
+ }
108
+ for (const symbol of symbols) {
109
+ lines.push('', `### ${symbol.name}`, '', symbol.previewMarkdown ?? symbol.path);
110
+ }
111
+ return lines.join('\n');
112
+ }
113
+ function failure(message) {
114
+ return {
115
+ ok: false,
116
+ error: {
117
+ code: 'INDEX_ERROR',
118
+ message
119
+ }
120
+ };
17
121
  }
18
122
  function renderFile(summary, detail) {
19
123
  const lines = [
@@ -253,23 +253,39 @@ function sqlLikePattern(query) {
253
253
  function rowValue(row, key) {
254
254
  return row[key];
255
255
  }
256
- function snippetDetails(text, row, options) {
256
+ function snippetDetails(path, language, text, row, options) {
257
257
  if (text === undefined)
258
258
  return { snippet: '' };
259
259
  const lines = text.split(/\r?\n/);
260
260
  const snippet = lines[row] ?? '';
261
261
  const beforeCount = options.contextBefore ?? 0;
262
262
  const afterCount = options.contextAfter ?? 0;
263
- if (beforeCount === 0 && afterCount === 0) {
264
- return { snippet };
265
- }
266
- return {
267
- snippet,
268
- context: {
263
+ const context = beforeCount === 0 && afterCount === 0
264
+ ? undefined
265
+ : {
269
266
  before: lines.slice(Math.max(0, row - beforeCount), row),
270
267
  after: lines.slice(row + 1, row + 1 + afterCount)
271
- }
268
+ };
269
+ const details = {
270
+ snippet,
272
271
  };
272
+ if (context)
273
+ details.context = context;
274
+ if (options.includePreview) {
275
+ details.previewMarkdown = previewMarkdown(path, language, row, snippet, context);
276
+ }
277
+ return details;
278
+ }
279
+ function previewMarkdown(filePath, language, row, snippet, context) {
280
+ return [
281
+ `${filePath}:${row + 1}`,
282
+ '',
283
+ `\`\`\`${language}`,
284
+ ...(context?.before ?? []),
285
+ snippet,
286
+ ...(context?.after ?? []),
287
+ '```'
288
+ ].join('\n');
273
289
  }
274
290
  export async function indexWorkspace(workspace) {
275
291
  const indexPath = indexPathForWorkspace(workspace);
@@ -397,7 +413,7 @@ export async function findIndexedDefinitions(workspace, input) {
397
413
  selection_end_column
398
414
  FROM symbols
399
415
  WHERE ${where.join(' AND ')}
400
- ORDER BY file_path ASC, start_row ASC, name ASC
416
+ ORDER BY file_path ASC, start_row ASC, start_column ASC, name ASC
401
417
  LIMIT ?
402
418
  `, params);
403
419
  const definitions = [];
@@ -442,7 +458,7 @@ export async function findIndexedDefinitions(workspace, input) {
442
458
  column: Number(selectionEndColumn)
443
459
  }
444
460
  },
445
- ...snippetDetails(file.ok ? file.text : undefined, startRow, input)
461
+ ...snippetDetails(filePath, rowValue(row, 'language'), file.ok ? file.text : undefined, startRow, input)
446
462
  });
447
463
  }
448
464
  }
@@ -484,7 +500,7 @@ export async function findIndexedReferences(workspace, input) {
484
500
  end_column
485
501
  FROM reference_captures
486
502
  WHERE name = ?
487
- ORDER BY file_path ASC, start_row ASC
503
+ ORDER BY file_path ASC, start_row ASC, start_column ASC
488
504
  LIMIT ?
489
505
  `, [input.name, limit]);
490
506
  const references = [];
@@ -509,7 +525,7 @@ export async function findIndexedReferences(workspace, input) {
509
525
  column: Number(rowValue(row, 'end_column'))
510
526
  }
511
527
  },
512
- ...snippetDetails(file.ok ? file.text : undefined, startRow, input)
528
+ ...snippetDetails(filePath, rowValue(row, 'language'), file.ok ? file.text : undefined, startRow, input)
513
529
  });
514
530
  }
515
531
  }
@@ -563,7 +579,7 @@ export async function searchSymbols(workspace, input) {
563
579
  selection_end_column
564
580
  FROM symbols
565
581
  WHERE ${where.join(' AND ')}
566
- ORDER BY name ASC, file_path ASC, start_row ASC
582
+ ORDER BY file_path ASC, start_row ASC, start_column ASC, name ASC
567
583
  LIMIT ?
568
584
  `, params);
569
585
  const symbols = [];
@@ -608,7 +624,7 @@ export async function searchSymbols(workspace, input) {
608
624
  column: Number(selectionEndColumn)
609
625
  }
610
626
  },
611
- ...snippetDetails(file.ok ? file.text : undefined, startRow, input)
627
+ ...snippetDetails(filePath, rowValue(row, 'language'), file.ok ? file.text : undefined, startRow, input)
612
628
  });
613
629
  }
614
630
  }
@@ -43,6 +43,9 @@ function isImportNode(language, nodeType) {
43
43
  }
44
44
  }
45
45
  function findExports(parsed) {
46
+ if (parsed.language === 'python') {
47
+ return findPythonAllExports(parsed);
48
+ }
46
49
  return parsed.tree.rootNode.namedChildren
47
50
  .filter(node => isExportNode(parsed.language, node.type))
48
51
  .map(node => firstLine(node.text));
@@ -57,6 +60,25 @@ function isExportNode(language, nodeType) {
57
60
  return false;
58
61
  }
59
62
  }
63
+ function findPythonAllExports(parsed) {
64
+ return parsed.tree.rootNode.namedChildren.flatMap(node => pythonAllExportNames(node));
65
+ }
66
+ function pythonAllExportNames(node) {
67
+ if (node.type !== 'expression_statement')
68
+ return [];
69
+ const assignment = node.namedChildren[0];
70
+ if (!assignment || assignment.type !== 'assignment')
71
+ return [];
72
+ const [target, value] = assignment.namedChildren;
73
+ if (!target || !value || target.type !== 'identifier' || target.text !== '__all__')
74
+ return [];
75
+ if (value.type !== 'list' && value.type !== 'tuple')
76
+ return [];
77
+ return value.namedChildren
78
+ .filter(child => child.type === 'string')
79
+ .map(child => child.namedChildren.find(part => part.type === 'string_content')?.text ?? '')
80
+ .filter(Boolean);
81
+ }
60
82
  function firstLine(text) {
61
83
  return text.split(/\r\n|\r|\n/, 1)[0].trim();
62
84
  }
package/dist/tools.js CHANGED
@@ -146,8 +146,30 @@ export function registerTools(server, workspace) {
146
146
  title: 'Build context',
147
147
  description: 'Build markdown context for supported source files.',
148
148
  inputSchema: {
149
- paths: z.array(z.string()),
150
- detail: detailSchema
149
+ paths: z.array(z.string()).optional(),
150
+ detail: detailSchema,
151
+ maxFiles: z.number().int().positive().max(100).optional(),
152
+ indexedSearch: z
153
+ .union([
154
+ z.object({
155
+ mode: z.literal('symbols').optional(),
156
+ query: z.string(),
157
+ kinds: z.array(symbolKindSchema).optional(),
158
+ limit: z.number().int().positive().max(500).optional(),
159
+ refreshIfStale: z.boolean().optional(),
160
+ contextBefore: contextLineCountSchema.optional(),
161
+ contextAfter: contextLineCountSchema.optional()
162
+ }),
163
+ z.object({
164
+ mode: z.literal('references'),
165
+ name: z.string(),
166
+ limit: z.number().int().positive().max(500).optional(),
167
+ refreshIfStale: z.boolean().optional(),
168
+ contextBefore: contextLineCountSchema.optional(),
169
+ contextAfter: contextLineCountSchema.optional()
170
+ })
171
+ ])
172
+ .optional()
151
173
  }
152
174
  }, handlers.buildContext);
153
175
  server.registerTool('index_workspace', {
@@ -164,7 +186,8 @@ export function registerTools(server, workspace) {
164
186
  limit: z.number().int().positive().max(500).optional(),
165
187
  refreshIfStale: z.boolean().optional(),
166
188
  contextBefore: contextLineCountSchema.optional(),
167
- contextAfter: contextLineCountSchema.optional()
189
+ contextAfter: contextLineCountSchema.optional(),
190
+ includePreview: z.boolean().optional()
168
191
  }
169
192
  }, handlers.searchSymbols);
170
193
  server.registerTool('find_indexed_definition', {
@@ -176,7 +199,8 @@ export function registerTools(server, workspace) {
176
199
  limit: z.number().int().positive().max(500).optional(),
177
200
  refreshIfStale: z.boolean().optional(),
178
201
  contextBefore: contextLineCountSchema.optional(),
179
- contextAfter: contextLineCountSchema.optional()
202
+ contextAfter: contextLineCountSchema.optional(),
203
+ includePreview: z.boolean().optional()
180
204
  }
181
205
  }, handlers.findIndexedDefinition);
182
206
  server.registerTool('find_indexed_references', {
@@ -187,7 +211,8 @@ export function registerTools(server, workspace) {
187
211
  limit: z.number().int().positive().max(500).optional(),
188
212
  refreshIfStale: z.boolean().optional(),
189
213
  contextBefore: contextLineCountSchema.optional(),
190
- contextAfter: contextLineCountSchema.optional()
214
+ contextAfter: contextLineCountSchema.optional(),
215
+ includePreview: z.boolean().optional()
191
216
  }
192
217
  }, handlers.findIndexedReferences);
193
218
  server.registerTool('get_index_status', {
package/docs/tools.md ADDED
@@ -0,0 +1,208 @@
1
+ # Tool Reference
2
+
3
+ syntax-map-mcp의 주요 MCP 도구 입력과 응답 예시입니다. 응답 예시는 핵심 필드만 보여줍니다.
4
+
5
+ ## summarize_file
6
+
7
+ 입력:
8
+
9
+ ```json
10
+ {
11
+ "path": "src/index.ts"
12
+ }
13
+ ```
14
+
15
+ 응답 일부:
16
+
17
+ ```json
18
+ {
19
+ "ok": true,
20
+ "path": "src/index.ts",
21
+ "language": "typescript",
22
+ "imports": ["import { createServer } from './server.js';"],
23
+ "exports": ["export async function main() {"],
24
+ "sources": {
25
+ "symbols": "ast",
26
+ "imports": "ast",
27
+ "exports": "ast"
28
+ }
29
+ }
30
+ ```
31
+
32
+ ## search_symbols
33
+
34
+ 입력:
35
+
36
+ ```json
37
+ {
38
+ "query": "UserService",
39
+ "kinds": ["class"],
40
+ "refreshIfStale": true,
41
+ "contextBefore": 2,
42
+ "contextAfter": 2,
43
+ "includePreview": true
44
+ }
45
+ ```
46
+
47
+ 응답 일부:
48
+
49
+ ```json
50
+ {
51
+ "ok": true,
52
+ "isStale": false,
53
+ "refreshed": true,
54
+ "symbols": [
55
+ {
56
+ "path": "src/users.ts",
57
+ "name": "UserService",
58
+ "kind": "class",
59
+ "snippet": "export class UserService {",
60
+ "context": {
61
+ "before": ["export type UserId = User['id'];", ""],
62
+ "after": [" constructor(private readonly users: User[]) {}", ""]
63
+ },
64
+ "previewMarkdown": "src/users.ts:8\n\n```typescript\nexport type UserId = User['id'];\n\nexport class UserService {\n constructor(private readonly users: User[]) {}\n\n```"
65
+ }
66
+ ]
67
+ }
68
+ ```
69
+
70
+ ## find_indexed_definition
71
+
72
+ 입력:
73
+
74
+ ```json
75
+ {
76
+ "name": "UserService",
77
+ "refreshIfStale": true,
78
+ "contextBefore": 1,
79
+ "contextAfter": 1
80
+ }
81
+ ```
82
+
83
+ 응답 일부:
84
+
85
+ ```json
86
+ {
87
+ "ok": true,
88
+ "total": 1,
89
+ "definitions": [
90
+ {
91
+ "path": "src/users.ts",
92
+ "name": "UserService",
93
+ "kind": "class",
94
+ "snippet": "export class UserService {"
95
+ }
96
+ ]
97
+ }
98
+ ```
99
+
100
+ ## find_indexed_references
101
+
102
+ 입력:
103
+
104
+ ```json
105
+ {
106
+ "name": "formatUser",
107
+ "limit": 20,
108
+ "refreshIfStale": true
109
+ }
110
+ ```
111
+
112
+ 응답 일부:
113
+
114
+ ```json
115
+ {
116
+ "ok": true,
117
+ "references": [
118
+ {
119
+ "path": "src/users.ts",
120
+ "name": "formatUser",
121
+ "nodeType": "identifier",
122
+ "snippet": "formatUser(defaultUser);"
123
+ }
124
+ ]
125
+ }
126
+ ```
127
+
128
+ ## build_context
129
+
130
+ 파일 경로 기반 입력:
131
+
132
+ ```json
133
+ {
134
+ "paths": ["src/users.ts", "src/index.ts"],
135
+ "detail": "compact"
136
+ }
137
+ ```
138
+
139
+ 인덱스 심볼 검색 기반 입력:
140
+
141
+ ```json
142
+ {
143
+ "detail": "compact",
144
+ "maxFiles": 3,
145
+ "indexedSearch": {
146
+ "query": "UserService",
147
+ "kinds": ["class"],
148
+ "refreshIfStale": true,
149
+ "contextBefore": 1,
150
+ "contextAfter": 1
151
+ }
152
+ }
153
+ ```
154
+
155
+ 인덱스 참조 검색 기반 입력:
156
+
157
+ ```json
158
+ {
159
+ "detail": "compact",
160
+ "maxFiles": 3,
161
+ "indexedSearch": {
162
+ "mode": "references",
163
+ "name": "formatUser",
164
+ "refreshIfStale": true,
165
+ "contextBefore": 1,
166
+ "contextAfter": 1
167
+ }
168
+ }
169
+ ```
170
+
171
+ 응답 일부:
172
+
173
+ ```json
174
+ {
175
+ "ok": true,
176
+ "metadata": {
177
+ "indexedSearchMode": "symbols",
178
+ "indexPath": "/workspace/.syntax-map-mcp/index.sqlite",
179
+ "isStale": false,
180
+ "staleFiles": 0,
181
+ "refreshed": true,
182
+ "total": 1,
183
+ "summarizedFiles": 1,
184
+ "omittedFiles": 0
185
+ },
186
+ "markdown": "# Code Context\n\n## Indexed Search Results\n\n### UserService\n\nsrc/users.ts:8\n\n```typescript\nexport class UserService {\n```"
187
+ }
188
+ ```
189
+
190
+ ## get_index_status
191
+
192
+ 입력:
193
+
194
+ ```json
195
+ {}
196
+ ```
197
+
198
+ 응답 일부:
199
+
200
+ ```json
201
+ {
202
+ "ok": true,
203
+ "indexedFiles": 12,
204
+ "symbols": 84,
205
+ "references": 231,
206
+ "staleFiles": 0
207
+ }
208
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syntax-map-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Tree-sitter based code analysis MCP server",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "files": [
19
19
  "dist",
20
+ "docs/tools.md",
20
21
  "README.md",
21
22
  "CHANGELOG.md",
22
23
  "LICENSE"
@@ -29,7 +30,8 @@
29
30
  "build": "tsc -p tsconfig.json",
30
31
  "test": "vitest run",
31
32
  "test:watch": "vitest",
32
- "typecheck": "tsc -p tsconfig.json --noEmit"
33
+ "typecheck": "tsc -p tsconfig.json --noEmit",
34
+ "release:check": "npm run typecheck && npm test && npm run build && npm pack --dry-run"
33
35
  },
34
36
  "dependencies": {
35
37
  "@modelcontextprotocol/sdk": "^1.29.0",