Initial checkin of Blueprint-MCP plugin
This commit is contained in:
22
tools/blueprint-mcp/dist/material-describe.js
vendored
Normal file
22
tools/blueprint-mcp/dist/material-describe.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export function describeMaterial(data) {
|
||||
const lines = [];
|
||||
if (data.name) {
|
||||
lines.push(`# Material: ${data.name}`);
|
||||
}
|
||||
if (data.description) {
|
||||
lines.push(data.description);
|
||||
return lines.join("\n");
|
||||
}
|
||||
// Format inputs array if present
|
||||
if (data.inputs && Array.isArray(data.inputs)) {
|
||||
for (const input of data.inputs) {
|
||||
const connected = input.connected ? "" : " (disconnected)";
|
||||
lines.push(`${input.input}: ${input.chain || "empty"}${connected}`);
|
||||
}
|
||||
}
|
||||
if (lines.length <= 1) {
|
||||
lines.push("No material input data available.");
|
||||
}
|
||||
return lines.join("\n");
|
||||
}
|
||||
//# sourceMappingURL=material-describe.js.map
|
||||
Reference in New Issue
Block a user