Skip to content

Conversation

@polinom
Copy link
Owner

@polinom polinom commented Jan 5, 2026

Summary

  • Add Model Context Protocol (MCP) server support with three tools for remote agent access
  • Improve invalid bot token detection and recovery
  • Make documentation more concise and user-friendly

New Features

  • MCP Server Support: Enable with --enable-mcp flag
  • Three MCP Tools: local_claude_code, local_codex, local_cli
  • Independent Sessions: MCP sessions are separate from Telegram conversations
  • Invalid Token Recovery: Auto-detect 404 errors and prompt for new token

Documentation Improvements

  • Reduced README.md by 60% while maintaining all essential information
  • Added prominent MCP feature documentation
  • Updated website (docs/index.html) with MCP feature card
  • Added comprehensive MCP testing documentation in CLAUDE.md

Dependencies Added

  • mcp>=1.25.0
  • fastmcp>=2.0.0
  • websockets<14.0

Files Changed

  • New: telecode/mcp_server.py, tests/test_mcp_server.py
  • Modified: telecode/cli.py, telecode/server.py, README.md, docs/index.html, pyproject.toml (v0.1.5)

Test Plan

  • Unit tests for MCP server tools
  • Invalid token detection and recovery
  • Documentation accuracy
  • Manual testing of MCP endpoint
  • Manual testing of Telegram bot with new version

🤖 Generated with Claude Code

New Features:
- Add Model Context Protocol (MCP) server support
- Expose three MCP tools: local_claude_code, local_codex, local_cli
- Enable remote agent access to local AI engines
- Add --enable-mcp CLI flag
- Independent session management for MCP (separate from Telegram)
- Proper lifespan integration for FastMCP

Improvements:
- Improve invalid bot token detection and recovery
- Auto-prompt for new token when 404 error detected
- Make README.md more concise and user-friendly (60% shorter)
- Add MCP feature prominently to documentation
- Update website (docs/index.html) with MCP feature
- Add comprehensive MCP testing documentation in CLAUDE.md

Dependencies:
- Add mcp>=1.25.0
- Add fastmcp>=2.0.0
- Add websockets<14.0

Version: 0.1.5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@polinom polinom merged commit e3d6e8a into main Jan 5, 2026
0 of 6 checks passed
@polinom polinom deleted the claude/add-mcp-server-support branch January 5, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants