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