chore: scaffold esmole-mcp package
This commit is contained in:
1 parent
703df24b13
commit
c902231786
7 files changed
+90
No files matched your search
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "esmole-mcp",
|
||||
"version": "0.1.0",
|
||||
"description": "MCP server for Elasticsearch with named connections and SSH tunnels",
|
||||
"license": "MIT",
|
||||
"author": "smartass",
|
||||
"repository": { "type": "git", "url": "git+https://git.smartass.pw/admin/dbmole-mcp.git" },
|
||||
"homepage": "https://git.smartass.pw/admin/dbmole-mcp",
|
||||
"keywords": ["mcp", "model-context-protocol", "elasticsearch", "opensearch", "search", "ssh-tunnel", "stdio"],
|
||||
"type": "module",
|
||||
"bin": { "esmole-mcp": "dist/index.js" },
|
||||
"files": ["dist"],
|
||||
"engines": { "node": ">=20" },
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"dev": "tsx src/index.ts",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test:unit": "vitest run",
|
||||
"coverage": "vitest run --coverage",
|
||||
"prepublishOnly": "tsc --noEmit && tsup"
|
||||
},
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.29.0",
|
||||
"undici": "^6.21.0",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@dbmole/core": "*"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export {}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"include": ["src", "test"]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { defineConfig } from 'tsup'
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: 'esm',
|
||||
target: 'node20',
|
||||
clean: true,
|
||||
noExternal: [/@dbmole\/core/],
|
||||
banner: { js: '#!/usr/bin/env node' }
|
||||
})
|
||||
@@ -0,0 +1,13 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
include: ['test/unit/**/*.test.ts'],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
include: ['src/**'],
|
||||
exclude: ['src/index.ts'],
|
||||
thresholds: { lines: 90, functions: 90 }
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user