UNPKG

openalex-mcp

Version:

A Model Context Protocol (MCP) server that provides access to the OpenAlex API - a fully open catalog of the global research system covering over 240 million scholarly works.

18 lines (17 loc) 487 B
import { makeOpenAlexRequest } from "../utils.js"; export async function classifyText(args) { const { title, abstract, mailto } = args; const params = {}; if (title) params.title = title; if (abstract) params.abstract = abstract; if (mailto) params.mailto = mailto; return { content: [{ type: "text", text: JSON.stringify(await makeOpenAlexRequest("/text", params), null, 2) }] }; }