@havesomecode/kibana-mcp-server 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/config.js +10 -7
- package/docs/project/npm-publishing.md +1 -1
- package/package.json +5 -5
package/dist/src/config.js
CHANGED
|
@@ -74,6 +74,14 @@ export const sourceDefinitionSchema = z.object({
|
|
|
74
74
|
export const sourceCatalogSchema = z.object({
|
|
75
75
|
sources: z.array(sourceDefinitionSchema).min(1),
|
|
76
76
|
});
|
|
77
|
+
function buildKibanaConfig(env) {
|
|
78
|
+
return {
|
|
79
|
+
baseUrl: env.KIBANA_BASE_URL.replace(/\/+$/, ""),
|
|
80
|
+
username: env.KIBANA_USERNAME,
|
|
81
|
+
password: env.KIBANA_PASSWORD,
|
|
82
|
+
timeoutMs: env.KIBANA_TIMEOUT_MS ?? 10000,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
77
85
|
export function resolveSourceCatalogPath(envInput = process.env) {
|
|
78
86
|
const explicitPath = envInput.KIBANA_SOURCE_CATALOG_PATH?.trim();
|
|
79
87
|
if (explicitPath) {
|
|
@@ -85,12 +93,7 @@ export function parseAppConfig(envInput, sourceCatalogInput) {
|
|
|
85
93
|
const env = bootstrapEnvSchema.parse(envInput);
|
|
86
94
|
const sourceCatalog = sourceCatalogSchema.parse(sourceCatalogInput);
|
|
87
95
|
return {
|
|
88
|
-
kibana:
|
|
89
|
-
baseUrl: env.KIBANA_BASE_URL.replace(/\/+$/, ""),
|
|
90
|
-
username: env.KIBANA_USERNAME,
|
|
91
|
-
password: env.KIBANA_PASSWORD,
|
|
92
|
-
timeoutMs: env.KIBANA_TIMEOUT_MS ?? 10000,
|
|
93
|
-
},
|
|
96
|
+
kibana: buildKibanaConfig(env),
|
|
94
97
|
sources: sourceCatalog.sources,
|
|
95
98
|
};
|
|
96
99
|
}
|
|
@@ -105,7 +108,7 @@ export async function loadConfigFromEnvironment(envInput = process.env, dependen
|
|
|
105
108
|
const sourceCatalog = await loadSourceCatalog(preferredPath === DEFAULT_RUNTIME_SOURCE_CATALOG_PATH
|
|
106
109
|
? [preferredPath, DEFAULT_STATIC_SOURCE_CATALOG_PATH]
|
|
107
110
|
: [preferredPath], readFileImpl);
|
|
108
|
-
const config = parseAppConfig(overrides, sourceCatalog);
|
|
111
|
+
const config = parseAppConfig(overrides, sourceCatalog.value);
|
|
109
112
|
return {
|
|
110
113
|
...config,
|
|
111
114
|
sourceCatalogPath: preferredPath,
|
|
@@ -39,7 +39,7 @@ After package ownership is resolved:
|
|
|
39
39
|
2. Add a trusted publisher.
|
|
40
40
|
3. Choose GitHub Actions.
|
|
41
41
|
4. Set:
|
|
42
|
-
- Organization or user: `
|
|
42
|
+
- Organization or user: `Havesomecode`
|
|
43
43
|
- Repository: `kibana-mcp-server`
|
|
44
44
|
- Workflow filename: `release.yml`
|
|
45
45
|
- Environment name: leave blank unless GitHub environments are added later
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@havesomecode/kibana-mcp-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Read-only MCP server for Kibana-backed log investigation and schema-aware querying",
|
|
6
|
-
"homepage": "https://github.com/
|
|
6
|
+
"homepage": "https://github.com/Havesomecode/kibana-mcp-server",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/Havesomecode/kibana-mcp-server.git"
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "dist/src/mcp_entry.js",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@biomejs/biome": "^1.8.3",
|
|
57
57
|
"@commitlint/cli": "^20.1.0",
|
|
58
58
|
"@commitlint/config-conventional": "^20.0.0",
|
|
59
|
-
"@types/node": "^24.0.0",
|
|
60
59
|
"semantic-release": "^25.0.1",
|
|
60
|
+
"@types/node": "^25.5.2",
|
|
61
61
|
"tsx": "^4.0.0",
|
|
62
62
|
"typescript": "^5.7.0",
|
|
63
|
-
"vitest": "^
|
|
63
|
+
"vitest": "^4.1.3"
|
|
64
64
|
}
|
|
65
65
|
}
|