A powerful Microsoft Word 2010 Add-in that brings Agentic AI capabilities directly into your document workflow. Built with C++/ATL and designed for seamless integration with AI services via the Model Context Protocol (MCP).
- π― Task Pane UI - Modern, elegant interface integrated into Word
- ποΈ SQLite Database - Local storage for settings, history, and context
- π€ MCP Client - Connect to AI servers via Model Context Protocol
- β‘ High Performance - Native C++ with optional Zig components
AgenticAIOnWord/
βββ π include/ # Header files (.h)
β βββ framework.h # ATL/Office framework includes
β βββ Connect.h # Add-in connection handler
β βββ TaskPaneControl.h # Task pane UI control
β βββ ...
β
βββ π src/ # Source files (.cpp)
β βββ Connect.cpp # IDTExtensibility2 implementation
β βββ TaskPaneControl.cpp # UI implementation
β βββ ...
β
βββ π res/ # Resources
β βββ AgenticAIOnWord.rc # Resource script
β βββ *.rgs # Registry scripts
β βββ AgenticAIOnWord.def # Module definition
β
βββ π idl/ # Interface definitions
β βββ AgenticAIOnWord.idl
β
βββ π scripts/ # Helper scripts
β βββ RegisterWordAddin.reg
β
βββ CMakeLists.txt # CMake build configuration
βββ AgenticAIOnWord.vcxproj # Visual Studio project
- Visual Studio 2022 with C++ desktop development
- Windows SDK 10.0.19041.0 or later
- Microsoft Office 2010 (32-bit) or later
- CMake 3.20+ (optional, for CMake builds)
# Using MSBuild (recommended)
msbuild AgenticAIOnWord.vcxproj /p:Configuration=Debug /p:Platform=Win32
# Or using CMake
cmake -B build -A Win32
cmake --build build --config Debug# Run as Administrator
regsvr32 "Debug\AgenticAIOnWord.dll"- Open Word 2010
- Go to File β Options β Add-ins
- Select COM Add-ins β Go...
- Check Agentic AI Assistant
- Click OK
- Integrate SQLite for local storage
- Store user preferences and settings
- Cache conversation history
- Document context persistence
- Modern Task Pane design with GDI+
- Dark/Light theme support
- Smooth animations and transitions
- Rich text input with markdown preview
- Responsive layout
- Implement MCP Client protocol
- Connect to MCP-compatible AI servers
- Tool calling and resource management
- Streaming responses
- High-performance MCP client in Zig
- Async networking with minimal overhead
- C/C++ interop via Zig's C ABI
- Cross-platform potential
- Document analysis and summarization
- Smart formatting assistance
- Multi-language support
- Voice commands (optional)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Microsoft Word 2010 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β AgenticAIOnWord Add-in β
β βββββββββββββββ βββββββββββββββ βββββββββββββββββββββββ β
β β Task Pane β β Connect β β Word Object β β
β β UI ββββ€ Handler ββββ€ Model β β
β ββββββββ¬βββββββ βββββββββββββββ βββββββββββββββββββββββ β
β β β
β ββββββββΌβββββββ βββββββββββββββ β
β β SQLite β β MCP Client ββββββ Zig Bridge β
β β Storage β β (C++/Zig) β β
β βββββββββββββββ ββββββββ¬βββββββ β
ββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ
β
ββββββββββΌβββββββββ
β MCP Server β
β (Claude, GPT, β
β Local LLM...) β
βββββββββββββββββββ
| Component | Technology |
|---|---|
| Core Add-in | C++ / ATL / COM |
| UI Framework | Win32 GDI+ / Direct2D |
| Database | SQLite 3 |
| AI Protocol | Model Context Protocol (MCP) |
| High-perf Bridge | Zig |
| Build System | MSBuild / CMake |
#include <sqlite3.h>
// Initialize database
sqlite3* db;
sqlite3_open("agenticai.db", &db);
// Create tables
sqlite3_exec(db, R"(
CREATE TABLE IF NOT EXISTS settings (
key TEXT PRIMARY KEY,
value TEXT
);
CREATE TABLE IF NOT EXISTS history (
id INTEGER PRIMARY KEY,
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
role TEXT,
content TEXT
);
)", nullptr, nullptr, nullptr);class IMCPClient {
public:
virtual HRESULT Connect(LPCWSTR serverUrl) = 0;
virtual HRESULT SendMessage(LPCWSTR message, IMCPCallback* callback) = 0;
virtual HRESULT CallTool(LPCWSTR toolName, LPCWSTR args) = 0;
virtual HRESULT Disconnect() = 0;
};MIT License - See LICENSE for details.
Contributions are welcome! Please read the contributing guidelines before submitting PRs.
Made with β€οΈ for enhanced document productivity