UNPKG

productboard-mcp

Version:

Integrate the Productboard API into agentic workflows via MCP

23 lines (22 loc) 701 B
import productboardClient from "../productboard_client.js"; const getComponentsTool = { "name": "get_components", "description": "Returns a list of all components. This API is paginated and the page limit is always 100", "inputSchema": { "type": "object", "properties": { "page": { "type": "number", "default": 1 } } } }; const getComponents = async (request) => { let endpoint = "/components"; if (request.page && request.page > 1) { endpoint += `?pageOffset=${(request.page - 1) * 100}`; } return productboardClient.get(endpoint); }; export { getComponentsTool, getComponents };