Skip to content

@W-22390723: updated resource url to include tableau-mcp#341

Open
mattcfilbert wants to merge 3 commits into
mainfrom
resource_metadata_url
Open

@W-22390723: updated resource url to include tableau-mcp#341
mattcfilbert wants to merge 3 commits into
mainfrom
resource_metadata_url

Conversation

@mattcfilbert
Copy link
Copy Markdown
Contributor

@mattcfilbert mattcfilbert commented May 7, 2026

Description

Updated resource url to include /tableau-mcp

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Checklist

  • I have updated the version in the package.json file by using npm run version. For example,
    use npm run version:patch for a patch version bump.
  • I have made any necessary changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have documented any breaking changes in the PR description. For example, renaming a config
    environment variable or changing its default value.

Contributor Agreement

By submitting this pull request, I confirm that:

Comment thread src/server/oauth/authMiddleware.ts Outdated
Comment thread tests/oauth/embedded-authz/oauth.test.ts Outdated
*/
export function oauthProtectedResource(app: express.Application): void {
app.get('/.well-known/oauth-protected-resource', (_req, res) => {
app.get(`/${serverName}/.well-known/oauth-protected-resource`, (_req, res) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doc has a few references to the old endpoint that need updating: https://tableau.github.io/tableau-mcp/docs/configuration/mcp-config/oauth

Comment thread src/server/oauth/authMiddleware.ts Outdated
if (missingScopes.length > 0) {
const { resourceUri } = getConfig().oauth;
const baseUrl = new URL(resourceUri).origin;
const resourceMetadataUrl = `${baseUrl}/tableau-mcp/.well-known/oauth-protected-resource`;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: not that it would likely ever change, but should probably use ${serverName} here instead of tableau-mcp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants