scholar-sidekick-mcp 0.3.3 → 0.3.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.
@@ -22170,7 +22170,7 @@ var StdioServerTransport = class {
22170
22170
  // src/types.ts
22171
22171
  var FormatCitationInput = {
22172
22172
  text: external_exports.string().describe(
22173
- "One or more identifiers (DOIs, PMIDs, ISBNs, arXiv IDs, etc.) separated by newlines"
22173
+ "One or more identifiers (DOIs, PMIDs, ISBNs, arXiv IDs, etc.) separated by newlines or commas"
22174
22174
  ),
22175
22175
  style: external_exports.string().optional().describe("Citation style: vancouver (default), ama, apa, ieee, cse, or any CSL style ID"),
22176
22176
  lang: external_exports.string().optional().describe("Locale for formatting (e.g. en-US, en-GB, fr-FR)"),
@@ -22178,7 +22178,7 @@ var FormatCitationInput = {
22178
22178
  output: external_exports.enum(["text", "html", "json"]).optional().describe("Output format (default: text)")
22179
22179
  };
22180
22180
  var ExportCitationInput = {
22181
- text: external_exports.string().describe("One or more identifiers (DOIs, PMIDs, ISBNs, etc.) separated by newlines"),
22181
+ text: external_exports.string().describe("One or more identifiers (DOIs, PMIDs, ISBNs, etc.) separated by newlines or commas"),
22182
22182
  format: external_exports.enum([
22183
22183
  "bib",
22184
22184
  "ris",
@@ -22196,7 +22196,7 @@ var ExportCitationInput = {
22196
22196
  };
22197
22197
  var ResolveIdentifierInput = {
22198
22198
  text: external_exports.string().describe(
22199
- "One or more identifiers to resolve (DOIs, PMIDs, PMCIDs, ISBNs, arXiv IDs, ISSNs, ADS bibcodes) separated by newlines"
22199
+ "One or more identifiers to resolve (DOIs, PMIDs, PMCIDs, ISBNs, arXiv IDs, ISSNs, ADS bibcodes) separated by newlines or commas"
22200
22200
  )
22201
22201
  };
22202
22202
  var SCHOLAR_HEADER_NAMES = [
@@ -30075,6 +30075,9 @@ var EMPTY_COMPLETION_RESULT = {
30075
30075
  };
30076
30076
 
30077
30077
  // src/tools/helpers.ts
30078
+ function normalizeIdentifiers(text) {
30079
+ return text.includes(",") && !text.includes("\n") ? text.split(",").map((s) => s.trim()).filter(Boolean).join("\n") : text;
30080
+ }
30078
30081
  function errorResult(result) {
30079
30082
  const parts = [];
30080
30083
  if (result.error) parts.push(result.error);
@@ -30106,7 +30109,7 @@ function registerExportTool(server, config2) {
30106
30109
  },
30107
30110
  async (input) => {
30108
30111
  const result = await exportCitation(config2, {
30109
- text: input.text,
30112
+ text: normalizeIdentifiers(input.text),
30110
30113
  format: input.format,
30111
30114
  style: input.style ?? void 0,
30112
30115
  lang: input.lang ?? void 0
@@ -30132,7 +30135,7 @@ function registerFormatTool(server, config2) {
30132
30135
  },
30133
30136
  async (input) => {
30134
30137
  const result = await formatCitation(config2, {
30135
- text: input.text,
30138
+ text: normalizeIdentifiers(input.text),
30136
30139
  style: input.style ?? void 0,
30137
30140
  lang: input.lang ?? void 0,
30138
30141
  footnote: input.footnote ?? void 0,
@@ -30168,7 +30171,7 @@ function registerResolveTool(server, config2) {
30168
30171
  },
30169
30172
  async (input) => {
30170
30173
  const result = await formatCitation(config2, {
30171
- text: input.text,
30174
+ text: normalizeIdentifiers(input.text),
30172
30175
  output: "json"
30173
30176
  });
30174
30177
  if (!result.ok || result.data?.ok === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scholar-sidekick-mcp",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "mcpName": "io.github.mlava/scholar-sidekick-mcp",
5
5
  "description": "MCP server for Scholar Sidekick — resolve, format, and export academic citations from any AI assistant",
6
6
  "license": "MIT",