Skip to content

Commit 5a3d2f9

Browse files
Clarify TypeScript usage and API details (#23115)
* Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Hyperlint Automation Fix * Update src/content/docs/agents/model-context-protocol/mcp-servers-for-cloudflare.mdx --------- Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com> Co-authored-by: Kody Jackson <[email protected]>
1 parent 1dbd17a commit 5a3d2f9

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

src/content/docs/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-wireformat.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ slug: 1.1.1.1/encryption/dns-over-https/make-api-requests/dns-wireformat
99

1010
Cloudflare respects DNS wireformat as defined in [RFC 1035](https://www.rfc-editor.org/rfc/rfc1035.html).
1111

12-
To send queries using DNS wireformat, set the header `accept: application/dns-message`, or `content-type: application/dns-message` if using `POST` to signalize the media type of the query.
12+
To send queries using DNS wireformat, set the header `accept: application/dns-message`, or `content-type: application/dns-message` if using `POST` to indicate the media type of the query.
1313

1414
Queries using DNS wireformat can be sent using `POST` or `GET`.
1515

src/content/docs/1.1.1.1/setup/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ You can also set up [1.1.1.1 for Families](#1111-for-families) for an added laye
3737
1.1.1.1 for Families has two default options:
3838

3939

40-
<Details header="Block malware">
40+
<Details header='Block malware'>
4141

4242
Use the following DNS resolvers to block malicious content:
4343

src/content/docs/agents/api-reference/store-and-sync-state.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export class MyAgent extends Agent<Env> {
197197

198198
</TypeScriptExample>
199199

200-
You can also supply a [TypeScript type argument](https://www.typescriptlang.org/docs/handbook/2/generics.html#using-type-parameters-in-generic-constraints) the query, which will be used to infer the type of the result:
200+
You can also supply a [TypeScript type argument](https://www.typescriptlang.org/docs/handbook/2/generics.html#using-type-parameters-in-generic-constraints) to the query, which will be used to infer the type of the result:
201201

202202
```ts
203203
type User = {
@@ -209,7 +209,7 @@ type User = {
209209
export class MyAgent extends Agent<Env> {
210210
async onRequest(request: Request) {
211211
let userId = new URL(request.url).searchParams.get('userId');
212-
// Supply the type paramter to the query when calling this.sql
212+
// Supply the type parameter to the query when calling this.sql
213213
// This assumes the results returns one or more User rows with "id", "name", and "email" columns
214214
const user = await this.sql<User>`SELECT * FROM users WHERE id = ${userId}`;
215215
return Response.json(user)

src/content/docs/agents/model-context-protocol/mcp-servers-for-cloudflare.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Render } from "~/components"
1010

1111
Cloudflare runs a catalog of managed remote MCP Servers which you can connect to using OAuth on clients like [Claude](https://modelcontextprotocol.io/quickstart/user), [Windsurf](https://docs.windsurf.com/windsurf/cascade/mcp), our own [AI Playground](https://playground.ai.cloudflare.com/) or any [SDK that supports MCP](https://github.com/cloudflare/agents/tree/main/packages/agents/src/mcp).
1212

13-
These MCP servers allow your MCP Client to read configurations from your account, process information, make suggestions based on data, and even make those suggested changes for you. All of these actions can happen across cloudflare's many services including application development, security and performance.
13+
These MCP servers allow your MCP Client to read configurations from your account, process information, make suggestions based on data, and even make those suggested changes for you. All of these actions can happen across Cloudflare's many services including application development, security and performance.
1414

1515
| Server Name | Description | Server URL |
1616
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------------------------------------------- |
@@ -30,4 +30,5 @@ These MCP servers allow your MCP Client to read configurations from your account
3030
| [Cloudflare One CASB server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/cloudflare-one-casb) | Quickly identify any security misconfigurations for SaaS applications to safeguard users & data | `https://casb.mcp.cloudflare.com/sse` |
3131
| [GraphQL server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/graphql/) | Get analytics data using Cloudflare’s GraphQL API | `https://graphql.mcp.cloudflare.com/sse` |
3232

33-
Check our [GitHub page](https://github.com/cloudflare/mcp-server-cloudflare) to know how to use Cloudflare's remote MCP servers with different MCP clients.
33+
Check our [GitHub page](https://github.com/cloudflare/mcp-server-cloudflare) to know how to use Cloudflare's remote MCP servers with different MCP clients.
34+

src/content/docs/ai-gateway/chat-completion.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ curl -X POST https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/comp
6464

6565
### Universal provider
6666

67-
You can also use this pattern with the [Universal Endpoint](/ai-gateway/universal/) to add [fallbacks](/ai-gateway/configuration/fallbacks/) across multiple providers. When used in combination, every request will return the same standardized format, whether from the primary or fallback model. This behavior means that you do not have to add extra parsing logic to your app.
67+
You can also use this pattern with the [Universal Endpoint](/ai-gateway/universal/) to add [fallbacks](/ai-gateway/configuration/fallbacks/) across multiple providers. When used in combination, every request will return the same standardized format, whether from the primary or fallback model. This behavior means that you do not have to add extra parsing logic to your app.
6868

6969
```ts title="index.ts"
7070
export interface Env {
@@ -77,7 +77,7 @@ export default {
7777
provider: "compat",
7878
endpoint: "chat/completions",
7979
headers: {
80-
authorization: "Bearer ",
80+
authorization: "Bearer",
8181
},
8282
query: {
8383
model: "google-ai-studio/gemini-2.0-flash",

src/content/docs/ai-gateway/configuration/rate-limiting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To illustrate this, let us say you had a limit of ten requests per ten minutes,
1919

2020
## Handling rate limits
2121

22-
When your requests exceed the allowed rate, you'll encounter rate limiting. This means the server will respond with a `429 Too Many Requests` status code and your request won't be processed.
22+
When your requests exceed the allowed rate, you will encounter rate limiting. This means the server will respond with a `429 Too Many Requests` status code and your request will not be processed.
2323

2424
## Default configuration
2525

src/content/docs/ai-gateway/evaluations/add-human-feedback-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ In the example below, the `cf-aig-log-id` is `01JADMCQQQBWH3NXZ5GCRN98DP`.
6262

6363
### Method 2: Retrieve the `cf-aig-log-id` via API (GET request)
6464

65-
If you don't have the `cf-aig-log-id` in the response body or you need to access it after the fact, you can retrieve it by querying the logs using the [Cloudflare API](/api/resources/ai_gateway/subresources/logs/methods/list/).
65+
If you do not have the `cf-aig-log-id` in the response body or you need to access it after the fact, you are able to retrieve it by querying the logs using the [Cloudflare API](/api/resources/ai_gateway/subresources/logs/methods/list/).
6666

6767
The steps below outline how to do this.
6868

src/content/docs/ai-gateway/providers/grok.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pcx_content_type: get-started
55

66
import { Render } from "~/components";
77

8-
[Grok](https://docs.x.ai/docs#getting-started) is s a general purpose model that can be used for a variety of tasks, including generating and understanding text, code, and function calling.
8+
[Grok](https://docs.x.ai/docs#getting-started) is a general purpose model that can be used for a variety of tasks, including generating and understanding text, code, and function calling.
99

1010
## Endpoint
1111

0 commit comments

Comments
 (0)