Skip to content

Commit d3002c8

Browse files
committed
Sync open source content 🐝 (from 84f9f5b1eacf3e3e834b26880064acc0c9d59170)
1 parent 8ddd828 commit d3002c8

File tree

16 files changed

+279
-274
lines changed

16 files changed

+279
-274
lines changed

docs/gram/clients/troubleshooting.mdx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@ title: Troubleshooting
33
description: Overcome common issues when installing MCP servers.
44
---
55

6-
Due to the emerging nature of the MCP specification and differences in how
6+
Due to the emerging nature of the MCP Specification and differences in how
77
various LLM providers and client applications implement it, you may encounter
88
issues when hosting and using MCP servers with Gram. This troubleshooting guide
99
addresses common problems and provides solutions to help you resolve them
1010
quickly.
1111

12-
### Helpful Resources
12+
### Helpful resources
1313

1414
The following external resources provide additional context and information
1515
about MCP, and may be helpful when troubleshooting issues:
1616

1717
- <a href="https://modelcontextprotocol.io/specification/latest"
18-
target="_blank" rel="noreferrer">MCP Specification.</a> The
18+
target="_blank" rel="noreferrer">MCP Specification:</a> The
1919
official documentation for the Model Context Protocol (MCP).
20-
- <a href="https://modelcontextprotocol.io/clients" target="_blank" rel="noreferrer">MCP Client
21-
Feature Support Matrix.</a> A list of well-known LLM clients and their level
22-
of MCP support. _Many LLM clients to do not support all of Gram MCP Server
20+
- <a href="https://modelcontextprotocol.io/clients" target="_blank" rel="noreferrer">MCP client
21+
feature support matrix:</a> A list of well-known LLM clients and their level
22+
of MCP support. _Many LLM clients do not support all of Gram's MCP server
2323
features_.
2424

25-
## Issues with MCP Remote & Node Environments
25+
## Issues with MCP remote and Node.js environments
2626

2727
Some LLM clients, such as **Claude**, are not yet able to connect to remote MCP
28-
servers natively. To overcome this, the `mcp-remote` CLI tool is used to proxy
29-
requests from the LLM client to hosted MCP servers:
28+
servers natively. To overcome this, you can use the `mcp-remote` CLI tool to proxy
29+
requests from an LLM client to hosted MCP servers:
3030

3131
```json filename="mcp-remote"
3232
{
@@ -48,21 +48,21 @@ target="blank">reported</a> servers failing to start, with `Client transport
4848
closed` appearing in client logs.
4949

5050
This is typically due to the LLM client attempting to use an older version of
51-
Node to execute `mcp-remote` than what is required.
51+
Node.js than required to execute `mcp-remote`.
5252

53-
#### Solutions
53+
## Solutions
5454

55-
##### Use Node 20 or Higher (Recommended)
55+
### Use Node.js 20 or higher (recommended)
5656

57-
Ensure that you are using Node.js version 20 or higher. If you run into issues, check in claude desktop logs for what node version it is selecting. Claude desktop has at times shown a tendency to select the lowest version of Node is can find on your machine, regardless of what the default node version is. Instructions for
57+
Ensure that you're using Node.js version 20 or higher. If you run into issues, check the Claude Desktop logs to see which Node.js version it is selecting. Claude Desktop has at times shown a tendency to select the lowest version of Node.js it can find on your machine, regardless of the default Node.js version. Instructions for
5858
installing and managing Node.js versions can be found on the <a
5959
href="https://nodejs.org/en/download/" target="_blank" rel="noreferrer">official Node.js
6060
website</a>.
6161

62-
##### Pin `mcp-remote` to Version `0.1.25`
62+
### Pin `mcp-remote` to version `0.1.25`
6363

64-
If you're not able to install or change to a compatible version of Node, you can pin the
65-
`mcp-remote` package to version `0.1.25` in your MCP configuration.
64+
If you're unable to install or change to a compatible version of Node.js, you can pin the
65+
`mcp-remote` package to version `0.1.25` in your MCP configuration:
6666

6767
```json ins="@0.1.25"
6868
{
@@ -78,9 +78,9 @@ If you're not able to install or change to a compatible version of Node, you can
7878
}
7979
```
8080

81-
## Getting Support
81+
## Getting support
8282

83-
If you're encountering a persistent issue that is not covered in this
83+
If you're encountering a persistent issue that isn't covered in this
8484
troubleshooting guide, please reach out to Gram support via the in-app chat, or
8585
join our <a href="https://go.speakeasy.com/slack" target="_blank" rel="noreferrer">Slack
8686
community</a> to get help!

docs/gram/command-line.mdx

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "Gram CLI Overview"
3-
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
2+
title: "Gram CLI overview"
3+
description: "Learn how to install and use the Gram CLI tool."
44
asIndexPage: true
55
sidebar:
66
order: 0
@@ -14,26 +14,28 @@ configure toolsets, deploy servers, and monitor their performance with ease.
1414

1515
## Installation
1616

17-
**Using `curl`:**
17+
Install the Gram CLI with one of the following methods:
1818

19-
```
20-
curl -fsSL https://go.getgram.ai/cli.sh | bash
21-
```
19+
- Using curl:
2220

23-
**Using Homebrew:**
21+
```
22+
curl -fsSL https://go.getgram.ai/cli.sh | bash
23+
```
2424

25-
```bash
26-
brew update
27-
brew install speakeasy-api/homebrew-tap/gram
28-
```
25+
- Using Homebrew:
26+
27+
```bash
28+
brew update
29+
brew install speakeasy-api/homebrew-tap/gram
30+
```
2931

30-
After installation, verify that the Gram CLI is installed correctly by running:
32+
After installation, run the following command to verify that the Gram CLI is installed correctly:
3133

3234
```bash
3335
gram --version
3436
```
3537

36-
Then authenticate with your Gram account:
38+
Then authenticate yourself with your Gram account:
3739

3840
```bash
3941
gram auth
@@ -53,10 +55,10 @@ Then, inspect your current user information:
5355
gram whoami
5456
```
5557

56-
The first time you run `gram auth`, it will create and save a [Producer
58+
The first time you run `gram auth`, it creates and saves a [Producer
5759
key](/docs/gram/concepts/api-keys#producer-keys) in your Gram dashboard.
5860

59-
## Available Commands
61+
## Available commands
6062

6163
<div className="grid md:grid-cols-4 sm:grid-cols-2 gap-4 w-[42rem] mx-auto">
6264
<a href="/docs/gram/command-line/auth">- auth</a>
@@ -70,71 +72,71 @@ key](/docs/gram/concepts/api-keys#producer-keys) in your Gram dashboard.
7072
<a href="/docs/gram/command-line/whoami">- whoami</a>
7173
</div>
7274

73-
## Global CLI Options
75+
## Global CLI options
7476

75-
Global options can be provided to any Gram CLI command.
77+
You can provide any Gram CLI command with the following global options.
7678

7779
### <code>api-key</code>
7880

79-
Your Gram API key (must be scoped as a 'Provider').
81+
Use `api-key` to provide your Gram API key (which must be scoped as a 'Provider'):
8082

8183
```bash
8284
gram push --api-key MY_API_KEY [command options]
8385
```
8486

85-
When this option is not provided, the CLI will fallback to using the following
87+
When this option is not provided, the CLI falls back to using the following
8688
values, in this order:
8789

88-
- The `GRAM_API_KEY` environment variable.
89-
- The `secret` field of the current profile in `~/.gram/profile.json`.
90+
- The `GRAM_API_KEY` environment variable
91+
- The `secret` field of the current profile in `~/.gram/profile.json`
9092

9193
### <code>project</code>
9294

93-
The slug of the target Gram project.
95+
Use `project` to provide your target Gram project's slug:
9496

9597
```bash
9698
gram push --project my-project [command options]
9799
```
98100

99-
When this option is not provided, the CLI will fallback to using the following
101+
When this option is not provided, the CLI falls back to using the following
100102
values, in this order:
101103

102-
- The `GRAM_PROJECT` environment variable.
103-
- The `defaultProjectSlug` field of the current profile in `~/.gram/profile.json`.
104+
- The `GRAM_PROJECT` environment variable
105+
- The `defaultProjectSlug` field of the current profile in `~/.gram/profile.json`
104106

105107
### <code>log-level</code>
106108

107-
Set the base log level. (default: "info")
109+
Use `log-level` to set the base log level (the default is `info`):
108110

109111
```bash
110112
gram [command] --log-level debug [command options]
111113
```
112114

113-
Can also be set via the `GRAM_LOG_LEVEL` environment variable.
115+
You can also set the base log level via the `GRAM_LOG_LEVEL` environment variable.
114116

115117
### <code>log-pretty</code>
116118

117-
Toggle pretty logging. (default: true)
119+
Use `log-pretty` to toggle pretty logging off. (By default, this option is set to `true`.)
118120

119121
```bash
120122
gram [command] --log-pretty=false [command options]
121123
```
122124

123-
Can also be set via the `GRAM_LOG_PRETTY` environment variable.
125+
You can also enable and disable pretty logging set via the `GRAM_LOG_PRETTY` environment variable.
124126

125127
### <code>profile</code>
126128

127-
Profile name to use from `~/.gram/profile.json`.
129+
Use `profile` to provide the profile name to use from `~/.gram/profile.json`:
128130

129131
```bash
130132
gram [command] --profile production [command options]
131133
```
132134

133-
Can also be set via the `GRAM_PROFILE` environment variable.
135+
You can also set the profile name via the `GRAM_PROFILE` environment variable.
134136

135137
### <code>help</code>
136138

137-
Show help information for any command.
139+
Use `help` to view the help information for any command:
138140

139141
```bash
140142
gram [command] --help
@@ -144,7 +146,7 @@ Short form: `-h`
144146

145147
### <code>version</code>
146148

147-
Print the version of the Gram CLI.
149+
Use `version` to print the version of the Gram CLI.
148150

149151
```bash
150152
gram --version

docs/gram/command-line/auth.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
title: gram auth
3-
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
3+
description: "Authenticate with Gram from the CLI."
44
---
55

66
import { Callout } from '@/mdx/components'
77

88
The `auth` command authenticates with the Gram platform by opening a browser
99
window for login. After successful authentication, it creates and saves a
10-
[Producer API key](/docs/gram/concepts/api-keys#producer-keys) to the local
10+
[Producer API key](/docs/gram/concepts/api-keys#producer-keys) for the local
1111
profile configuration.
1212

1313
<Callout type="info">
1414
The `gram auth` command is typically run once during initial setup. The
15-
created API key and profile information are stored in
15+
API key and profile information it creates are stored in
1616
`~/.gram/profile.json`.
1717
</Callout>
1818

@@ -26,13 +26,13 @@ gram auth
2626

2727
This command will:
2828

29-
1. Open a browser window to the Gram authentication page
30-
2. Prompt for login credentials
31-
3. Create a Producer API key in the Gram dashboard
32-
4. Saves the API key and profile information locally
33-
5. Saves the current project in the browser as your default project
29+
- Open a browser window to the Gram authentication page
30+
- Prompt for login credentials
31+
- Create a Producer API key in the Gram dashboard
32+
- Save the API key and profile information locally
33+
- Save the current project in the browser as your default project
3434

35-
After authentication, verify the setup with [gram whoami](/docs/gram/command-line/whoami).
35+
After authentication, verify the setup with [`gram whoami`](/docs/gram/command-line/whoami).
3636

3737
## Subcommands
3838

@@ -51,11 +51,11 @@ gram auth clear
5151

5252
### <code>api-url</code>
5353

54-
The URL of the Gram web application. This option is useful for connecting to
54+
This option adds the URL of a Gram web application. It's useful for connecting to
5555
custom or self-hosted Gram instances.
5656

5757
```bash
5858
gram auth --api-url https://custom.gram.instance [other options]
5959
```
6060

61-
Can also be set via the `GRAM_API_URL` environment variable.
61+
You can also set the URL of a Gram web app via the `GRAM_API_URL` environment variable.

0 commit comments

Comments
 (0)