We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/firebase/genkit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
README.md•1.62 KiB
# Cohere AI Hello Sample
A sample demonstrating how to use [Cohere](https://cohere.com/) models with
[Genkit](https://github.com/firebase/genkit).
## Features
This sample exercises the following Genkit + Cohere capabilities:
| Feature | Flow |
|---------------------------------|-------------------------------|
| Simple text generation | `generate_greeting` |
| System prompts | `generate_with_system_prompt` |
| Multi-turn chat | `generate_multi_turn_chat` |
| Streaming | `generate_streaming_story` |
| Custom model config | `generate_with_config` |
| Tool calling | `generate_weather` |
| Structured output (JSON) | `generate_character` |
| Multi-turn chat (manual) | `chat_flow` |
| Embeddings | `embed_flow` |
## Prerequisites
1. A Cohere API key — get one from https://dashboard.cohere.com/api-keys
2. Set the `COHERE_API_KEY` environment variable
## Running
```bash
# From the sample directory:
./run.sh
# The run.sh script will:
# 1. Check for COHERE_API_KEY
# 2. Install dependencies
# 3. Start the Genkit Dev UI + sample server
```
## Testing Flows
Once the Dev UI is open, you can test any flow from the sidebar.
Common test inputs:
- **generate_greeting**: `{"name": "World"}`
- **generate_weather**: `{"location": "San Francisco"}`
- **generate_character**: `{"name": "Eldric the Wise"}`
- **embed_flow**: `{"text": "Cohere builds powerful AI models"}`
## License
Apache-2.0