Skip to main content
Glama

Pinecone Assistant MCP

Official
by pinecone-io
config.rs917 B
use std::env; #[derive(Clone, Debug)] pub struct Config { pub pinecone_api_key: String, pub pinecone_assistant_host: String, pub log_level: String, } impl Config { pub fn from_env() -> Self { const PINECONE_API_KEY: &str = "PINECONE_API_KEY"; const PINECONE_ASSISTANT_HOST: &str = "PINECONE_ASSISTANT_HOST"; const LOG_LEVEL: &str = "LOG_LEVEL"; let pinecone_api_key = env::var(PINECONE_API_KEY).expect(&format!( "Missing environment variable: {}", PINECONE_API_KEY )); let pinecone_assistant_host = env::var(PINECONE_ASSISTANT_HOST) .unwrap_or_else(|_| "https://prod-1-data.ke.pinecone.io".to_string()); let log_level = env::var(LOG_LEVEL).unwrap_or_else(|_| "info".to_string()); Self { pinecone_api_key, pinecone_assistant_host, log_level, } } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinecone-io/assistant-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server