Skip to content

Update environment variable name from VECTORIZE_API_KEY to VECTORIZE_TOKEN #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A Model Context Protocol (MCP) server implementation that integrates with [Vecto

```bash
export VECTORIZE_ORG_ID=YOUR_ORG_ID
export VECTORIZE_API_KEY=YOUR_API_KEY
export VECTORIZE_TOKEN=YOUR_TOKEN
npx -y @vectorize-io/vectorize-mcp-server
```

Expand All @@ -24,7 +24,7 @@ npx -y @vectorize-io/vectorize-mcp-server
"args": ["-y", "@vectorize-io/vectorize-mcp-server"],
"env": {
"VECTORIZE_ORG_ID": "your-org-id",
"VECTORIZE_API_KEY": "your-api-key"
"VECTORIZE_TOKEN": "your-token"
}
}
}
Expand Down Expand Up @@ -90,4 +90,4 @@ npm run build

1. Fork the repository
2. Create your feature branch
3. Submit a pull request
3. Submit a pull request
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ const server = new Server(

// Get optional API URL
const VECTORIZE_ORG_ID = process.env.VECTORIZE_ORG_ID;
const VECTORIZE_API_KEY = process.env.VECTORIZE_API_KEY;
const VECTORIZE_TOKEN = process.env.VECTORIZE_TOKEN;
// Check if API key is required (only for cloud service)
if (!VECTORIZE_ORG_ID || !VECTORIZE_API_KEY) {
if (!VECTORIZE_ORG_ID || !VECTORIZE_TOKEN) {
console.error(
'Error: VECTORIZE_API_KEY and VECTORIZE_ORG_ID environment variable are required'
'Error: VECTORIZE_TOKEN and VECTORIZE_ORG_ID environment variable are required'
);
process.exit(1);
}
const vectorizeApi = new Configuration({
accessToken: VECTORIZE_API_KEY,
accessToken: VECTORIZE_TOKEN,
});

server.setRequestHandler(ListToolsRequestSchema, async () => ({
Expand Down