Skip to content

Bootstrap the server using the official mcp go-sdk#348

Open
Shweta-Deshpande wants to merge 17 commits into
mainfrom
TFECO-12234
Open

Bootstrap the server using the official mcp go-sdk#348
Shweta-Deshpande wants to merge 17 commits into
mainfrom
TFECO-12234

Conversation

@Shweta-Deshpande

Copy link
Copy Markdown
Collaborator

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@Shweta-Deshpande Shweta-Deshpande requested a review from a team as a code owner May 1, 2026 07:04

@jaylonmcshan19-x jaylonmcshan19-x left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. PR #337 adds a security check that blocks TFE_ADDRESS headers when TFE_TOKEN comes from env var. Once that merges, the new helper will need the same logic I believe

WildcardName string `json:"wildcard_name,omitempty" jsonschema:"Wildcard pattern"`
}

mcp.AddTool(svr, &mcp.Tool{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Quick question! what's the plan for testing the new SDK tools? I believe the existing tests check tool creation via the returned ServerTool struct, but with mcp.AddTool() being inline, I think we might need a different approach.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah will look into it and create a new ticket and PR for that.

@Shweta-Deshpande Shweta-Deshpande May 6, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Correction: migration of existing e2e tests will also be done via this PR. Thanks @jaylonmcshan19-x

Comment thread .github/workflows/build.yml Fixed
Comment thread Dockerfile.official
# dev runs the binary from devbuild
# -----------------------------------
# Make a stage to run the app
FROM scratch AS dev
Comment thread Dockerfile.official

# default release image (refereced in .github/workflows/build.yml)
# -----------------------------------
FROM scratch AS release-default
Comment thread Dockerfile.official
# Set default target to 'dev'.
#
# ===================================
FROM dev
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.

3 participants