summarylogtreecommitdiffstats
path: root/rustgraph.install
blob: d9e84f072ce4f8978e9960bc29f6a6eeb594d58d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
post_install() {
    cat <<'EOF'

  ######################################################################
  #                                                                    #
  #  rustgraph installed                                               #
  #                                                                    #
  #  Register the MCP server with Claude / Codex / Gemini:             #
  #      $ rustgraph mcp install                                       #
  #                                                                    #
  #  List:      rustgraph mcp list                                     #
  #  Uninstall: rustgraph mcp uninstall                                #
  #                                                                    #
  ######################################################################

EOF
}

post_upgrade() {
    post_install
}

post_remove() {
    cat <<'EOF'

  rustgraph removed. MCP entries in
      ~/.claude.json
      ~/.codex/config.toml
      ~/.gemini/settings.json
  may still reference the (now-missing) rustgraph binary. AI clients
  will fail to spawn the MCP server until the entries are cleaned up
  manually. If you reinstall later, run:
      $ rustgraph mcp uninstall   # removes the dead entries
  Or edit the config files directly.

EOF
}