{"_id":"@andrewhopper/hivemind","_rev":"1-5a322e6c333577eb36ba402bfa05fd22","name":"@andrewhopper/hivemind","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@andrewhopper/hivemind","version":"1.0.0","keywords":["mcp","server","hivemind"],"author":{"name":"Andrew Hopper"},"license":"MIT","_id":"@andrewhopper/hivemind@1.0.0","maintainers":[{"name":"andrewhopper","email":"hopperab@gmail.com"}],"homepage":"https://github.com/andrewhopper/hivemind#readme","bugs":{"url":"https://github.com/andrewhopper/hivemind/issues"},"dist":{"shasum":"e3b47bcab1df561ac3222cf110f5a5a08a84c816","tarball":"https://registry.npmjs.org/@andrewhopper/hivemind/-/hivemind-1.0.0.tgz","fileCount":46,"integrity":"sha512-hFQSrU/W/VBFhm3I7m3hXZp8aT35C2jT0WsWTKsBHf53GHjen57uCaVOeI/qzjcbSe1aU9lcZostEi05p2rJVw==","signatures":[{"sig":"MEUCIQClXGXD6c+SWB4CbRBtZPWgqGcZsS8hr05cAP2Mm1yqAgIgWKUHD64X7m4Aw7hrKhpRKXXxNHIyrYHi3Lm2RLllUdE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":102905},"main":"index.js","gitHead":"56d1f894b2316acce946b22f9d1659a4013e0691","_npmUser":{"name":"andrewhopper","email":"hopperab@gmail.com"},"repository":{"url":"git+https://github.com/andrewhopper/hivemind.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP ","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hivemind_1.0.0_1740504138293_0.8169436028575596","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@andrewhopper/hivemind","version":"1.0.1","description":"MCP ","main":"index.js","bin":{"hivemind":"index.js"},"author":{"name":"Andrew Hopper"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrewhopper/hivemind.git"},"keywords":["mcp","server","hivemind"],"_id":"@andrewhopper/hivemind@1.0.1","gitHead":"56d1f894b2316acce946b22f9d1659a4013e0691","bugs":{"url":"https://github.com/andrewhopper/hivemind/issues"},"homepage":"https://github.com/andrewhopper/hivemind#readme","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-s9/t+0+Gnh0YWOGPxjs9rFPWjpcU7EBTR4GpkJPrJ31mMn/AHsWTc3DQSLsAxPelm34PRXa787VoQwdFsBFqeA==","shasum":"37672aa633ac83b6306ab255929a30b446d8ae4a","tarball":"https://registry.npmjs.org/@andrewhopper/hivemind/-/hivemind-1.0.1.tgz","fileCount":47,"unpackedSize":102951,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCZV97uxDQr6pcDnsHX/lK/vNPDGJFvVVqPU4REajbFNwIhAI3GtbEfWZ4haCGNoG6gE7YIU1xCaY2kK2NRRZONEsov"}]},"_npmUser":{"name":"andrewhopper","email":"hopperab@gmail.com"},"directories":{},"maintainers":[{"name":"andrewhopper","email":"hopperab@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hivemind_1.0.1_1740504526654_0.2437725047742787"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-25T17:22:18.202Z","modified":"2025-02-25T17:28:47.007Z","1.0.0":"2025-02-25T17:22:18.469Z","1.0.1":"2025-02-25T17:28:46.852Z"},"bugs":{"url":"https://github.com/andrewhopper/hivemind/issues"},"author":{"name":"Andrew Hopper"},"license":"MIT","homepage":"https://github.com/andrewhopper/hivemind#readme","keywords":["mcp","server","hivemind"],"repository":{"type":"git","url":"git+https://github.com/andrewhopper/hivemind.git"},"description":"MCP ","maintainers":[{"name":"andrewhopper","email":"hopperab@gmail.com"}],"readme":"# Hivemind MCP Server\n\nAn MCP server for managing development knowledge and validation through facts and acceptance criteria. This server provides tools for storing, retrieving, and validating architectural decisions, coding standards, and best practices.\n\n## Features\n\n- Store and manage development facts with strictness levels\n- Track dependencies between facts\n- Define acceptance criteria for validation\n- Categorize facts by type (frontend, backend, database, etc.)\n- Prisma-based SQLite storage\n- Full TypeScript support\n\n## Installation\n\n```bash\nnpm install @modelcontextprotocol/hivemind\n```\n\n## Configuration\n\n1. Environment Variables:\n   - No environment variables required by default\n   - SQLite database is created automatically in `prisma/facts.db`\n\n2. Database Setup:\n   ```bash\n   # Generate Prisma Client\n   npm run prisma:generate\n   \n   # Run migrations\n   npx prisma migrate deploy\n   \n   # Seed the database with default facts\n   npm run db:seed\n   ```\n\n## Usage\n\n### As an MCP Server\n\n```typescript\nimport { Server } from '@modelcontextprotocol/hivemind';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio';\n\nconst server = new Server({\n  name: 'hivemind',\n  version: '1.0.0'\n});\n\nconst transport = new StdioServerTransport();\nawait server.connect(transport);\n```\n\n### Available Tools\n\n1. `get_all_facts`: Get all facts in the system\n2. `get_fact`: Get a fact by ID\n3. `search_facts`: Search facts by type, strictness, and version\n4. `set_fact`: Create or update a fact\n5. `validate_criteria`: Validate content against fact acceptance criteria\n\n## Development\n\n### Project Structure\n\n```\nhivemind/\n├── prisma/\n│   ├── schema.prisma    # Database schema\n│   ├── migrations/      # Database migrations\n│   └── seed/           # Seed data\n│       ├── index.ts    # Main seed file\n│       └── data/       # Categorized seed data\n│           ├── frontend.ts\n│           ├── backend.ts\n│           ├── database.ts\n│           ├── architecture.ts\n│           ├── documentation.ts\n│           └── tooling.ts\n├── src/\n│   ├── index.ts        # Main server file\n│   ├── storage.ts      # Database operations\n│   ├── types.ts        # Type definitions\n│   └── validation.ts   # Validation logic\n└── package.json\n```\n\n### Scripts\n\n- `npm run build` - Build the TypeScript code\n- `npm run dev` - Run the server in development mode\n- `npm run start` - Run the built server\n- `npm run prisma:generate` - Generate Prisma Client\n- `npm run prisma:seed` - Run database seeding\n- `npm run db:seed` - Alias for prisma db seed\n\n### Seeding\n\nThe server comes with pre-defined facts covering various aspects of development:\n\n- Frontend practices (React, Next.js, styling)\n- Backend patterns (Python, FastCGI, MVC)\n- Database requirements (PostgreSQL, ORMs)\n- Architecture decisions\n- Documentation standards\n- Development tooling\n\nTo modify or add new facts:\n\n1. Edit or create new files in `prisma/seed/data/`\n2. Run `npm run db:seed` to apply changes\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a new Pull Request\n","readmeFilename":"README.md"}