Commit Graph

5 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 916c71bf65 Address PR feedback - simplify implementation and documentation
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
Build and Test Go Project / build (windows-latest) (push) Has been cancelled
- Reverted function rename: NewToolResultResource now takes flag parameter directly
- Fixed duplicate flag checks: check once and reuse variable
- Fixed comments: "base64 data" → "raw binary data", "annotations" → "metadata"
- Simplified Antigravity docs: removed "soon support" and update references
- Simplified server-configuration.md: removed remote server mentions and redundant notes

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-02-04 13:11:28 +00:00
copilot-swe-agent[bot] 724304578b Fix ImageContent data encoding - use raw bytes not double-encoded base64
The MCP SDK handles base64 encoding during JSON marshaling, so the Data
field should contain raw binary data, not pre-encoded base64 strings.
This prevents double-encoding where base64 strings were being encoded again.

- Updated NewToolResultResourceWithFlag to pass raw binary data
- Updated test to verify raw binary data instead of base64 string
- Removed unused encoding/base64 imports

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-02-04 12:37:28 +00:00
copilot-swe-agent[bot] 9f93e6585b Add documentation for MCP_DISABLE_EMBEDDED_RESOURCES feature flag
- Added Feature Flags section to server-configuration.md
- Added troubleshooting note to Antigravity installation guide
- Fixed linter issue in result_test.go
- Generated updated documentation

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-02-04 12:34:20 +00:00
copilot-swe-agent[bot] 6bce2d5234 Add MCP_DISABLE_EMBEDDED_RESOURCES feature flag for file contents
- Added FeatureFlagDisableEmbeddedResources constant to feature_flags.go
- Implemented NewToolResultResourceWithFlag in utils/result.go
  - When flag is enabled, returns TextContent for text files
  - Returns ImageContent with base64 data for binary files
  - Maintains backward compatibility when flag is disabled
- Updated get_file_contents tool to check feature flag and use new function
- Added comprehensive tests for both utils function and integration with get_file_contents

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-02-04 12:32:17 +00:00
Adam Holt 60aef5d2e3 Convert to modelcontextprotocol/go-sdk (#1428)
Move from `mark3labs/mcp-go` to `modelcontextprotocol/go-sdk`.

This is mostly focused on updating tool schema and tool handler signatures, along with any associated internal changes related to those changes.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
Co-authored-by: LuluBeatson <lulubeatson@github.com>
Co-authored-by: Lulu <59149422+LuluBeatson@users.noreply.github.com>
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
Co-authored-by: Sam Morrow <info@sam-morrow.com>
2025-12-01 14:30:59 +01:00