@leanmcp/core 0.1.0 → 0.1.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/dist/index.js CHANGED
@@ -634,7 +634,8 @@ var MCPServer = class {
634
634
  }
635
635
  }
636
636
  try {
637
- const result = await tool.method.call(tool.instance, request.params.arguments);
637
+ const meta = request.params._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 result = await tool.method.call(tool.instance, request.params.arguments);
893
+ const meta = request.params._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 result = await tool.method.call(tool.instance, request.params.arguments);
580
+ const meta = request.params._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 result = await tool.method.call(tool.instance, request.params.arguments);
836
+ const meta = request.params._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: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanmcp/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Core library implementing decorators, reflection, and MCP runtime server",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",