Gemini CLI
Coming after the API launch
These steps describe the SemaLink MCP server as it is planned. They may change before launch.
Gemini CLI connects with a personal access token.
1. Create a token
In the dashboard, open Developer, then AI access, then Create token. Choose:
- Scopes: read-only, or read and send.
- Caps: the most it may spend a day and the most recipients per send (KES 1,000 and 100 by default).
- Sandbox only, if you just want to experiment.
- Expiry: 90 days by default.
Copy the token (sat_...). It's shown once.
2. Add SemaLink to Gemini CLI
Add this to ~/.gemini/settings.json (or .gemini/settings.json in a project):
json
{
"mcpServers": {
"semalink": {
"httpUrl": "https://mcp.semalink.africa/mcp",
"headers": {
"Authorization": "Bearer sat_..."
}
}
}
}1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Gemini CLI reads environment variables in its settings, so you can keep the token out of the file:
json
{
"mcpServers": {
"semalink": {
"httpUrl": "https://mcp.semalink.africa/mcp",
"headers": {
"Authorization": "Bearer $SEMALINK_AI_TOKEN"
}
}
}
}1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
3. Check it
Start gemini and run /mcp. You should see semalink with its tools. Then ask:
Show my SemaLink sender IDs and which networks have approved them.
Sending takes two steps: Gemini shows you the preview and sends only after you confirm. See Tools and safety.