@mthines/reaper-mcp 0.107.0 → 0.108.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.
- package/README.md +45 -45
- package/bridge-ui/mcp_bridge.html +49 -48
- package/main.js +9 -0
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -283,6 +283,8 @@ var ALLOWED_SPAN_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
|
283
283
|
"mcp.method.name",
|
|
284
284
|
"gen_ai.tool.name",
|
|
285
285
|
"gen_ai.operation.name",
|
|
286
|
+
// Which feature area the tool is in: a key of TOOL_CATEGORIES (tools/categories.ts), or `uncategorized`
|
|
287
|
+
"reaper.tool.category",
|
|
286
288
|
"network.transport",
|
|
287
289
|
"error.type",
|
|
288
290
|
"rpc.system",
|
|
@@ -4682,6 +4684,12 @@ function registerExtensionCategory(extension, description, tools) {
|
|
|
4682
4684
|
TOOL_CATEGORIES[name] = { name, description, tools };
|
|
4683
4685
|
return name;
|
|
4684
4686
|
}
|
|
4687
|
+
function toolCategory(toolName) {
|
|
4688
|
+
for (const [name, category] of Object.entries(TOOL_CATEGORIES)) {
|
|
4689
|
+
if (category.tools.includes(toolName)) return name;
|
|
4690
|
+
}
|
|
4691
|
+
return "uncategorized";
|
|
4692
|
+
}
|
|
4685
4693
|
var visibleCategories = null;
|
|
4686
4694
|
function setVisibleCategories(names) {
|
|
4687
4695
|
visibleCategories = names;
|
|
@@ -10039,6 +10047,7 @@ function instrumentToolHandlers(server) {
|
|
|
10039
10047
|
attributes: {
|
|
10040
10048
|
...metricAttrs,
|
|
10041
10049
|
"gen_ai.operation.name": "execute_tool",
|
|
10050
|
+
"reaper.tool.category": toolCategory(toolName),
|
|
10042
10051
|
...extra?.requestId != null && { "jsonrpc.request.id": String(extra.requestId) },
|
|
10043
10052
|
...extra?.sessionId && { "mcp.session.id": extra.sessionId }
|
|
10044
10053
|
}
|
package/package.json
CHANGED