Skip to content

Feat html markdown #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 21, 2025
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
31 changes: 27 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"name": "powertools-mcp",
"version": "1.0.0",
"name": "@serverless-dna/powertools-mcp",
"version": "0.2.0",
"description": "Powertools for AWS Lambda Documentation MCP Server",
"main": "dist/bundle.js",
"bin": {
"powertools-mcp": "dist/bundle.js"
},
"files": [
"dist/",
"indexes/",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/serverless-dna/powertools-mcp.git"
Expand All @@ -14,15 +26,24 @@
"scripts": {
"prebuild": "rimraf dist/* && pnpm lint",
"build": "rollup -c",
"postbuild": "chmod +x dist/bundle.js",
"test": "jest",
"lint": "eslint --config eslint.config.mjs",
"test:ci": "jest --ci",
"lint:fix": "eslint --fix --config eslint.config.mjs",
"postversion": "pnpm build",
"release": "semantic-release"
},
"keywords": [],
"author": "",
"keywords": [
"aws",
"lambda",
"powertools",
"documentation",
"mcp",
"model-context-protocol",
"llm"
],
"author": "Serverless DNA",
"license": "ISC",
"packageManager": "[email protected]",
"dependencies": {
Expand All @@ -33,6 +54,7 @@
"html-to-markdown": "^1.0.0",
"lunr": "^2.3.9",
"lunr-languages": "^1.14.0",
"turndown": "^7.2.0",
"zod": "^3.24.3",
"zod-to-json-schema": "^3.24.5"
},
Expand All @@ -47,6 +69,7 @@
"@semantic-release/github": "^11.0.1",
"@types/jest": "^29.5.14",
"@types/lunr": "^2.3.7",
"@types/turndown": "^5.0.5",
"@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^8.30.1",
"eslint": "^9.25.0",
Expand Down
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ const commonjs = require('@rollup/plugin-commonjs');
const json = require('@rollup/plugin-json');
const resolve = require('@rollup/plugin-node-resolve');
const typescript = require('@rollup/plugin-typescript');
const terser = require('@rollup/plugin-terser');

module.exports = {
input: 'src/index.ts',
output: {
file: 'dist/bundle.js',
format: 'cjs',
sourcemap: true
sourcemap: true,
banner: '#!/usr/bin/env node\n' // Add shebang line for executable
},
plugins: [
// Handle TypeScript files
Expand All @@ -32,6 +34,7 @@ module.exports = {
transformMixedEsModules: true,
}),
json(),
terser(), // Minify the output
],
// Empty external array means include everything
external: []
Expand Down
Loading