mcp-opensearch-dashboards 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/README.md +13 -10
  2. package/dist/cli.js +2 -1
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # mcp-opensearch-dashboards
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/mcp-opensearch-dashboards)](https://www.npmjs.com/package/mcp-opensearch-dashboards)
4
+ [![mcp-opensearch-dashboards MCP server](https://glama.ai/mcp/servers/mbaracz/mcp-opensearch-dashboards/badges/score.svg)](https://glama.ai/mcp/servers/mbaracz/mcp-opensearch-dashboards)
5
+
3
6
  MCP server for OpenSearch Dashboards: an AI agent searches your logs and pulls one trace grouped by Kubernetes namespace and app, so it can tell which service broke a request.
4
7
  It needs only the Dashboards URL, a user name and a password, so it also works where the OpenSearch API is closed.
5
8
 
@@ -86,7 +89,7 @@ patterns and runs one search on the first of them.
86
89
 
87
90
  ```sh
88
91
  OSD_MCP_SOURCES='https://dashboards.example.com/' OSD_MCP_USER='mcp-reader' \
89
- OSD_MCP_PASSWORD='your password' npx mcp-opensearch-dashboards --check
92
+ OSD_MCP_PASSWORD='your password' npx -y mcp-opensearch-dashboards --check
90
93
  ```
91
94
 
92
95
  Without a cluster at hand, the [local demo](examples/demo) starts OpenSearch and Dashboards with
@@ -94,13 +97,13 @@ sample logs and a user for the agent.
94
97
 
95
98
  ## Tools
96
99
 
97
- | Tool | What it does |
98
- | --------------------- | ----------------------------------------------------------------------- |
99
- | `list_sources` | The configured Dashboards instances |
100
- | `list_index_patterns` | Index patterns of a source, for example `logs-*` |
101
- | `list_fields` | Field names and types of an index pattern, for writing queries |
102
- | `search_logs` | Lines matching a query, a time range, or both, newest first |
103
- | `get_trace` | The lines of one trace, oldest first, grouped by namespace and then app |
100
+ | Tool | What it does |
101
+ | --------------------- | ------------------------------------------------------------------------- |
102
+ | `list_sources` | The configured Dashboards instances |
103
+ | `list_index_patterns` | Index patterns of a source, for example `logs-*` |
104
+ | `list_fields` | Field names and types of an index pattern, up to 300, for writing queries |
105
+ | `search_logs` | Lines matching a query, a time range, or both, newest first |
106
+ | `get_trace` | The lines of one trace, oldest first, grouped by namespace and then app |
104
107
 
105
108
  `search_logs` takes a Lucene query (`query_string`) and time bounds as ISO 8601 or date math
106
109
  (`now-1h`). It is the syntax of the Dashboards search bar with DQL switched off, so write `AND`,
@@ -121,7 +124,7 @@ These variables apply to every source in `OSD_MCP_SOURCES`.
121
124
  | `OSD_MCP_USER` | required | User name |
122
125
  | `OSD_MCP_PASSWORD` | required | Password |
123
126
  | `OSD_MCP_TENANT` | `global` | `global` or `private` |
124
- | `OSD_MCP_TIMEOUT_MS` | `30000` | Per request |
127
+ | `OSD_MCP_TIMEOUT_MS` | `30000` | Per request, from 1000 to 300000 |
125
128
  | `OSD_MCP_ALLOW_SELF_SIGNED` | `false` | `true` skips TLS certificate checks |
126
129
  | `OSD_MCP_TIME_FIELD` | `@timestamp` | Date field for time ranges and ordering |
127
130
 
@@ -229,6 +232,6 @@ by namespace and app, with field names you can configure. Pick another server wh
229
232
  | Server | Reaches the data through | Pick it when |
230
233
  | ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------- |
231
234
  | [opensearch-mcp-server-py](https://github.com/opensearch-project/opensearch-mcp-server-py), by the OpenSearch project | The OpenSearch REST API | The agent can reach the API. It covers much more than logs, supports AWS IAM, and can also write. |
232
- | [In-cluster MCP server](https://docs.opensearch.org/latest/ml-commons-plugin/mcp/in-cluster-mcp-server/), part of OpenSearch | The REST API of the cluster it runs in | You run OpenSearch 3.3 or newer, can reach its API and want no extra process. |
235
+ | [In-cluster MCP server](https://docs.opensearch.org/latest/ml-commons-plugin/mcp/in-cluster-mcp-server/), part of OpenSearch | The REST API of the cluster it runs in | It needs OpenSearch 3.3 or newer and access to the API, and runs without an extra process. |
233
236
  | [opensearch-dashboard-mcp](https://pypi.org/project/opensearch-dashboard-mcp/) | Dashboards, the search endpoint behind Discover | Your account cannot use the Dev Tools console, or you need a tenant other than Global and Private. |
234
237
  | [mcp-opensearch](https://github.com/bunnyiesart/mcp-opensearch) | The Dashboards console, or the REST API | You want aggregations, PPL or alerting data, read-only. |
package/dist/cli.js CHANGED
@@ -11,7 +11,8 @@ const USAGE = `Usage: mcp-opensearch-dashboards [options]
11
11
  Runs the mcp-opensearch-dashboards MCP server on stdio. MCP clients start it themselves.
12
12
 
13
13
  Options:
14
- -c, --config <file> config file (default: $OSD_MCP_CONFIG, else ~/.config/mcp-opensearch-dashboards/config.toml)
14
+ -c, --config <file> config file (default: $OSD_MCP_CONFIG, else mcp-opensearch-dashboards/config.toml
15
+ in $XDG_CONFIG_HOME or ~/.config)
15
16
  --check log in to every source, list its index patterns, run one search, and exit
16
17
  -v, --version print the version
17
18
  -h, --help print this help
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "mcp-opensearch-dashboards",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
+ "mcpName": "io.github.mbaracz/mcp-opensearch-dashboards",
4
5
  "description": "MCP server that lets AI agents read application logs from OpenSearch Dashboards and follow a trace across Kubernetes namespaces and apps",
5
6
  "keywords": [
6
7
  "mcp",