File tree Expand file tree Collapse file tree 5 files changed +9
-4
lines changed Expand file tree Collapse file tree 5 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 4949 run : npm ci
5050
5151 - name : Generate documents
52- run : npm run generate- docs && npm run format
52+ run : npm run docs
5353
5454 - name : Check if autogenerated docs differ
5555 run : |
Original file line number Diff line number Diff line change @@ -81,3 +81,7 @@ npx @modelcontextprotocol/inspector node build/src/index.js --log-file=/your/des
8181```
8282
8383You can use the ` DEBUG ` environment variable as usual to control categories that are logged.
84+
85+ ### Updating documentation
86+
87+ When adding a new tool or updating a tool name or description, make sure to run ` npm run docs ` to generate the tool reference documentation.
Original file line number Diff line number Diff line change 1- <!-- AUTO GENERATED DO NOT EDIT - run 'npm run generate- docs' to update-->
1+ <!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->
22
33# Chrome DevTools MCP Tool Reference
44
Original file line number Diff line number Diff line change 1212 "typecheck" : " tsc --noEmit" ,
1313 "format" : " eslint --cache --fix . ;prettier --write --cache ." ,
1414 "check-format" : " eslint --cache .; prettier --check --cache .;" ,
15- "generate-docs" : " npm run build && node --experimental-strip-types scripts/generate-docs.ts" ,
15+ "docs" : " npm run build && npm run docs:generate && npm run format" ,
16+ "docs:generate" : " node --experimental-strip-types scripts/generate-docs.ts" ,
1617 "start" : " npm run build && node build/src/index.js" ,
1718 "start-debug" : " DEBUG=mcp:* DEBUG_COLORS=false npm run build && node build/src/index.js" ,
1819 "test" : " npm run build && node --require ./build/tests/setup.js --test-reporter spec --test-force-exit --test 'build/tests/**/*.test.js'" ,
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ async function generateToolDocumentation(): Promise<void> {
190190 console . log ( `Found ${ tools . length } tools` ) ;
191191
192192 // Generate markdown documentation
193- let markdown = `<!-- AUTO GENERATED DO NOT EDIT - run 'npm run generate- docs' to update-->
193+ let markdown = `<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->
194194
195195# Chrome DevTools MCP Tool Reference
196196
You can’t perform that action at this time.
0 commit comments