text stringlengths 0 59.1k |
|---|
npm create voltagent-app@latest -- --example with-google-drive-mcp |
``` |
This command uses our `create-voltagent-app` tool to fetch the complete project code. |
**Step 2: Jump Into the Project Directory** |
```bash |
cd with-google-drive-mcp |
``` |
**Step 3: Install Dependencies** |
Our example has two main parts: the `server` (where the VoltAgent logic runs) and the `client` (the simple chat interface you'll see in your browser). We need to install the necessary Node.js packages for both. |
```bash |
# Install server dependencies |
cd server |
npm install |
# Go back and install client dependencies |
cd ../client |
npm install |
# Go back to the project root |
cd .. |
``` |
**Step 4: Configure Your API Keys** |
The agent needs credentials to talk to OpenAI (for the AI model) and Composio (for the Google Drive tool). |
- Navigate into the `server` directory (`cd server` if you're in the root). |
- Create a new file named `.env` (just `.env`, no name before the dot). |
- Paste the following into your new `server/.env` file: |
```env |
# Get your Composio API key from https://app.composio.dev/developers |
COMPOSIO_API_KEY="your_composio_api_key" |
# Get your Google Drive Integration ID from Composio (https://app.composio.dev/app/googledrive) |
# You might need to add the Google Drive app in Composio first. |
GOOGLE_INTEGRATION_ID="your_google_integration_id" |
# Get your OpenAI API key from https://platform.openai.com/api-keys |
OPENAI_API_KEY="your_openai_api_key" |
``` |
- Now, replace the placeholder values: |
- Log into [Composio](https://app.composio.dev/). Find your API Key under Developer settings and paste it in. |
- In Composio, go to the Apps section, find (or add) Google Drive, and copy its Integration ID. Paste that in. |
- Head over to [OpenAI](https://platform.openai.com/api-keys) to get your API key and paste it in. |
- Save the `.env` file. **Remember to keep these keys private!** Don't commit them to Git. |
**Step 5: Start the App** |
You'll need two separate terminal windows for this. |
- **Terminal 1: Start the Server** |
```bash |
# Make sure you're in the project root `with-google-drive-mcp` first |
cd server |
npm run dev |
``` |
You should see some output indicating the server is running, usually on `http://localhost:3000`. |
- **Terminal 2: Start the Client** |
```bash |
# Make sure you're in the project root `with-google-drive-mcp` first |
cd client |
npm run dev |
``` |
This command usually opens the chat interface automatically in your default web browser (likely at `http://localhost:5173`). |
**Step 6: Connect Google Drive & Start Chatting!** |
The first time you load the web interface, Composio will likely guide you through a quick process to authorize access to your Google Account (securely, using OAuth). Once you've done that, you're ready! You can start asking the chatbot to find files in your Google Drive. |
 |
## Seeing What's Going On: Observability |
When we build agents, figuring out _why_ they did something (or why they failed) is super important. That's observability. We knew this would be critical, so we built observability features right into VoltAgent. |
You can easily connect your VoltAgent applications to the [VoltOps LLM Observability Platform](https://console.voltagent.dev). It gives you detailed logs and traces, showing exactly what steps the agent took, which tools it called (like the Google Drive search), the data flowing in and out, and any errors that occurred... |
 |
## Conclusion |
And that's pretty much it! By combining our VoltAgent framework with Composio's handy MCP-based tool integration, we were able to quickly spin up a useful chatbot that talks securely to Google Drive. We think this example really shows the power of using standardized protocols like MCP and frameworks like VoltAgent to a... |
The `create-voltagent-app` command makes trying out examples like this a breeze. We encourage you to grab the code, play around with it, check out the [VoltAgent documentation](https://voltagent.dev/docs/), and see what kinds of cool agents _you_ can build. Let us know what you create! |
<|endoftext|> |
# source: VoltAgent__voltagent/website/blog/2025-08-11-llm-finetuning/index.md type: docs |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.