rhombus-node-mcp
Version:
MCP server for Rhombus API
18 lines (17 loc) • 651 B
JavaScript
import { postApi } from "../network.js";
async function getOrg(requestModifiers) {
return await postApi("/org/getOrgV2", {}, requestModifiers);
}
export function createTool(server) {
server.tool("get-org-information", "Get general information about the organization including org name, camera configuration defaults, contact information, and org settings.", {}, async (_, extra) => {
const org = await getOrg(extra._meta?.requestModifiers);
return {
content: [
{
type: "text",
text: JSON.stringify(org),
},
],
};
});
}