UNPKG

@gluneau/hive-mcp-server

Version:

An MCP server that enables AI assistants to interact with the Hive blockchain

61 lines (60 loc) 2.32 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.createPostPrompt = createPostPrompt; exports.analyzeAccountPrompt = analyzeAccountPrompt; // Handler for the create-post prompt function createPostPrompt(params, _extra) { return __awaiter(this, void 0, void 0, function* () { const title = params.title || "[Title]"; const content = params.content || "[Content]"; const tags = params.tags || "hive,blog"; return { messages: [ { role: "user", content: { type: "text", text: `Please create a new post on the Hive blockchain with the following details: Title: ${title} Content: ${content} Tags: ${tags} When done, please provide a link to the published post.` } } ] }; }); } // Handler for the analyze-account prompt function analyzeAccountPrompt(params, _extra) { return __awaiter(this, void 0, void 0, function* () { const username = params.username || "[username]"; return { messages: [ { role: "user", content: { type: "text", text: `Please analyze the Hive account @${username}. Include the following information: - Account age - Posting frequency - Number of followers and following - Common topics/tags - Reputation score - Recent activity` } } ] }; }); } //# sourceMappingURL=prompts.js.map