@leanmcp/core 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.
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -634,7 +634,8 @@ var MCPServer = class {
|
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
try {
|
|
637
|
-
const
|
|
637
|
+
const meta = request.params.arguments?._meta;
|
|
638
|
+
const result = await tool.method.call(tool.instance, request.params.arguments, meta);
|
|
638
639
|
let formattedResult = result;
|
|
639
640
|
if (methodMeta.renderFormat === "markdown" && typeof result === "string") {
|
|
640
641
|
formattedResult = result;
|
|
@@ -889,7 +890,8 @@ var MCPServerRuntime = class {
|
|
|
889
890
|
}
|
|
890
891
|
}
|
|
891
892
|
try {
|
|
892
|
-
const
|
|
893
|
+
const meta = request.params.arguments?._meta;
|
|
894
|
+
const result = await tool.method.call(tool.instance, request.params.arguments, meta);
|
|
893
895
|
if (result && typeof result === "object" && result.type === "elicitation") {
|
|
894
896
|
return {
|
|
895
897
|
content: [
|
package/dist/index.mjs
CHANGED
|
@@ -577,7 +577,8 @@ var MCPServer = class {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
try {
|
|
580
|
-
const
|
|
580
|
+
const meta = request.params.arguments?._meta;
|
|
581
|
+
const result = await tool.method.call(tool.instance, request.params.arguments, meta);
|
|
581
582
|
let formattedResult = result;
|
|
582
583
|
if (methodMeta.renderFormat === "markdown" && typeof result === "string") {
|
|
583
584
|
formattedResult = result;
|
|
@@ -832,7 +833,8 @@ var MCPServerRuntime = class {
|
|
|
832
833
|
}
|
|
833
834
|
}
|
|
834
835
|
try {
|
|
835
|
-
const
|
|
836
|
+
const meta = request.params.arguments?._meta;
|
|
837
|
+
const result = await tool.method.call(tool.instance, request.params.arguments, meta);
|
|
836
838
|
if (result && typeof result === "object" && result.type === "elicitation") {
|
|
837
839
|
return {
|
|
838
840
|
content: [
|