productboard-mcp
Version:
Integrate the Productboard API into agentic workflows via MCP
23 lines (22 loc) • 687 B
JavaScript
import productboardClient from "../productboard_client.js";
const getFeaturesTool = {
"name": "get_features",
"description": "Returns a list of all features. This API is paginated and the page limit is always 100",
"inputSchema": {
"type": "object",
"properties": {
"page": {
"type": "number",
"default": 1
}
}
}
};
const getFeatures = async (request) => {
let endpoint = "/features";
if (request.page && request.page > 1) {
endpoint += `?pageOffset=${(request.page - 1) * 100}`;
}
return productboardClient.get(endpoint);
};
export { getFeaturesTool, getFeatures };