chore: Update environment configuration and package dependencies for MCP server
- Change MCP_SERVER in .env.example to use port 7123 - Add USE_STDIO_TRANSPORT flag in .env.example for stdio transport mode - Update bun.lock to include new dependencies: cors, express, ajv, and their type definitions - Add new scripts for building and running the MCP server with stdio transport - Introduce PUBLISHING.md for npm publishing guidelines - Enhance README with detailed setup instructions and tool descriptions
This commit is contained in:
48
webpack.config.cjs
Normal file
48
webpack.config.cjs
Normal file
@@ -0,0 +1,48 @@
|
||||
const path = require('path');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
target: 'node',
|
||||
entry: './src/utils/stdio-transport.ts',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'stdio-transport.js',
|
||||
library: {
|
||||
type: 'commonjs2'
|
||||
}
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
extensionAlias: {
|
||||
'.js': ['.js', '.ts'],
|
||||
'.cjs': ['.cjs', '.cts'],
|
||||
'.mjs': ['.mjs', '.mts']
|
||||
}
|
||||
},
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [new TerserPlugin({
|
||||
terserOptions: {
|
||||
format: {
|
||||
comments: false,
|
||||
},
|
||||
},
|
||||
extractComments: false,
|
||||
})],
|
||||
},
|
||||
externals: {
|
||||
// Mark node modules as external to reduce bundle size
|
||||
'express': 'commonjs express',
|
||||
'winston': 'commonjs winston'
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user