@gluneau/hive-mcp-server
Version:
An MCP server that enables AI assistants to interact with the Hive blockchain
79 lines • 4.62 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getChainPropertiesSchema = exports.verifySignatureSchema = exports.signMessageSchema = exports.sendTokenSchema = exports.voteOnPostSchema = exports.createCommentSchema = exports.createPostSchema = exports.getPostsByUserSchema = exports.getPostsByTagSchema = exports.getPostContentSchema = exports.getVestingDelegationsSchema = exports.getAccountHistorySchema = exports.getAccountInfoSchema = exports.getEncryptedMessagesSchema = exports.sendEncryptedMessageSchema = exports.decryptMessageSchema = exports.encryptMessageSchema = exports.analyzeAccountSchema = exports.createPostPromptSchema = void 0;
// Import all the schema objects
const accountSchemas = __importStar(require("./account"));
const contentSchemas = __importStar(require("./content"));
const transactionSchemas = __importStar(require("./transaction"));
const cryptoSchemas = __importStar(require("./crypto"));
const blockchainSchemas = __importStar(require("./blockchain"));
const messagingSchemas = __importStar(require("./messaging"));
const promptsSchemas = __importStar(require("./prompts"));
__exportStar(require("./common"), exports);
// Helper function to extract the shape from a ZodObject
function getZodShape(schema) {
return schema._def.shape();
}
// Prompt schemas
exports.createPostPromptSchema = getZodShape(promptsSchemas.createPostSchema);
exports.analyzeAccountSchema = getZodShape(promptsSchemas.analyzeAccountSchema);
// Messaging schemas
exports.encryptMessageSchema = getZodShape(messagingSchemas.encryptMessageSchema);
exports.decryptMessageSchema = getZodShape(messagingSchemas.decryptMessageSchema);
exports.sendEncryptedMessageSchema = getZodShape(messagingSchemas.sendEncryptedMessageSchema);
exports.getEncryptedMessagesSchema = getZodShape(messagingSchemas.getEncryptedMessagesSchema);
// Account schemas
exports.getAccountInfoSchema = getZodShape(accountSchemas.getAccountInfoSchema);
exports.getAccountHistorySchema = getZodShape(accountSchemas.getAccountHistorySchema);
exports.getVestingDelegationsSchema = getZodShape(accountSchemas.getVestingDelegationsSchema);
// Content schemas
exports.getPostContentSchema = getZodShape(contentSchemas.getPostContentSchema);
exports.getPostsByTagSchema = getZodShape(contentSchemas.getPostsByTagSchema);
exports.getPostsByUserSchema = getZodShape(contentSchemas.getPostsByUserSchema);
exports.createPostSchema = getZodShape(contentSchemas.createPostSchema);
exports.createCommentSchema = getZodShape(contentSchemas.createCommentSchema);
// Transaction schemas
exports.voteOnPostSchema = getZodShape(transactionSchemas.voteOnPostSchema);
exports.sendTokenSchema = getZodShape(transactionSchemas.sendTokenSchema);
// Crypto schemas
exports.signMessageSchema = getZodShape(cryptoSchemas.signMessageSchema);
exports.verifySignatureSchema = getZodShape(cryptoSchemas.verifySignatureSchema);
// Blockchain schemas
exports.getChainPropertiesSchema = getZodShape(blockchainSchemas.getChainPropertiesSchema);
//# sourceMappingURL=index.js.map