Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/mcp-cloudflare/src/server/lib/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Sentry MCP Cloudflare",

Check warning on line 92 in packages/mcp-cloudflare/src/server/lib/oauth.ts

View check run for this annotation

Codecov / codecov/patch

packages/mcp-cloudflare/src/server/lib/oauth.ts#L92

Added line #L92 was not covered by tests
},
body: new URLSearchParams({
grant_type: "authorization_code",
Expand Down
2 changes: 2 additions & 0 deletions packages/mcp-cloudflare/src/server/routes/chat-oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
headers: {
"Content-Type": "application/json",
Accept: "application/json",
"User-Agent": "Sentry MCP Chat Demo",

Check warning on line 117 in packages/mcp-cloudflare/src/server/routes/chat-oauth.ts

View check run for this annotation

Codecov / codecov/patch

packages/mcp-cloudflare/src/server/routes/chat-oauth.ts#L117

Added line #L117 was not covered by tests
},
body: JSON.stringify(registrationData),
});
Expand Down Expand Up @@ -163,6 +164,7 @@
headers: {
"Content-Type": "application/x-www-form-urlencoded",
Accept: "application/json",
"User-Agent": "Sentry MCP Chat Demo",

Check warning on line 167 in packages/mcp-cloudflare/src/server/routes/chat-oauth.ts

View check run for this annotation

Codecov / codecov/patch

packages/mcp-cloudflare/src/server/routes/chat-oauth.ts#L167

Added line #L167 was not covered by tests
},
body: body.toString(),
});
Expand Down
1 change: 1 addition & 0 deletions packages/mcp-server/src/api-client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export class SentryApiService {

const headers: Record<string, string> = {
"Content-Type": "application/json",
"User-Agent": "Sentry MCP Server",
};
if (this.accessToken) {
headers.Authorization = `Bearer ${this.accessToken}`;
Expand Down
6 changes: 5 additions & 1 deletion packages/mcp-server/src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ async function sentryDocsHandler(
const path = `${url.pathname.replace(/\/$/, "")}.md`;
const mdUrl = `${url.origin}${path}`;

const response = await fetch(mdUrl);
const response = await fetch(mdUrl, {
headers: {
"User-Agent": "Sentry MCP Server",
},
});
if (!response.ok) {
if (response.status === 404) {
throw new UserInputError(
Expand Down
1 change: 1 addition & 0 deletions packages/mcp-test-client/src/auth/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ export class OAuthClient {
headers: {
"Content-Type": "application/x-www-form-urlencoded",
Accept: "application/json",
"User-Agent": "Sentry MCP CLI",
},
body: body.toString(),
});
Expand Down