chore: Update configuration and dependencies for enhanced MCP server functionality

- Add RATE_LIMIT_MAX_AUTH_REQUESTS to .env.example for improved rate limiting
- Update bun.lock and package.json to include new dependencies: @anthropic-ai/sdk, express-rate-limit, and their type definitions
- Modify bunfig.toml for build settings and output configuration
- Refactor src/config.ts to incorporate rate limiting settings
- Implement security middleware for enhanced request validation and sanitization
- Introduce rate limiting middleware for API and authentication endpoints
- Add tests for configuration validation and rate limiting functionality
This commit is contained in:
jango-blockchained
2025-03-23 13:00:02 +01:00
parent 2d5ae034c9
commit febc9bd5b5
20 changed files with 1347 additions and 532 deletions

View File

@@ -19,10 +19,34 @@ collectCoverageFrom = [
]
[build]
target = "node"
target = "bun"
outdir = "./dist"
minify = true
minify = {
whitespace = true,
syntax = true,
identifiers = true,
module = true
}
sourcemap = "external"
entry = ["./src/index.ts", "./src/stdio-server.ts"]
splitting = true
naming = "[name].[hash].[ext]"
publicPath = "/assets/"
define = {
"process.env.NODE_ENV": "process.env.NODE_ENV"
}
[build.javascript]
platform = "node"
format = "esm"
treeshaking = true
packages = {
external = ["bun:*"]
}
[build.typescript]
dts = true
typecheck = true
[install]
production = false
@@ -48,6 +72,12 @@ reload = true
[performance]
gc = true
optimize = true
jit = true
smol = true
compact = true
[test.env]
NODE_ENV = "test"
NODE_ENV = "test"
[watch]
ignore = ["**/node_modules/**", "**/dist/**", "**/.git/**"]