sciverse-mcp-server 0.8.0 → 0.9.0

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.
@@ -1,4 +1,4 @@
1
- export declare const TOOLS_VERSION = "0.8.0";
1
+ export declare const TOOLS_VERSION = "0.9.0";
2
2
  export interface ToolDef {
3
3
  name: string;
4
4
  description: string;
@@ -1,6 +1,6 @@
1
1
  // Auto-generated by scripts/gen-tools.mjs. Do not edit.
2
2
  // Source of truth: openapi.yaml
3
- export const TOOLS_VERSION = "0.8.0";
3
+ export const TOOLS_VERSION = "0.9.0";
4
4
  export const TOOLS = [
5
5
  {
6
6
  "name": "search_papers",
package/dist/tools.js CHANGED
@@ -155,10 +155,15 @@ export async function executeTool(config, name, args) {
155
155
  case "semantic_search":
156
156
  return call(config, "POST", endpoint.path, { body: args });
157
157
  case "list_catalog": {
158
- const { include_sample_values } = args;
159
- return call(config, "GET", endpoint.path, {
160
- query: { include_sample_values: String(Boolean(include_sample_values)) },
161
- });
158
+ const { include_sample_values, include_field_stats, collection } = args;
159
+ const query = {
160
+ include_sample_values: String(Boolean(include_sample_values)),
161
+ };
162
+ if (include_field_stats)
163
+ query.include_field_stats = "true";
164
+ if (collection)
165
+ query.collection = collection;
166
+ return call(config, "GET", endpoint.path, { query });
162
167
  }
163
168
  case "read_content": {
164
169
  const { doc_id, offset, limit } = args;
@@ -180,6 +185,16 @@ export async function executeTool(config, name, args) {
180
185
  }
181
186
  return callBinary(config, endpoint.path, { file_name });
182
187
  }
188
+ case "list_paper_relations": {
189
+ const { unique_id, relation } = args;
190
+ if (!unique_id || !relation) {
191
+ return {
192
+ isError: true,
193
+ content: [{ type: "text", text: JSON.stringify({ error: "unique_id and relation are required" }) }],
194
+ };
195
+ }
196
+ return call(config, "POST", endpoint.path, { body: args });
197
+ }
183
198
  default:
184
199
  return {
185
200
  isError: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sciverse-mcp-server",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Sciverse MCP server — exposes academic paper retrieval (search_papers / semantic_search / read_content) to MCP-compatible coding agents (Claude Code, Cursor, Codex CLI, Windsurf, ...).",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/opendatalab/Sciverse-Agent-Tools/tree/main/packages/mcp",