log10x-mcp 1.5.0 → 1.6.4
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 +34 -45
- package/build/index.js +164 -232
- 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.js +11 -8
- package/build/lib/advisor/mode.js.map +1 -1
- package/build/lib/advisor/render.js +2 -2
- package/build/lib/advisor/render.js.map +1 -1
- package/build/lib/advisor/reporter-forwarders.d.ts +19 -7
- package/build/lib/advisor/reporter-forwarders.js +56 -39
- package/build/lib/advisor/reporter-forwarders.js.map +1 -1
- package/build/lib/advisor/reporter.d.ts +17 -8
- package/build/lib/advisor/reporter.js +23 -17
- package/build/lib/advisor/reporter.js.map +1 -1
- package/build/lib/advisor/retriever.d.ts +2 -2
- package/build/lib/advisor/retriever.js +4 -4
- package/build/lib/advisor/retriever.js.map +1 -1
- package/build/lib/advisor/types.d.ts +2 -2
- package/build/lib/api.d.ts +52 -0
- package/build/lib/api.js +160 -0
- package/build/lib/api.js.map +1 -1
- package/build/lib/discovery/forwarder-detect.js +1 -1
- package/build/lib/discovery/forwarder-detect.js.map +1 -1
- package/build/lib/discovery/orchestrate.js +1 -1
- package/build/lib/discovery/orchestrate.js.map +1 -1
- package/build/lib/discovery/types.d.ts +2 -2
- package/build/lib/environments.d.ts +40 -42
- package/build/lib/environments.js +51 -98
- package/build/lib/environments.js.map +1 -1
- 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/manifest.d.ts +249 -0
- package/build/lib/manifest.js +406 -0
- package/build/lib/manifest.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/poc-report-renderer.d.ts +76 -1
- package/build/lib/poc-report-renderer.js +246 -37
- package/build/lib/poc-report-renderer.js.map +1 -1
- package/build/lib/promql.d.ts +2 -0
- package/build/lib/promql.js +5 -0
- package/build/lib/promql.js.map +1 -1
- package/build/lib/retriever-api.d.ts +70 -0
- package/build/lib/retriever-api.js +105 -6
- package/build/lib/retriever-api.js.map +1 -1
- 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/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/_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/cloudwatch.js +64 -46
- package/build/lib/siem/cloudwatch.js.map +1 -1
- package/build/lib/siem/datadog.d.ts +25 -0
- package/build/lib/siem/datadog.js +118 -41
- package/build/lib/siem/datadog.js.map +1 -1
- 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.js +74 -52
- package/build/lib/siem/elasticsearch.js.map +1 -1
- package/build/lib/siem/index.d.ts +18 -0
- package/build/lib/siem/index.js.map +1 -1
- 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.js +112 -113
- package/build/lib/siem/splunk.js.map +1 -1
- package/build/lib/thresholds.d.ts +1 -1
- package/build/lib/thresholds.js +1 -1
- package/build/lib/tool-errors.js +1 -1
- package/build/lib/tool-errors.js.map +1 -1
- package/build/tools/advise-compact.d.ts +1 -1
- package/build/tools/advise-compact.js +16 -16
- package/build/tools/advise-compact.js.map +1 -1
- package/build/tools/advise-install.d.ts +2 -2
- package/build/tools/advise-install.js +13 -3
- package/build/tools/advise-install.js.map +1 -1
- package/build/tools/{advise-regulator.d.ts → advise-receiver.d.ts} +13 -9
- package/build/tools/{advise-reducer.js → advise-receiver.js} +22 -11
- package/build/tools/advise-receiver.js.map +1 -0
- package/build/tools/advise-reporter.d.ts +2 -2
- package/build/tools/advise-reporter.js +10 -4
- package/build/tools/advise-reporter.js.map +1 -1
- package/build/tools/advise-retriever.d.ts +1 -1
- package/build/tools/advise-retriever.js +1 -1
- package/build/tools/correlate-cross-pillar.d.ts +2 -0
- package/build/tools/correlate-cross-pillar.js +9 -1
- package/build/tools/correlate-cross-pillar.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/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 +77 -15
- package/build/tools/dependency-check.js.map +1 -1
- package/build/tools/discover-env.js +1 -1
- package/build/tools/discover-env.js.map +1 -1
- package/build/tools/discover-join.d.ts +2 -0
- package/build/tools/discover-join.js +7 -2
- package/build/tools/discover-join.js.map +1 -1
- package/build/tools/doctor.js +93 -7
- package/build/tools/doctor.js.map +1 -1
- package/build/tools/exclusion-filter.d.ts +9 -3
- package/build/tools/exclusion-filter.js +35 -3
- package/build/tools/exclusion-filter.js.map +1 -1
- package/build/tools/investigate.d.ts +2 -0
- package/build/tools/investigate.js +53 -20
- package/build/tools/investigate.js.map +1 -1
- package/build/tools/login-status.js +17 -2
- package/build/tools/login-status.js.map +1 -1
- 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.js +41 -39
- package/build/tools/poc-from-siem.js.map +1 -1
- 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.js +64 -8
- package/build/tools/retriever-query.js.map +1 -1
- package/build/tools/retriever-series.js +115 -0
- package/build/tools/retriever-series.js.map +1 -1
- 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/services.js +16 -0
- package/build/tools/services.js.map +1 -1
- package/build/tools/signin.d.ts +41 -26
- package/build/tools/signin.js +166 -28
- package/build/tools/signin.js.map +1 -1
- package/build/tools/signout.d.ts +24 -7
- package/build/tools/signout.js +31 -8
- package/build/tools/signout.js.map +1 -1
- package/build/tools/top-patterns.js +63 -2
- package/build/tools/top-patterns.js.map +1 -1
- package/build/tools/translate-metric-to-patterns.d.ts +2 -0
- package/build/tools/translate-metric-to-patterns.js +4 -2
- package/build/tools/translate-metric-to-patterns.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 +7 -2
- package/build/lib/advisor/streamer.d.ts +0 -51
- package/build/lib/advisor/streamer.js +0 -333
- package/build/lib/advisor/streamer.js.map +0 -1
- package/build/lib/streamer-api.d.ts +0 -184
- package/build/lib/streamer-api.js +0 -737
- package/build/lib/streamer-api.js.map +0 -1
- package/build/lib/streamer-fidelity.d.ts +0 -129
- package/build/lib/streamer-fidelity.js +0 -309
- package/build/lib/streamer-fidelity.js.map +0 -1
- package/build/tools/advise-reducer.d.ts +0 -60
- package/build/tools/advise-reducer.js.map +0 -1
- package/build/tools/advise-regulator.js +0 -83
- package/build/tools/advise-regulator.js.map +0 -1
- package/build/tools/advise-streamer.d.ts +0 -66
- package/build/tools/advise-streamer.js +0 -83
- package/build/tools/advise-streamer.js.map +0 -1
- package/build/tools/streamer-query.d.ts +0 -41
- package/build/tools/streamer-query.js +0 -319
- package/build/tools/streamer-query.js.map +0 -1
- package/build/tools/streamer-series.d.ts +0 -38
- package/build/tools/streamer-series.js +0 -440
- package/build/tools/streamer-series.js.map +0 -1
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
|
@@ -145,22 +145,22 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
|
145
145
|
"command": "npx",
|
|
146
146
|
"args": ["-y", "log10x-mcp"],
|
|
147
147
|
"env": {
|
|
148
|
-
"LOG10X_API_KEY": "your-api-key"
|
|
149
|
-
"LOG10X_ENV_ID": "your-env-id"
|
|
148
|
+
"LOG10X_API_KEY": "your-api-key"
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
153
|
```
|
|
155
154
|
|
|
156
|
-
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.
|
|
157
158
|
|
|
158
159
|
### Claude Code
|
|
159
160
|
|
|
160
161
|
```bash
|
|
161
162
|
claude mcp add --transport stdio \
|
|
162
163
|
--env LOG10X_API_KEY=your-api-key \
|
|
163
|
-
--env LOG10X_ENV_ID=your-env-id \
|
|
164
164
|
log10x -- npx -y log10x-mcp
|
|
165
165
|
```
|
|
166
166
|
|
|
@@ -168,51 +168,22 @@ Verify with `/mcp`.
|
|
|
168
168
|
|
|
169
169
|
### Cursor / Windsurf / other MCP clients
|
|
170
170
|
|
|
171
|
-
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`.
|
|
172
172
|
|
|
173
173
|
## Get your credentials
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
2. Open Profile → API Settings
|
|
177
|
-
3. Copy your **API Key** and **Environment ID**
|
|
178
|
-
4. (Optional) Set your **Analyzer Cost** ($/GB for your SIEM) — the server reads this automatically
|
|
175
|
+
Two options:
|
|
179
176
|
|
|
180
|
-
|
|
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.)
|
|
181
179
|
|
|
182
|
-
|
|
180
|
+
## Multi-environment access
|
|
183
181
|
|
|
184
|
-
|
|
185
|
-
{
|
|
186
|
-
"mcpServers": {
|
|
187
|
-
"log10x-prod": {
|
|
188
|
-
"command": "npx",
|
|
189
|
-
"args": ["-y", "log10x-mcp"],
|
|
190
|
-
"env": {
|
|
191
|
-
"LOG10X_API_KEY": "prod-api-key",
|
|
192
|
-
"LOG10X_ENV_ID": "prod-env-id"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"log10x-staging": {
|
|
196
|
-
"command": "npx",
|
|
197
|
-
"args": ["-y", "log10x-mcp"],
|
|
198
|
-
"env": {
|
|
199
|
-
"LOG10X_API_KEY": "staging-api-key",
|
|
200
|
-
"LOG10X_ENV_ID": "staging-env-id"
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
```
|
|
182
|
+
Two patterns, depending on what you need:
|
|
206
183
|
|
|
207
|
-
|
|
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.
|
|
208
185
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
If you need to query many environments from a single process, use `LOG10X_ENVS` with a JSON array of `{nickname, apiKey, envId}` objects. Queries accept an `environment` parameter to route by nickname. This is more complex but avoids spawning N subprocesses.
|
|
212
|
-
|
|
213
|
-
```bash
|
|
214
|
-
LOG10X_ENVS='[{"nickname":"prod","apiKey":"...","envId":"..."},{"nickname":"staging","apiKey":"...","envId":"..."}]'
|
|
215
|
-
```
|
|
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.
|
|
216
187
|
|
|
217
188
|
## Usage
|
|
218
189
|
|
|
@@ -258,9 +229,7 @@ cart — $103 → $13K/wk (3 cost drivers)
|
|
|
258
229
|
|
|
259
230
|
| Variable | Required | Description |
|
|
260
231
|
|---|---|---|
|
|
261
|
-
| `LOG10X_API_KEY` |
|
|
262
|
-
| `LOG10X_ENV_ID` | Yes (single-env) | Your Log10x environment ID |
|
|
263
|
-
| `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. |
|
|
264
233
|
| `LOG10X_API_BASE` | No | API base URL (default: `https://prometheus.log10x.com`) |
|
|
265
234
|
|
|
266
235
|
### Pasted-batch triage (`log10x_resolve_batch`)
|
|
@@ -349,4 +318,24 @@ Full documentation: [doc.log10x.com/manage/mcp-server](https://doc.log10x.com/ma
|
|
|
349
318
|
|
|
350
319
|
## License
|
|
351
320
|
|
|
352
|
-
|
|
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)
|