Integrate in your apps
OneGrep integration
Implement semantic tool search and selection on Blaxel-hosted MCP servers using OneGrep.
This tutorial will walk you through how to use OneGrep to power your agents with semantic tool search, trainable contexts, and feedback-driven selection that gets smarter over time. Access your MCP servers hosted on Blaxel with configurable security policies and guardrails.
This tutorial is based on a TypeScript LangGraph agent.
Prerequisites
- Node.js: v18 or later.
- OneGrep: Install OneGrep CLI and login to your account:
- Blaxel CLI: Ensure you have Blaxel CLI installed.
- Login to Blaxel:
Installation
- Clone the repository and install dependencies:
- Environment Variables: Create a
.env
file with your configuration. You can begin by copying the sample file:
Then, update the following values with your own credentials:
- OneGrep API key:
ONEGREP_API_KEY
- OneGrep URL:
ONEGREP_URL
Running the server locally
Start the development server with hot reloading:
This command starts the server and enables hot reload so that changes to the source code are automatically reflected.
Testing your agent
You can test your agent using the chat interface:
Or run it directly with specific input:
Deploying to Blaxel
When you are ready to deploy your agent:
This command uses your code and the configuration files under the
.blaxel
directory to deploy your application.