log10x-mcp 1.0.0 → 1.6.2
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/LICENSE +190 -21
- package/README.md +234 -41
- package/build/index.js +587 -92
- package/build/index.js.map +1 -1
- package/build/lib/advisor/dest-resolve.d.ts +22 -0
- package/build/lib/advisor/dest-resolve.js +34 -0
- package/build/lib/advisor/dest-resolve.js.map +1 -0
- package/build/lib/advisor/mode.d.ts +89 -0
- package/build/lib/advisor/mode.js +324 -0
- package/build/lib/advisor/mode.js.map +1 -0
- package/build/lib/advisor/render.d.ts +11 -0
- package/build/lib/advisor/render.js +184 -0
- package/build/lib/advisor/render.js.map +1 -0
- package/build/lib/advisor/reporter-forwarders.d.ts +115 -0
- package/build/lib/advisor/reporter-forwarders.js +806 -0
- package/build/lib/advisor/reporter-forwarders.js.map +1 -0
- package/build/lib/advisor/reporter.d.ts +75 -0
- package/build/lib/advisor/reporter.js +407 -0
- package/build/lib/advisor/reporter.js.map +1 -0
- package/build/lib/advisor/retriever.d.ts +51 -0
- package/build/lib/advisor/retriever.js +333 -0
- package/build/lib/advisor/retriever.js.map +1 -0
- package/build/lib/advisor/types.d.ts +141 -0
- package/build/lib/advisor/types.js +11 -0
- package/build/lib/advisor/types.js.map +1 -0
- package/build/lib/aggregator.d.ts +44 -0
- package/build/lib/aggregator.js +117 -0
- package/build/lib/aggregator.js.map +1 -0
- package/build/lib/ai-prettify.d.ts +51 -0
- package/build/lib/ai-prettify.js +130 -0
- package/build/lib/ai-prettify.js.map +1 -0
- package/build/lib/api.d.ts +142 -0
- package/build/lib/api.js +339 -14
- package/build/lib/api.js.map +1 -1
- package/build/lib/auth-api.d.ts +21 -0
- package/build/lib/auth-api.js +37 -0
- package/build/lib/auth-api.js.map +1 -0
- package/build/lib/cli-output-parser.d.ts +71 -0
- package/build/lib/cli-output-parser.js +253 -0
- package/build/lib/cli-output-parser.js.map +1 -0
- package/build/lib/concurrency.d.ts +26 -0
- package/build/lib/concurrency.js +74 -0
- package/build/lib/concurrency.js.map +1 -0
- package/build/lib/correlate.d.ts +71 -0
- package/build/lib/correlate.js +224 -0
- package/build/lib/correlate.js.map +1 -0
- package/build/lib/credentials.d.ts +30 -0
- package/build/lib/credentials.js +96 -0
- package/build/lib/credentials.js.map +1 -0
- package/build/lib/cross-pillar-correlate.d.ts +119 -0
- package/build/lib/cross-pillar-correlate.js +530 -0
- package/build/lib/cross-pillar-correlate.js.map +1 -0
- package/build/lib/customer-metrics.d.ts +292 -0
- package/build/lib/customer-metrics.js +811 -0
- package/build/lib/customer-metrics.js.map +1 -0
- package/build/lib/dev-cli.d.ts +68 -0
- package/build/lib/dev-cli.js +375 -0
- package/build/lib/dev-cli.js.map +1 -0
- package/build/lib/discovery/aws.d.ts +27 -0
- package/build/lib/discovery/aws.js +198 -0
- package/build/lib/discovery/aws.js.map +1 -0
- package/build/lib/discovery/forwarder-detect.d.ts +36 -0
- package/build/lib/discovery/forwarder-detect.js +76 -0
- package/build/lib/discovery/forwarder-detect.js.map +1 -0
- package/build/lib/discovery/kubectl.d.ts +27 -0
- package/build/lib/discovery/kubectl.js +246 -0
- package/build/lib/discovery/kubectl.js.map +1 -0
- package/build/lib/discovery/orchestrate.d.ts +22 -0
- package/build/lib/discovery/orchestrate.js +139 -0
- package/build/lib/discovery/orchestrate.js.map +1 -0
- package/build/lib/discovery/shell.d.ts +40 -0
- package/build/lib/discovery/shell.js +85 -0
- package/build/lib/discovery/shell.js.map +1 -0
- package/build/lib/discovery/snapshot-store.d.ts +21 -0
- package/build/lib/discovery/snapshot-store.js +115 -0
- package/build/lib/discovery/snapshot-store.js.map +1 -0
- package/build/lib/discovery/types.d.ts +172 -0
- package/build/lib/discovery/types.js +9 -0
- package/build/lib/discovery/types.js.map +1 -0
- package/build/lib/drift.d.ts +56 -0
- package/build/lib/drift.js +185 -0
- package/build/lib/drift.js.map +1 -0
- package/build/lib/environments.d.ts +108 -8
- package/build/lib/environments.js +220 -37
- package/build/lib/environments.js.map +1 -1
- package/build/lib/format.d.ts +36 -4
- package/build/lib/format.js +80 -15
- package/build/lib/format.js.map +1 -1
- package/build/lib/gh-cli.d.ts +6 -0
- package/build/lib/gh-cli.js +58 -0
- package/build/lib/gh-cli.js.map +1 -0
- package/build/lib/github-device-flow.d.ts +73 -0
- package/build/lib/github-device-flow.js +138 -0
- package/build/lib/github-device-flow.js.map +1 -0
- package/build/lib/inflection.d.ts +28 -0
- package/build/lib/inflection.js +118 -0
- package/build/lib/inflection.js.map +1 -0
- package/build/lib/investigation-cache.d.ts +34 -0
- package/build/lib/investigation-cache.js +61 -0
- package/build/lib/investigation-cache.js.map +1 -0
- package/build/lib/investigation-templates.d.ts +50 -0
- package/build/lib/investigation-templates.js +271 -0
- package/build/lib/investigation-templates.js.map +1 -0
- package/build/lib/join-discovery.d.ts +90 -0
- package/build/lib/join-discovery.js +296 -0
- package/build/lib/join-discovery.js.map +1 -0
- package/build/lib/local-source.d.ts +74 -0
- package/build/lib/local-source.js +194 -0
- package/build/lib/local-source.js.map +1 -0
- package/build/lib/log.d.ts +21 -0
- package/build/lib/log.js +63 -0
- package/build/lib/log.js.map +1 -0
- package/build/lib/manifest.d.ts +249 -0
- package/build/lib/manifest.js +406 -0
- package/build/lib/manifest.js.map +1 -0
- package/build/lib/metric-emitters.d.ts +43 -0
- package/build/lib/metric-emitters.js +195 -0
- package/build/lib/metric-emitters.js.map +1 -0
- package/build/lib/next-actions.d.ts +36 -0
- package/build/lib/next-actions.js +53 -0
- package/build/lib/next-actions.js.map +1 -0
- package/build/lib/open-browser.d.ts +1 -0
- package/build/lib/open-browser.js +51 -0
- package/build/lib/open-browser.js.map +1 -0
- package/build/lib/paste-api.d.ts +34 -0
- package/build/lib/paste-api.js +53 -0
- package/build/lib/paste-api.js.map +1 -0
- package/build/lib/pattern-extraction.d.ts +62 -0
- package/build/lib/pattern-extraction.js +443 -0
- package/build/lib/pattern-extraction.js.map +1 -0
- package/build/lib/poc-report-renderer.d.ts +192 -0
- package/build/lib/poc-report-renderer.js +1148 -0
- package/build/lib/poc-report-renderer.js.map +1 -0
- package/build/lib/promql.d.ts +23 -5
- package/build/lib/promql.js +48 -11
- package/build/lib/promql.js.map +1 -1
- package/build/lib/retriever-api.d.ts +254 -0
- package/build/lib/retriever-api.js +883 -0
- package/build/lib/retriever-api.js.map +1 -0
- package/build/lib/retriever-diagnostics.d.ts +121 -0
- package/build/lib/retriever-diagnostics.js +265 -0
- package/build/lib/retriever-diagnostics.js.map +1 -0
- package/build/lib/retriever-fidelity.d.ts +129 -0
- package/build/lib/retriever-fidelity.js +309 -0
- package/build/lib/retriever-fidelity.js.map +1 -0
- package/build/lib/self-telemetry.d.ts +74 -0
- package/build/lib/self-telemetry.js +326 -0
- package/build/lib/self-telemetry.js.map +1 -0
- package/build/lib/siem/_retry.d.ts +41 -0
- package/build/lib/siem/_retry.js +141 -0
- package/build/lib/siem/_retry.js.map +1 -0
- package/build/lib/siem/_sampling.d.ts +45 -0
- package/build/lib/siem/_sampling.js +70 -0
- package/build/lib/siem/_sampling.js.map +1 -0
- package/build/lib/siem/azure-monitor.d.ts +11 -0
- package/build/lib/siem/azure-monitor.js +213 -0
- package/build/lib/siem/azure-monitor.js.map +1 -0
- package/build/lib/siem/clickhouse.d.ts +35 -0
- package/build/lib/siem/clickhouse.js +317 -0
- package/build/lib/siem/clickhouse.js.map +1 -0
- package/build/lib/siem/cloudwatch.d.ts +20 -0
- package/build/lib/siem/cloudwatch.js +291 -0
- package/build/lib/siem/cloudwatch.js.map +1 -0
- package/build/lib/siem/datadog.d.ts +38 -0
- package/build/lib/siem/datadog.js +316 -0
- package/build/lib/siem/datadog.js.map +1 -0
- package/build/lib/siem/deps/cloudwatch.d.ts +20 -0
- package/build/lib/siem/deps/cloudwatch.js +145 -0
- package/build/lib/siem/deps/cloudwatch.js.map +1 -0
- package/build/lib/siem/deps/datadog.d.ts +18 -0
- package/build/lib/siem/deps/datadog.js +101 -0
- package/build/lib/siem/deps/datadog.js.map +1 -0
- package/build/lib/siem/deps/elasticsearch.d.ts +21 -0
- package/build/lib/siem/deps/elasticsearch.js +144 -0
- package/build/lib/siem/deps/elasticsearch.js.map +1 -0
- package/build/lib/siem/deps/index.d.ts +19 -0
- package/build/lib/siem/deps/index.js +87 -0
- package/build/lib/siem/deps/index.js.map +1 -0
- package/build/lib/siem/deps/splunk.d.ts +15 -0
- package/build/lib/siem/deps/splunk.js +151 -0
- package/build/lib/siem/deps/splunk.js.map +1 -0
- package/build/lib/siem/deps/types.d.ts +52 -0
- package/build/lib/siem/deps/types.js +34 -0
- package/build/lib/siem/deps/types.js.map +1 -0
- package/build/lib/siem/elasticsearch.d.ts +9 -0
- package/build/lib/siem/elasticsearch.js +249 -0
- package/build/lib/siem/elasticsearch.js.map +1 -0
- package/build/lib/siem/gcp-logging.d.ts +12 -0
- package/build/lib/siem/gcp-logging.js +232 -0
- package/build/lib/siem/gcp-logging.js.map +1 -0
- package/build/lib/siem/index.d.ts +128 -0
- package/build/lib/siem/index.js +86 -0
- package/build/lib/siem/index.js.map +1 -0
- package/build/lib/siem/pricing.d.ts +14 -0
- package/build/lib/siem/pricing.js +47 -0
- package/build/lib/siem/pricing.js.map +1 -0
- package/build/lib/siem/resolve.d.ts +68 -0
- package/build/lib/siem/resolve.js +112 -0
- package/build/lib/siem/resolve.js.map +1 -0
- package/build/lib/siem/splunk.d.ts +14 -0
- package/build/lib/siem/splunk.js +328 -0
- package/build/lib/siem/splunk.js.map +1 -0
- package/build/lib/siem/sumo.d.ts +15 -0
- package/build/lib/siem/sumo.js +348 -0
- package/build/lib/siem/sumo.js.map +1 -0
- package/build/lib/thresholds.d.ts +31 -0
- package/build/lib/thresholds.js +59 -0
- package/build/lib/thresholds.js.map +1 -0
- package/build/lib/tool-errors.d.ts +13 -0
- package/build/lib/tool-errors.js +107 -0
- package/build/lib/tool-errors.js.map +1 -0
- package/build/lib/variable-concentration.d.ts +54 -0
- package/build/lib/variable-concentration.js +132 -0
- package/build/lib/variable-concentration.js.map +1 -0
- package/build/tools/advise-compact.d.ts +92 -0
- package/build/tools/advise-compact.js +558 -0
- package/build/tools/advise-compact.js.map +1 -0
- package/build/tools/advise-install.d.ts +65 -0
- package/build/tools/advise-install.js +224 -0
- package/build/tools/advise-install.js.map +1 -0
- package/build/tools/advise-reducer.d.ts +60 -0
- package/build/tools/advise-reducer.js +89 -0
- package/build/tools/advise-reducer.js.map +1 -0
- package/build/tools/advise-reporter.d.ts +58 -0
- package/build/tools/advise-reporter.js +86 -0
- package/build/tools/advise-reporter.js.map +1 -0
- package/build/tools/advise-retriever.d.ts +66 -0
- package/build/tools/advise-retriever.js +83 -0
- package/build/tools/advise-retriever.js.map +1 -0
- package/build/tools/backfill-metric.d.ts +49 -0
- package/build/tools/backfill-metric.js +178 -0
- package/build/tools/backfill-metric.js.map +1 -0
- package/build/tools/correlate-cross-pillar.d.ts +50 -0
- package/build/tools/correlate-cross-pillar.js +254 -0
- package/build/tools/correlate-cross-pillar.js.map +1 -0
- package/build/tools/cost-drivers.d.ts +2 -0
- package/build/tools/cost-drivers.js +46 -6
- package/build/tools/cost-drivers.js.map +1 -1
- package/build/tools/create-env.d.ts +24 -0
- package/build/tools/create-env.js +79 -0
- package/build/tools/create-env.js.map +1 -0
- package/build/tools/customer-metrics-query.d.ts +31 -0
- package/build/tools/customer-metrics-query.js +109 -0
- package/build/tools/customer-metrics-query.js.map +1 -0
- package/build/tools/delete-env.d.ts +24 -0
- package/build/tools/delete-env.js +88 -0
- package/build/tools/delete-env.js.map +1 -0
- package/build/tools/dependency-check.d.ts +29 -9
- package/build/tools/dependency-check.js +80 -14
- package/build/tools/dependency-check.js.map +1 -1
- package/build/tools/discover-env.d.ts +63 -0
- package/build/tools/discover-env.js +206 -0
- package/build/tools/discover-env.js.map +1 -0
- package/build/tools/discover-join.d.ts +39 -0
- package/build/tools/discover-join.js +140 -0
- package/build/tools/discover-join.js.map +1 -0
- package/build/tools/discover-labels.d.ts +22 -0
- package/build/tools/discover-labels.js +74 -0
- package/build/tools/discover-labels.js.map +1 -0
- package/build/tools/doctor.d.ts +42 -0
- package/build/tools/doctor.js +926 -0
- package/build/tools/doctor.js.map +1 -0
- package/build/tools/event-lookup.js +41 -10
- package/build/tools/event-lookup.js.map +1 -1
- package/build/tools/exclusion-filter.d.ts +9 -3
- package/build/tools/exclusion-filter.js +51 -9
- package/build/tools/exclusion-filter.js.map +1 -1
- package/build/tools/extract-templates.d.ts +47 -0
- package/build/tools/extract-templates.js +151 -0
- package/build/tools/extract-templates.js.map +1 -0
- package/build/tools/investigate.d.ts +49 -0
- package/build/tools/investigate.js +813 -0
- package/build/tools/investigate.js.map +1 -0
- package/build/tools/list-by-label.d.ts +29 -0
- package/build/tools/list-by-label.js +109 -0
- package/build/tools/list-by-label.js.map +1 -0
- package/build/tools/login-status.d.ts +20 -0
- package/build/tools/login-status.js +87 -0
- package/build/tools/login-status.js.map +1 -0
- package/build/tools/poc-from-local.d.ts +36 -0
- package/build/tools/poc-from-local.js +211 -0
- package/build/tools/poc-from-local.js.map +1 -0
- package/build/tools/poc-from-siem.d.ts +105 -0
- package/build/tools/poc-from-siem.js +572 -0
- package/build/tools/poc-from-siem.js.map +1 -0
- package/build/tools/resolve-batch.d.ts +35 -0
- package/build/tools/resolve-batch.js +431 -0
- package/build/tools/resolve-batch.js.map +1 -0
- package/build/tools/retriever-query-status.d.ts +23 -0
- package/build/tools/retriever-query-status.js +94 -0
- package/build/tools/retriever-query-status.js.map +1 -0
- package/build/tools/retriever-query.d.ts +41 -0
- package/build/tools/retriever-query.js +375 -0
- package/build/tools/retriever-query.js.map +1 -0
- package/build/tools/retriever-series.d.ts +38 -0
- package/build/tools/retriever-series.js +555 -0
- package/build/tools/retriever-series.js.map +1 -0
- package/build/tools/rotate-api-key.d.ts +46 -0
- package/build/tools/rotate-api-key.js +149 -0
- package/build/tools/rotate-api-key.js.map +1 -0
- package/build/tools/savings.d.ts +20 -2
- package/build/tools/savings.js +182 -28
- package/build/tools/savings.js.map +1 -1
- package/build/tools/services.d.ts +1 -1
- package/build/tools/services.js +26 -2
- package/build/tools/services.js.map +1 -1
- package/build/tools/signin.d.ts +56 -0
- package/build/tools/signin.js +323 -0
- package/build/tools/signin.js.map +1 -0
- package/build/tools/signout.d.ts +33 -0
- package/build/tools/signout.js +68 -0
- package/build/tools/signout.js.map +1 -0
- package/build/tools/top-patterns.d.ts +22 -0
- package/build/tools/top-patterns.js +179 -0
- package/build/tools/top-patterns.js.map +1 -0
- package/build/tools/translate-metric-to-patterns.d.ts +35 -0
- package/build/tools/translate-metric-to-patterns.js +44 -0
- package/build/tools/translate-metric-to-patterns.js.map +1 -0
- package/build/tools/trend.d.ts +2 -2
- package/build/tools/trend.js +28 -9
- package/build/tools/trend.js.map +1 -1
- package/build/tools/update-env.d.ts +25 -0
- package/build/tools/update-env.js +101 -0
- package/build/tools/update-env.js.map +1 -0
- package/build/tools/update-settings.d.ts +18 -0
- package/build/tools/update-settings.js +68 -0
- package/build/tools/update-settings.js.map +1 -0
- package/default-manifest.json +205 -0
- package/package.json +19 -4
package/LICENSE
CHANGED
|
@@ -1,21 +1,190 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2025-2026 Log10x, Inc.
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,22 +1,136 @@
|
|
|
1
1
|
# Log10x MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Observability memory for your logs, exposed to AI assistants. Ask Claude (or any MCP-compatible AI) *"why did our log costs spike this week?"*, *"triage these 3000 events"*, *"what's causing the payments-svc error spike"*, or *"pull all payment_retry events for acme-corp from Jan 15 through Apr 15"* — and get structured answers backed by stable per-pattern identity, not best-effort clustering.
|
|
4
4
|
|
|
5
5
|
## What it does
|
|
6
6
|
|
|
7
|
-
Log10x
|
|
7
|
+
Log10x fingerprints every log line into a stable `templateHash` — a structural identity that stays constant across deploys, restarts, pod names, timestamps, and request IDs. That identity is the key to a per-pattern Prometheus time series (volume + cost) and, optionally, a Bloom-indexed S3 archive of the raw events. This MCP server exposes both surfaces to AI assistants as a set of tools:
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
|
12
|
-
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
9
|
+
### Cost attribution and daily-habit tools
|
|
10
|
+
|
|
11
|
+
| Tool | Answers | Tier |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `log10x_cost_drivers` | "Why did our log costs spike?" — dollar-ranked patterns with before→after deltas, keyed by stable templateHash (Datadog Log Patterns re-cluster per query and can't do this honestly) | Reporter |
|
|
14
|
+
| `log10x_event_lookup` | "What is this single log line?" — cost breakdown + AI classification | Reporter |
|
|
15
|
+
| `log10x_pattern_trend` | "When did this pattern start spiking?" — time series + sparkline | Reporter |
|
|
16
|
+
| `log10x_top_patterns` | "What's expensive right now?" — loudest patterns by current cost | Reporter |
|
|
17
|
+
| `log10x_list_by_label` | "Cost by namespace / severity / tenant?" — group-by ranking | Reporter |
|
|
18
|
+
| `log10x_services` | "What services are we monitoring?" — volume + cost by service | Reporter |
|
|
19
|
+
| `log10x_discover_labels` | "What labels can I filter on?" — label universe for the session | Reporter |
|
|
20
|
+
| `log10x_savings` | "How much are we saving?" — per-app savings with annual projection | Reporter |
|
|
21
|
+
| `log10x_dependency_check` | "Anything depending on this before I drop it?" — SIEM dependency scan | None |
|
|
22
|
+
| `log10x_exclusion_filter` | "How do I drop this in Datadog?" — config snippets for 14 vendors | None |
|
|
23
|
+
|
|
24
|
+
### Investigation, triage, and archive tools (v1.3)
|
|
25
|
+
|
|
26
|
+
| Tool | Answers | Tier |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| `log10x_investigate` | "Why is this spiking?" — single-call root-cause: anchor resolution, trajectory shape detection (acute-spike vs drift), cross-pattern lag correlation, causal chain with stat/lag/chain confidence sub-scores, drift cohort analysis, two-stage Retriever fallback, verification commands. Surfaces log-only signals (pool saturation, cache evictions, retry amplification) that APM structurally cannot see. | Reporter |
|
|
29
|
+
| `log10x_resolve_batch` | "Triage these events" — paste a file / array / text dump of raw log lines and get per-pattern frequency, severity, variable concentration, and next-action suggestions. Runs via the Log10x paste endpoint; works at any tier including CLI-only. | None |
|
|
30
|
+
| `log10x_retriever_query` | "Get me the actual events" — direct retrieval from the Retriever archive by templateHash with JS filter expressions over event payloads. Queries the customer's own S3 via pre-computed Bloom filters. Answers forensic, audit, and out-of-retention retrieval. | Retriever |
|
|
31
|
+
| `log10x_backfill_metric` | "Create a new Datadog metric backfilled with 90 days of history" — pulls historical events from the Retriever, aggregates into a bucketed time series, emits to the destination TSDB with historical timestamps preserved. Datadog + Prometheus remote_write supported today. | Retriever |
|
|
32
|
+
|
|
33
|
+
All tools query `prometheus.log10x.com` (for Reporter-tier tools) over HTTPS, with the same `X-10X-Auth` header used by the rest of the Log10x stack. No log scanning; sub-second at any scale.
|
|
34
|
+
|
|
35
|
+
## ROI examples — three real flows
|
|
36
|
+
|
|
37
|
+
These are real round-trips against the Log10x demo environment, captured during development. Every tool call below is verbatim what the model would produce; outputs are abbreviated for the README.
|
|
38
|
+
|
|
39
|
+
### 1. "Why is checkout-svc cost up?" (`log10x_cost_drivers`)
|
|
40
|
+
|
|
41
|
+
**Prompt**: *"Why did checkout cost spike this week?"*
|
|
42
|
+
|
|
43
|
+
**Tool call**: `log10x_cost_drivers({ service: "cart", timeRange: "7d" })`
|
|
44
|
+
|
|
45
|
+
**Output** (abbreviated):
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
cart — $137 → $38K/wk (4 cost drivers)
|
|
49
|
+
|
|
50
|
+
#1 cart cartstore ValkeyCartStore $51 → $13K/wk INFO 13.3B events
|
|
51
|
+
#2 shipping service Post shipping... $34 → $12K/wk CRIT 1.6B events
|
|
52
|
+
#3 GetCartAsync called with userId $34 → $8.7K/wk 8.7B events
|
|
53
|
+
#4 AddItemAsync called with... $18 → $4.6K/wk 4.2B events
|
|
54
|
+
|
|
55
|
+
4 drivers = 49% of increase · 2442 other patterns
|
|
56
|
+
|
|
57
|
+
**Next actions**:
|
|
58
|
+
- call `log10x_investigate({ starting_point: 'cart_cartstore_ValkeyCartStore' })` to trace the cause of the $13K delta on this pattern.
|
|
59
|
+
- call `log10x_dependency_check({ pattern: '...' })` before muting or dropping — blast-radius safety.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The next-action hints in the output literally tell the model what to do next. No prompt engineering required.
|
|
63
|
+
|
|
64
|
+
### 2. "What's broken in payments-svc?" (`log10x_investigate`)
|
|
65
|
+
|
|
66
|
+
**Prompt**: *"Investigate kafka — there's an alert firing."*
|
|
67
|
+
|
|
68
|
+
**Tool call**: `log10x_investigate({ starting_point: "kafka", window: "1h" })`
|
|
69
|
+
|
|
70
|
+
**Output** (abbreviated 8-link causal chain):
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
## Investigation: kafka, last 1h
|
|
74
|
+
|
|
75
|
+
**Anchor**: cluster_metadata_Wrote_producer_snapshot... (resolved from service_name)
|
|
76
|
+
**Service**: kafka
|
|
77
|
+
**Inflection**: 2026-04-14T00:19:52Z UTC
|
|
78
|
+
**Shape**: acute spike
|
|
79
|
+
**Reporter tier**: edge
|
|
18
80
|
|
|
19
|
-
|
|
81
|
+
### Most likely root cause
|
|
82
|
+
|
|
83
|
+
Pattern: cluster_metadata_dir_tmp_kafka_logs_Rolled_new_segment...
|
|
84
|
+
Confidence: 43% (stat:1.00 lag:0.43 chain:1.00)
|
|
85
|
+
Why: peaked 300s before the anchor, magnitude 1.4× baseline.
|
|
86
|
+
|
|
87
|
+
### Causal chain
|
|
88
|
+
|
|
89
|
+
1. cluster_metadata_dir_tmp_kafka_logs_Rolled... — peaked T-300s
|
|
90
|
+
2. Successfully_wrote_snapshot_org_apache_kafka... — peaked T-300s
|
|
91
|
+
3. opentelemetry_javaagent_shaded_instrumentation... — peaked T-300s
|
|
92
|
+
... (8 links total, each with stat × lag × chain confidence sub-scores)
|
|
93
|
+
|
|
94
|
+
### Suggested verification commands
|
|
95
|
+
|
|
96
|
+
gh api /repos/<owner>/kafka/commits?since=...&until=...
|
|
97
|
+
kubectl get events -n kafka --since=Xm
|
|
98
|
+
dog metric query "avg:trace.kafka.requests{*} by {resource_name}" --from ...
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
The full causal chain comes back in one tool call. The model doesn't need to compose. The verification commands are pre-substituted with the inflection timestamp so the user can paste them directly.
|
|
102
|
+
|
|
103
|
+
### 3. "Triage this Slack paste" (`log10x_resolve_batch`)
|
|
104
|
+
|
|
105
|
+
**Prompt**: *"My teammate dumped these 12 lines from order-processing-svc into Slack — what's happening?"*
|
|
106
|
+
|
|
107
|
+
**Tool call**: `log10x_resolve_batch({ source: "text", text: "..." })`
|
|
108
|
+
|
|
109
|
+
**Output** (abbreviated):
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
## Batch Triage
|
|
113
|
+
|
|
114
|
+
12 events, resolved into 3 distinct patterns. Templater wall time: 6.4s. Execution: Log10x paste endpoint.
|
|
115
|
+
|
|
116
|
+
**Severity mix**: INFO: 7 · ERROR: 4 · WARN: 1
|
|
117
|
+
|
|
118
|
+
### Top 3 patterns by interestingness
|
|
119
|
+
|
|
120
|
+
**#1 checkout_svc_tenant_acme_corp_order_status_failed_reason_payment_gateway** · 4 events (33% of batch) · interestingness 0.47
|
|
121
|
+
severity: ERROR
|
|
122
|
+
|
|
123
|
+
Variable concentration (top values within this batch):
|
|
124
|
+
- timestamp · 4 distinct · `1776067923000` 25%, `1776067925000` 25%, `1776067928000` 25%
|
|
125
|
+
- order · 4 distinct · `12347` 25%, `12349` 25%, `12352` 25%
|
|
126
|
+
|
|
127
|
+
**Next actions**:
|
|
128
|
+
- call `log10x_investigate({ starting_point: '...' })` for historical correlation (requires Reporter tier).
|
|
129
|
+
- call `log10x_retriever_query({ pattern: '...', filters: ["event.order === \"12347\""] })` to retrieve all historical events concentrated on order=12347 (requires Retriever tier).
|
|
130
|
+
- native Datadog follow-up: `dog log search '@order:"12347"' --from now-24h` — filters to the dominant variable concentration directly in the SIEM.
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Every pattern is ranked by an interestingness score (severity-weighted); the dominant variable is identified; ready-to-paste next-action commands are pre-constructed for both Log10x tools and the customer's SIEM. The model just needs to relay the output and ask which path the user wants to take.
|
|
20
134
|
|
|
21
135
|
## Install
|
|
22
136
|
|
|
@@ -31,22 +145,22 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
|
31
145
|
"command": "npx",
|
|
32
146
|
"args": ["-y", "log10x-mcp"],
|
|
33
147
|
"env": {
|
|
34
|
-
"LOG10X_API_KEY": "your-api-key"
|
|
35
|
-
"LOG10X_ENV_ID": "your-env-id"
|
|
148
|
+
"LOG10X_API_KEY": "your-api-key"
|
|
36
149
|
}
|
|
37
150
|
}
|
|
38
151
|
}
|
|
39
152
|
}
|
|
40
153
|
```
|
|
41
154
|
|
|
42
|
-
Restart Claude Desktop.
|
|
155
|
+
Restart Claude Desktop. The server autodiscovers every env your account can reach (default + any shared with you) — pass `environment: "<nickname>"` on any tool call to switch between them.
|
|
156
|
+
|
|
157
|
+
If `LOG10X_API_KEY` is omitted, the MCP boots in **demo mode** against the public Log10x demo env (read-only). Run `log10x_signin` and the LLM will walk you through the GitHub Device Flow — it mints a real key, writes it to `~/.log10x/credentials`, and hot-reloads without an MCP-host restart.
|
|
43
158
|
|
|
44
159
|
### Claude Code
|
|
45
160
|
|
|
46
161
|
```bash
|
|
47
162
|
claude mcp add --transport stdio \
|
|
48
163
|
--env LOG10X_API_KEY=your-api-key \
|
|
49
|
-
--env LOG10X_ENV_ID=your-env-id \
|
|
50
164
|
log10x -- npx -y log10x-mcp
|
|
51
165
|
```
|
|
52
166
|
|
|
@@ -54,34 +168,22 @@ Verify with `/mcp`.
|
|
|
54
168
|
|
|
55
169
|
### Cursor / Windsurf / other MCP clients
|
|
56
170
|
|
|
57
|
-
Same pattern — add an `mcpServers` entry with `"command": "npx"`, `"args": ["-y", "log10x-mcp"]`, and
|
|
171
|
+
Same pattern — add an `mcpServers` entry with `"command": "npx"`, `"args": ["-y", "log10x-mcp"]`, and `LOG10X_API_KEY`.
|
|
58
172
|
|
|
59
173
|
## Get your credentials
|
|
60
174
|
|
|
61
|
-
|
|
62
|
-
2. Open Profile → API Settings
|
|
63
|
-
3. Copy your **API Key** and **Environment ID**
|
|
64
|
-
4. (Optional) Set your **Analyzer Cost** ($/GB for your SIEM) — the server reads this automatically
|
|
175
|
+
Two options:
|
|
65
176
|
|
|
66
|
-
|
|
177
|
+
1. **Sign in via GitHub**: launch the MCP without `LOG10X_API_KEY` set, then ask the LLM to "sign in to Log10x". `log10x_signin` runs the GitHub Device Flow, mints an API key, and saves it to `~/.log10x/credentials` — works across every MCP host on the same machine.
|
|
178
|
+
2. **Console**: log into [console.log10x.com](https://console.log10x.com) → Profile → API Settings → copy your API Key. (Optional: set your **Analyzer Cost** ($/GB for your SIEM) on that page — the server reads it automatically.)
|
|
67
179
|
|
|
68
|
-
|
|
180
|
+
## Multi-environment access
|
|
69
181
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"log10x": {
|
|
74
|
-
"command": "npx",
|
|
75
|
-
"args": ["-y", "log10x-mcp"],
|
|
76
|
-
"env": {
|
|
77
|
-
"LOG10X_ENVS": "[{\"nickname\":\"prod\",\"apiKey\":\"...\",\"envId\":\"...\"},{\"nickname\":\"staging\",\"apiKey\":\"...\",\"envId\":\"...\"}]"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
```
|
|
182
|
+
Two patterns, depending on what you need:
|
|
183
|
+
|
|
184
|
+
**Same account, multiple envs** (e.g., your account owns prod, staging, dev). Nothing special to configure — the MCP autodiscovers all envs your account can reach via `GET /api/v1/user`. Pass `environment: "<nickname>"` on any tool call, or just say "check staging costs" and the LLM routes there. The chosen env sticks for follow-up calls until you switch again.
|
|
83
185
|
|
|
84
|
-
|
|
186
|
+
**Multiple accounts** (e.g., a consultant accessing customer envs). The Log10x backend supports per-env permission sharing (OWNER / WRITE / READ). Have the env owner grant your account READ on their env from the console — it then shows up in your `/api/v1/user` response automatically, no client-side multi-credential setup needed. If you genuinely need parallel access from distinct API keys, register one MCP server per account in your host config with distinct server names.
|
|
85
187
|
|
|
86
188
|
## Usage
|
|
87
189
|
|
|
@@ -123,15 +225,86 @@ cart — $103 → $13K/wk (3 cost drivers)
|
|
|
123
225
|
|
|
124
226
|
## Environment variables
|
|
125
227
|
|
|
228
|
+
### Reporter-tier (required for cost, trend, and investigate tools)
|
|
229
|
+
|
|
126
230
|
| Variable | Required | Description |
|
|
127
231
|
|---|---|---|
|
|
128
|
-
| `LOG10X_API_KEY` |
|
|
129
|
-
| `LOG10X_ENV_ID` | Yes (single-env) | Your Log10x environment ID |
|
|
130
|
-
| `LOG10X_ENVS` | Yes (multi-env) | JSON array of `{nickname, apiKey, envId}` |
|
|
232
|
+
| `LOG10X_API_KEY` | No | Your Log10x API key. Omit to boot in demo mode + use `log10x_signin` to mint one via GitHub. The env list is autodiscovered from `GET /api/v1/user` — no env-id pinning needed. |
|
|
131
233
|
| `LOG10X_API_BASE` | No | API base URL (default: `https://prometheus.log10x.com`) |
|
|
132
234
|
|
|
235
|
+
### Pasted-batch triage (`log10x_resolve_batch`)
|
|
236
|
+
|
|
237
|
+
| Variable | Required | Description |
|
|
238
|
+
|---|---|---|
|
|
239
|
+
| `LOG10X_PASTE_URL` | No | Override the Log10x paste endpoint (default: `https://meljpepqpd.execute-api.us-east-1.amazonaws.com/paste`). Body limit 100 KB. |
|
|
240
|
+
|
|
241
|
+
### Retriever (`log10x_retriever_query`, `log10x_backfill_metric`)
|
|
242
|
+
|
|
243
|
+
| Variable | Required | Description |
|
|
244
|
+
|---|---|---|
|
|
245
|
+
| `__SAVE_LOG10X_RETRIEVER_URL__` | Yes (Retriever tier) | Base URL of the customer's deployed Retriever query endpoint (e.g., `https://retriever.<your-domain>`). When unset, Retriever-dependent tools return a graceful "not configured" message. |
|
|
246
|
+
| `LOG10X_RETRIEVER_AUTH_HEADER` | No | Override the auth header name (default: `X-10X-Auth`, same as the Prometheus gateway). |
|
|
247
|
+
| `LOG10X_RETRIEVER_AUTH_VALUE` | No | Override the auth header value. Default is `${apiKey}/${envId}` from the active environment. |
|
|
248
|
+
| `__SAVE_LOG10X_RETRIEVER_TARGET__` | No | Override the default target prefix under which retriever writes indexed objects (default: `app`). |
|
|
249
|
+
| `LOG10X_RETRIEVER_INDEX_SUBPATH` | No | Override the index subpath inside the bucket (default: `indexing-results`, matching the engine's indexContainer convention). |
|
|
250
|
+
| `LOG10X_RETRIEVER_POLL_MS` | No | Override the marker-stability poll interval (default: `1500` ms). |
|
|
251
|
+
| `LOG10X_RETRIEVER_TIMEOUT_MS` | No | Override the query timeout (default: `90000` ms). |
|
|
252
|
+
|
|
253
|
+
**Demo env retriever LB**: the otel-demo cluster has a pre-provisioned retriever LoadBalancer at `http://a2936089108bb492cb41d18cb5b75f8d-1298006809.us-east-1.elb.amazonaws.com`. Set `__SAVE_LOG10X_RETRIEVER_URL__` to that value for the demo. The demo bucket is `tenx-demo-cloud-retriever-351939435334/indexing-results/`.
|
|
254
|
+
|
|
255
|
+
**Known engine-side issues (GAPS G12)**: `log10x_retriever_query` has two unresolved engine-side bugs that `log10x_doctor` flags as `retriever_forensic_health` warnings: (1) it may return 0 events on windows where `log10x_pattern_trend` proves events exist, (2) it may crash with `MCP error -32000: Connection closed` when passed a canonical slash-underscore pattern name. Workarounds: use short/free-text pattern names, cross-check any zero result against `log10x_pattern_trend`, prefer `log10x_event_lookup` + `log10x_pattern_trend` for incident reconstruction where approximate timing is acceptable. See `docs/ENGINE_TICKETS.md` for the full engine-team ticket.
|
|
256
|
+
|
|
257
|
+
### Metric backfill destinations (`log10x_backfill_metric`)
|
|
258
|
+
|
|
259
|
+
| Variable | Required | Description |
|
|
260
|
+
|---|---|---|
|
|
261
|
+
| `DATADOG_API_KEY` (or `DD_API_KEY`) | Yes (Datadog destination) | Datadog API key used to POST to `/api/v2/series`. |
|
|
262
|
+
| `DATADOG_SITE` | No | Datadog site (default: `datadoghq.com`, override for `datadoghq.eu`, `us5.datadoghq.com`, etc.) |
|
|
263
|
+
| `PROMETHEUS_REMOTE_WRITE_URL` | Yes (Prometheus destination) | URL of a Prometheus `remote_write`-compatible adapter. The MCP posts JSON; the adapter translates to the native protobuf/Snappy wire format. |
|
|
264
|
+
|
|
133
265
|
The server fetches your analyzer cost ($/GB) from your Console profile at startup and refreshes it hourly. To change it, update the cost in your profile — the server picks up the new value within an hour.
|
|
134
266
|
|
|
267
|
+
## Spawning sub-agents that use this MCP
|
|
268
|
+
|
|
269
|
+
If you script Claude Code sub-agents (`Agent` tool, OpenAI Agents SDK, custom orchestrators) to call log10x MCP tools, watch out for **deferred-tool bootstrapping**. The sub-agent's static tool list does not always include `mcp__log10x__*` — those tools are loaded on demand via `ToolSearch` (or the equivalent in your client). A sub-agent that reads its tool list and concludes "no MCP tools available" without first calling `ToolSearch({query: "log10x"})` will refuse the task instead of using the tools.
|
|
270
|
+
|
|
271
|
+
In testing across 17 sub-agent runs, **prompt framing was the deciding factor**:
|
|
272
|
+
|
|
273
|
+
| Framing | Bootstrap success |
|
|
274
|
+
|---|---|
|
|
275
|
+
| Action-oriented ("pull the events", "build the slide", "investigate this") | 9/9 |
|
|
276
|
+
| Honesty-oriented ("don't fabricate", "refuse if you can't verify") | 0/5 |
|
|
277
|
+
|
|
278
|
+
The honesty disposition fires too early — the agent applies "be honest about my limits" before trying to discover deferred tools. The fix is one line at the top of every sub-agent prompt:
|
|
279
|
+
|
|
280
|
+
```
|
|
281
|
+
TOOL BOOTSTRAP: You have log10x MCP tools available, but they are
|
|
282
|
+
deferred-loaded. Before doing anything else, call
|
|
283
|
+
ToolSearch({query: "log10x", max_results: 20}) to load them.
|
|
284
|
+
After that you'll have mcp__log10x__log10x_* tools.
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
This raised bootstrap success from ~76% to 100% in our test runs and is harmless when MCP tools are already in scope.
|
|
288
|
+
|
|
289
|
+
## Development
|
|
290
|
+
|
|
291
|
+
Build:
|
|
292
|
+
|
|
293
|
+
```bash
|
|
294
|
+
npm install
|
|
295
|
+
npm run build # tsc → build/index.js
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
**Operational gotcha — restart after rebuild.** MCP clients (Claude Desktop, Claude Code, Cursor) typically launch the server as a long-running child process. Node caches loaded modules in memory, so the running process **will not pick up your `npm run build` output until it is killed and respawned**. After rebuilding, find and kill the stale processes:
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
pgrep -fl "log10x-mcp/build/index.js" # show running servers + start times
|
|
302
|
+
ps -o pid=,lstart= -p $(pgrep -f log10x-mcp/build/index.js)
|
|
303
|
+
pkill -f "log10x-mcp/build/index.js" # client will respawn on next tool call
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
If you ship a tool description change or a routing-hint update and the agent's behavior doesn't seem to reflect it, this is the most likely cause. Verify by `grep`-ing the raw tool output (most clients log it) for any string you added — if it's missing, the server is stale.
|
|
307
|
+
|
|
135
308
|
## Security
|
|
136
309
|
|
|
137
310
|
- All API calls use your personal API key (never exposed in tool output)
|
|
@@ -145,4 +318,24 @@ Full documentation: [doc.log10x.com/manage/mcp-server](https://doc.log10x.com/ma
|
|
|
145
318
|
|
|
146
319
|
## License
|
|
147
320
|
|
|
148
|
-
|
|
321
|
+
This package is licensed under the [Apache License 2.0](LICENSE).
|
|
322
|
+
|
|
323
|
+
### Important: Log10x Product License Required
|
|
324
|
+
|
|
325
|
+
This package is the open-source MCP server for Log10x. While the MCP itself is open source,
|
|
326
|
+
**using Log10x requires a commercial license**.
|
|
327
|
+
|
|
328
|
+
| Component | License |
|
|
329
|
+
|-----------|---------|
|
|
330
|
+
| This package (`log10x-mcp`) | Apache 2.0 (open source) |
|
|
331
|
+
| Log10x engine and runtime | Commercial license required |
|
|
332
|
+
|
|
333
|
+
**What this means:**
|
|
334
|
+
- You can freely use, modify, and distribute this MCP server
|
|
335
|
+
- The Log10x backend services and `tenx` runtime that this MCP talks to require a paid subscription
|
|
336
|
+
- A valid Log10x API key is required to call the account-scoped tools (sign in via `log10x_signin` or set `LOG10X_API_KEY`)
|
|
337
|
+
|
|
338
|
+
**Get Started:**
|
|
339
|
+
- [Log10x Pricing](https://log10x.com/pricing)
|
|
340
|
+
- [Documentation](https://doc.log10x.com)
|
|
341
|
+
- [Contact Sales](mailto:sales@log10x.com)
|