loading…
Search for a command to run...
loading…
A centralized automation hub that provides a unified interface for AI agents to interact with various services, currently featuring Discord forum post creation.
A centralized automation hub that provides a unified interface for AI agents to interact with various services, currently featuring Discord forum post creation. It offers an extensible TypeScript architecture designed for easily adding new tool domains and integrating with platforms like Claude Desktop and Cursor.
Personal MCP (Model Context Protocol) server for centralized automation tools. Provides a unified interface so nanobot, Qwen, Cursor, Claude Desktop, and other AI agents can invoke the same set of tools through a single server.
Current tools
| Tool | Domain | Description |
|---|---|---|
discord_create_forum_post |
Discord | Creates a new post in a Discord Forum channel |
pnpm install
# or
make install
cp .env.example .env
# Open .env and fill in DISCORD_BOT_TOKEN
See .env.example for descriptions and links to obtain each value.
pnpm dev
# or
make dev
pnpm build # compiles src/ → dist/
pnpm start # runs dist/index.js
# or
make build && make start
src/
├── index.ts Entry point — validates config, creates MCP server, registers tools
├── core/
│ ├── config.ts Centralised env-var config; call validateConfig() at startup
│ └── httpClient.ts Shared fetch wrapper with retry, error formatting, request logging
├── tools/
│ ├── index.ts Single source of truth for allTools[] — only file to edit when adding a domain
│ ├── discord/
│ │ ├── index.ts Exports discordTools[]
│ │ ├── forum.ts discord_create_forum_post tool
│ │ └── helpers.ts Discord REST API helpers (private to this domain)
│ └── _template/
│ ├── index.ts Template domain index
│ ├── exampleTool.ts Template tool — copy & adapt
│ └── HOWTO.md Step-by-step guide for adding a new tool domain
└── types/
└── index.ts ToolDefinition interface and shared types
tests/
└── tools/
└── discord/
└── forum.test.ts Unit tests for discord_create_forum_post
Full walkthrough: src/tools/_template/HOWTO.md
TL;DR — three steps, zero changes to src/index.ts:
cp -r src/tools/_template src/tools/github
mv src/tools/github/exampleTool.ts src/tools/github/createIssue.ts
Edit createIssue.ts:
import { z } from 'zod';
import { type ToolDefinition } from '../../types/index.js';
import { config } from '../../core/config.js'; // ← env vars here
import { httpRequest } from '../../core/httpClient.js'; // ← HTTP here
const Schema = z.object({ repo: z.string(), title: z.string() });
export const githubCreateIssueTool: ToolDefinition = {
name: 'github_create_issue',
description: '...',
inputSchema: { type: 'object', properties: { ... }, required: ['repo', 'title'] },
handler: async (input) => {
const { repo, title } = Schema.parse(input);
// … call GitHub API …
return `Issue created: ${url}`;
},
};
Update src/tools/github/index.ts:
import { githubCreateIssueTool } from './createIssue.js';
export const githubTools = [githubCreateIssueTool];
Open src/tools/index.ts and add one line:
import { githubTools } from './github/index.js';
export const allTools: ToolDefinition[] = [
...discordTools,
...githubTools, // ← add this
];
Done. No other file needs to change.
| Rule | Why |
|---|---|
All env vars through config.* |
Single validation point; tests can override process.env safely |
All HTTP through httpRequest() |
Unified retry, error format, and logging |
| Input validated with Zod in every handler | Type safety at runtime; descriptive errors for the agent |
console.log forbidden; use console.error |
MCP uses stdout for JSON-RPC — any extra stdout breaks the protocol |
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"jachy-mcp-server": {
"command": "node",
"args": ["/absolute/path/to/jachy-mcp-server/dist/index.js"],
"env": {
"DISCORD_BOT_TOKEN": "your-token-here"
}
}
}
}
Add to your Cursor MCP settings (~/.cursor/mcp.json or workspace .cursor/mcp.json):
{
"mcpServers": {
"jachy-mcp-server": {
"command": "node",
"args": ["/absolute/path/to/jachy-mcp-server/dist/index.js"],
"env": {
"DISCORD_BOT_TOKEN": "your-token-here"
}
}
}
}
In your nanobot config file:
{
"mcp_servers": {
"jachy": {
"command": ["node", "/absolute/path/to/jachy-mcp-server/dist/index.js"],
"env": {
"DISCORD_BOT_TOKEN": "your-token-here"
}
}
}
}
tsx for development (skip build step)Replace node dist/index.js with npx tsx src/index.ts in any config above and omit the build step.
pnpm dev # Run with hot-reload (tsx watch)
pnpm build # Compile TypeScript → dist/
pnpm start # Run compiled output
pnpm test # Run tests once (vitest)
pnpm test:watch # Run tests in watch mode
pnpm lint # ESLint
pnpm format # Prettier (writes in-place)
Or use make <command> for any of the above.
DISCORD_BOT_TOKEN in .env.bot and permission Send Messages + Create Public Threads.ISC
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"jachy-mcp-server": {
"command": "npx",
"args": []
}
}
}Read, send and search emails from Claude
Send, search and summarize Slack messages
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)