cleanup
This commit is contained in:
10
.claude/commands/bridge.md
Normal file
10
.claude/commands/bridge.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Toggle Telegram Bridge
|
||||
|
||||
Control the Telegram notification bridge on/off.
|
||||
|
||||
Usage:
|
||||
- `/bridge on` - Enable notifications
|
||||
- `/bridge off` - Disable notifications
|
||||
- `/bridge status` - Check current status
|
||||
|
||||
When you enable or disable the bridge, update the ENABLED value in the .env file and restart the bridge service if it's running.
|
||||
26
README.md
26
README.md
@@ -1,6 +1,8 @@
|
||||
# Claude Telegram Bridge
|
||||
# InnerVoice
|
||||
|
||||
**MCP Server for Two-Way Communication with Telegram**
|
||||
**Your inner thoughts, delivered to Telegram**
|
||||
|
||||
*MCP Server for Two-Way Communication with Claude Code and any app*
|
||||
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
|
||||
@@ -58,15 +60,13 @@ This is a **standard MCP server** that works like any other MCP tool. Once insta
|
||||
|
||||
```bash
|
||||
# Clone or download this repo
|
||||
cd claude-telegram-bridge
|
||||
cd innervoice
|
||||
|
||||
# Install dependencies
|
||||
pnpm install
|
||||
|
||||
# Copy environment template
|
||||
cp .env.example .env
|
||||
|
||||
# Edit .env and add your bot token
|
||||
# The .env file is created automatically!
|
||||
# Just edit it and add your bot token
|
||||
# TELEGRAM_BOT_TOKEN=your_token_here
|
||||
```
|
||||
|
||||
@@ -104,7 +104,7 @@ pnpm daemon
|
||||
#### Option A: Auto-Generate Config (Easiest)
|
||||
|
||||
```bash
|
||||
cd claude-telegram-bridge
|
||||
cd innervoice
|
||||
./scripts/get-mcp-config.sh
|
||||
```
|
||||
|
||||
@@ -117,10 +117,10 @@ Add to your Claude Code MCP settings (`~/.config/claude-code/settings/mcp.json`)
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"telegram": {
|
||||
"innervoice": {
|
||||
"command": "node",
|
||||
"args": [
|
||||
"/ABSOLUTE/PATH/TO/claude-telegram-bridge/dist/mcp-server.js"
|
||||
"/ABSOLUTE/PATH/TO/innervoice/dist/mcp-server.js"
|
||||
],
|
||||
"env": {
|
||||
"TELEGRAM_BRIDGE_URL": "http://localhost:3456"
|
||||
@@ -132,7 +132,7 @@ Add to your Claude Code MCP settings (`~/.config/claude-code/settings/mcp.json`)
|
||||
|
||||
**Find your path:**
|
||||
```bash
|
||||
cd claude-telegram-bridge && pwd
|
||||
cd innervoice && pwd
|
||||
# Use output: <result>/dist/mcp-server.js
|
||||
```
|
||||
|
||||
@@ -232,7 +232,7 @@ git add .
|
||||
git commit -m "Initial commit: Telegram MCP server"
|
||||
|
||||
# Add your remote
|
||||
git remote add origin https://github.com/yourusername/claude-telegram-bridge.git
|
||||
git remote add origin https://github.com/yourusername/innervoice.git
|
||||
|
||||
# Push
|
||||
git push -u origin main
|
||||
@@ -488,5 +488,5 @@ MIT License - see [LICENSE](LICENSE) for details
|
||||
|
||||
## Contact
|
||||
|
||||
- **Issues:** https://github.com/RichardDillman/claude-telegram-bridge/issues
|
||||
- **Issues:** https://github.com/RichardDillman/innervoice/issues
|
||||
- **Email:** rdillman@gmail.com
|
||||
|
||||
13
package.json
13
package.json
@@ -1,20 +1,21 @@
|
||||
{
|
||||
"name": "claude-telegram-bridge",
|
||||
"name": "innervoice",
|
||||
"version": "1.0.0",
|
||||
"description": "Standalone Telegram notification bridge for Claude Code and any other apps",
|
||||
"description": "Your inner thoughts, delivered to Telegram - A notification bridge for Claude Code and any other apps",
|
||||
"main": "dist/index.js",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"telegram-bridge-mcp": "dist/mcp-server.js"
|
||||
"innervoice": "dist/mcp-server.js"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "bash scripts/postinstall.sh",
|
||||
"build": "tsc",
|
||||
"dev": "tsx src/index.ts",
|
||||
"mcp": "tsx src/mcp-server.ts",
|
||||
"start": "node dist/index.js",
|
||||
"daemon": "pm2 start dist/index.js --name claude-telegram",
|
||||
"stop": "pm2 stop claude-telegram",
|
||||
"logs": "pm2 logs claude-telegram",
|
||||
"daemon": "pm2 start dist/index.js --name innervoice",
|
||||
"stop": "pm2 stop innervoice",
|
||||
"logs": "pm2 logs innervoice",
|
||||
"tools": "node scripts/list-tools.js",
|
||||
"config": "bash scripts/get-mcp-config.sh"
|
||||
},
|
||||
|
||||
15
scripts/postinstall.sh
Executable file
15
scripts/postinstall.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Auto-create .env from .env.example if it doesn't exist
|
||||
if [ ! -f .env ]; then
|
||||
echo "📝 Creating .env file from .env.example..."
|
||||
cp .env.example .env
|
||||
echo "✅ .env file created successfully!"
|
||||
echo ""
|
||||
echo "⚠️ IMPORTANT: Please edit .env and add your Telegram bot token:"
|
||||
echo " 1. Get token from @BotFather on Telegram"
|
||||
echo " 2. Update TELEGRAM_BOT_TOKEN in .env"
|
||||
echo ""
|
||||
else
|
||||
echo "✅ .env file already exists"
|
||||
fi
|
||||
Reference in New Issue
Block a user