Install google-mcp-server for Opencode

Aperta Adatta ai principianti
#22 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash, node.js, shell

Direzione di ricerca

Leggi prima i passaggi esistenti di clonazione del progetto e di installazione negli script di setup di questo repo, per riprendere le loro convenzioni su percorso di checkout e idempotenza; dotfiles' config/opencode/opencode.jsonc mostra il percorso assoluto richiesto. Aggiungi un passaggio che clona google-mcp-server in ~/Projects, esegue npm ci e npm run build (Node >= 24) e copia GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET da system-scripts/.env senza committarli. Metti il npm run auth interattivo dietro una richiesta di conferma esplicita, poi verifica che node ~/Projects/google-mcp-server/dist/index.js termini correttamente quando stdin viene chiuso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Context

A new MCP server, garretpatten/google-mcp-server, now provides Google Calendar and Google Tasks (read/write) to opencode over stdio. It authenticates with the published Google OAuth app shared with system-scripts/backups.

The opencode configuration in garretpatten/dotfiles (config/opencode/opencode.jsonc) already references the server:

"mcp": {
  "google": {
    "type": "local",
    "command": ["node", "/home/garret/Projects/google-mcp-server/dist/index.js"],
    "enabled": true,
  },
}

The path is machine-specific (absolute), so the setup script must produce that checkout.

Task

Add installation of google-mcp-server to this repository's setup flow so the opencode config works on a fresh machine:

  1. Clone https://github.com/garretpatten/google-mcp-server into the conventional projects location (e.g. ~/Projects/google-mcp-server) — same convention used for other project clones in this repo's scripts.
  2. Run npm ci and npm run build (Node >= 24; the repo declares engines).
  3. Copy the Google OAuth client credentials (GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET) from system-scripts/.env into the new repo's .env (never commit them).
  4. Prompt the user to run npm run auth once — an interactive browser consent flow that stores GOOGLE_REFRESH_TOKEN in the repo's .env. This requires user interaction, so gate it or make it an explicit opt-in step rather than an unattended script.
  5. Verify: node ~/Projects/google-mcp-server/dist/index.js starts cleanly (it is a stdio MCP server; exiting cleanly on stdin close is success).

No changes are needed in dotfiles — its opencode.jsonc already consumes the server and sets permissions (read tools allow, write tools ask). Only the installation/checkout step belongs here.

References

Lingua principale
Shell
Stelle
1
Fork
0
Merge medio
7h 8m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di garretpatten/fedora-setup-scripts

Tutte le issue di garretpatten/fedora-setup-scripts

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.