{"id":29635217,"url":"https://github.com/purinton/architect","last_synced_at":"2025-08-09T22:12:40.857Z","repository":{"id":301056162,"uuid":"1008018237","full_name":"purinton/architect","owner":"purinton","description":"AI-powered Discord server automation and administration. Integrates Model Context Protocol (MCP) and OpenAI for natural language server management, built on the purinton/discord foundation.","archived":false,"fork":false,"pushed_at":"2025-07-11T15:49:55.000Z","size":554,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-08T21:21:01.612Z","etag":null,"topics":["admin","ai","architect","automation","bot","discord","mcp","nodejs","openai","purinton","server-management"],"latest_commit_sha":null,"homepage":"https://discord.gg/QSBxQnX7PF","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purinton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-24T22:37:08.000Z","updated_at":"2025-07-11T15:49:58.000Z","dependencies_parsed_at":"2025-07-21T16:24:07.091Z","dependency_job_id":"f1fc21ec-ad65-452e-b340-1c9015e9bab1","html_url":"https://github.com/purinton/architect","commit_stats":null,"previous_names":["purinton/architect"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/purinton/architect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Farchitect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Farchitect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Farchitect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Farchitect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purinton","download_url":"https://codeload.github.com/purinton/architect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Farchitect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269646039,"owners_count":24452851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","ai","architect","automation","bot","discord","mcp","nodejs","openai","purinton","server-management"],"created_at":"2025-07-21T16:10:24.060Z","updated_at":"2025-08-09T22:12:40.831Z","avatar_url":"https://github.com/purinton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [![Purinton Dev](https://purinton.us/logos/brand.png)](https://discord.gg/QSBxQnX7PF)\n\n## @purinton/architect [![npm version](https://img.shields.io/npm/v/@purinton/architect.svg)](https://www.npmjs.com/package/@purinton/architect)[![license](https://img.shields.io/github/license/purinton/architect.svg)](LICENSE)[![build status](https://github.com/purinton/architect/actions/workflows/nodejs.yml/badge.svg)](https://github.com/purinton/architect/actions)\n\nA modern, AI-powered Discord app for server automation and administration, built with Node.js and the [@purinton/discord](https://github.com/purinton/discord) foundation. Architect integrates the Model Context Protocol (MCP) and OpenAI for conversational, natural language server management.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Getting Started](#getting-started)\n- [Configuration](#configuration)\n- [Running as a Service (systemd)](#running-as-a-service-systemd)\n- [Docker](#docker)\n- [Customization](#customization)\n  - [Commands](#commands)\n  - [Events](#events)\n  - [Locales](#locales)\n- [Testing](#testing)\n- [Support](#support)\n- [License](#license)\n- [Links](#links)\n\n## Features\n\n- AI-driven Discord server automation and administration\n- Conversational interface: chat with Architect by mentioning `@Architect` or replying to its messages\n- Only responds to users with **Administrator** permissions for security\n- Multi-language/localized responses (see `locales/`)\n- Command and event handler architecture (see `commands/` and `events/`)\n- Environment variable support via dotenv\n- Logging and signal handling via `@purinton/common`\n- Ready for deployment with systemd or Docker\n- Jest for testing\n\n## Getting Started\n\n1. **Clone this project:**\n\n   ```bash\n   git clone https://github.com/purinton/architect.git\n   cd architect\n   npm install\n   ```\n\n2. **Set up your environment:**\n   - Copy `.env.example` to `.env` and fill in your Discord app token and other secrets.\n   - Edit `package.json` (name, description, author, etc.)\n   - Update this `README.md` as needed.\n\n3. **Start the app locally:**\n\n   ```bash\n   npm start\n   # or\n   node architect.mjs\n   ```\n\n## Configuration\n\n- All configuration is handled via environment variables in the `.env` file.\n- See `.env.example` for required and optional variables.\n- The `openai.json` file configures OpenAI prompt and tool integration.\n- The `tools.json` file (or `tools.json.example`) defines available MCP tools.\n\n## Running as a Service (systemd)\n\n1. Copy `architect.service` to `/usr/lib/systemd/system/architect.service`.\n2. Edit the paths and user/group as needed.\n3. Reload systemd and start the service:\n\n   ```bash\n   sudo systemctl daemon-reload\n   sudo systemctl enable architect\n   sudo systemctl start architect\n   sudo systemctl status architect\n   ```\n\n## Docker\n\n1. Build the Docker image:\n\n   ```bash\n   docker build -t architect .\n   ```\n\n2. Run the container:\n\n   ```bash\n   docker run --env-file .env architect\n   ```\n\n## Customization\n\n### Commands\n\n- Add new commands in the `commands/` directory.\n- Each command has a `.json` definition (for Discord registration/localization) and a `.mjs` handler (for logic).\n- Example: see `commands/help.json` and `commands/help.mjs`.\n\n### Events\n\n- Add or modify event handlers in the `events/` directory.\n- Each Discord event (e.g., `ready`, `messageCreate`, `interactionCreate`) has its own handler file.\n- Example: see `events/messageCreate.mjs` for AI chat logic.\n\n### Locales\n\n- Add or update language files in the `locales/` directory.\n- Localize command names, descriptions, and app responses.\n- Example: see `locales/en-US.json` for English responses.\n\n## Testing\n\n- Run tests with:\n\n  ```bash\n  npm test\n  ```\n\n- Tests are in the `tests/` folder and cover commands, events, and tools.\n\n## Support\n\nFor help, questions, or to chat with the author and community, visit:\n\n[![Discord](https://purinton.us/logos/discord_96.png)](https://discord.gg/QSBxQnX7PF)[![Purinton Dev](https://purinton.us/logos/purinton_96.png)](https://discord.gg/QSBxQnX7PF)\n\n**[Purinton Dev on Discord](https://discord.gg/QSBxQnX7PF)**\n\n## License\n\n[MIT © 2025 Russell Purinton](LICENSE)\n\n## Links\n\n- [GitHub Repo](https://github.com/purinton/architect)\n- [GitHub Org](https://github.com/purinton)\n- [GitHub Personal](https://github.com/rpurinton)\n- [Discord](https://discord.gg/QSBxQnX7PF)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurinton%2Farchitect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurinton%2Farchitect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurinton%2Farchitect/lists"}