Commit Graph

644 Commits

Author SHA1 Message Date
tommaso-moro 78b3d7a4cb pass inventory only, as now toolsets are handled in instructions generation process
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
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
2026-01-22 14:55:05 +00:00
tommaso-moro 98267fef7b add instructionsFunc to toolset metadata 2026-01-22 14:54:48 +00:00
tommaso-moro 0c16e33286 refactor to use toolset instructions from new toolset metadata 2026-01-22 14:54:19 +00:00
tommaso-moro e743cf113e add instructions generation to toolset metadata 2026-01-22 14:53:57 +00:00
tommaso-moro e6dd894b8c fix typo 2026-01-22 12:53:33 +00:00
tommaso-moro 30bc840294 add instructions step to inventory creation both in stdio and http server 2026-01-22 12:33:24 +00:00
tommaso-moro 540a0e74e0 add WithServerInstructions to builder 2026-01-22 12:32:53 +00:00
tommaso-moro 61be0e1a89 move instructions.go and tests from github package to inventory package 2026-01-22 12:32:22 +00:00
tommaso-moro 1d8019b08f add instructions to inventory 2026-01-22 12:32:04 +00:00
Adam Holt abffbf5f35 Add option to provide additional MCP server options via config 2026-01-20 12:33:05 +01:00
Adam Holt 740fbff6e6 Add a github server factory to HTTPMcpHandler to allow dependency injection in remote 2026-01-20 11:06:16 +01:00
Adam Holt f13e75d8c3 Add API Host interface to resolve URLs dynamically 2026-01-19 14:44:19 +01:00
kerobbi 886025a96d add missing features.go 2026-01-19 12:15:08 +00:00
kerobbi d16f98b66d make headers parsing more robust, draft composite ff checker 2026-01-19 12:12:04 +00:00
kerobbi ad7a49a839 fix some linter errors, make port configurable 2026-01-19 11:58:39 +00:00
Adam Holt 61db07dba7 Remove extra config fields from HTTP server config 2026-01-15 12:09:49 +01:00
Adam Holt ed37e6f489 Move inventory creation to HTTP handler and add factory pattern. 2026-01-15 11:56:20 +01:00
Adam Holt 7feaee3b9e Add VSCode launch configuration for HTTP server 2026-01-14 13:33:51 +01:00
Adam Holt db34a0c8d0 Fix the broken tests after our HTTP stack refactor 2026-01-14 13:00:48 +01:00
Adam Holt 32d2342318 Move http stuff into its own package 2026-01-14 12:50:49 +01:00
Adam Holt f3802d5607 Move lockdown to context 2026-01-13 18:22:11 +01:00
Adam Holt 3e30fc87cc Initial HTTP stack 2026-01-13 17:56:15 +01:00
Oleksandr Redko 31b541ea08 chore: remove binary files 2026-01-12 19:59:21 +01:00
Sam Morrow f62ff634c5 Regenerate documentation TOCs
Docker / build (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
GoReleaser Release / release (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Publish to MCP Registry / publish (push) Has been cancelled
v0.28.1
2026-01-12 15:45:58 +01:00
copilot-swe-agent[bot] d18f26e559 Add GraphQL-Features header support for agent assignment API
- Add context-based GraphQL feature flag support
- Modify bearerAuthTransport to read features from context and add GraphQL-Features header
- Use issues_copilot_assignment_api_support feature flag for updateIssue mutation
- Export GetGraphQLFeatures function for use in HTTP transport layer

This allows the assign_copilot_to_issue tool to work with the non-GA agent assignment API
by sending the required GraphQL-Features header.

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-12 15:45:58 +01:00
copilot-swe-agent[bot] 88d117bd82 Add base_ref support to assign_copilot_to_issue tool
- Add optional base_ref parameter to tool schema
- Change from replaceActorsForAssignable to updateIssue mutation with agentAssignment
- Add AgentAssignmentInput and UpdateIssueInput structs for new GraphQL mutation
- Update all tests to use new mutation structure
- Add test case for base_ref functionality
- Update toolsnaps and documentation

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-12 15:45:58 +01:00
Sam Morrow c44ce2e2b8 chore: remove unused filterResourcesByURI function
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
Build and Test Go Project / build (windows-latest) (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Docker / build (push) Has been cancelled
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
GoReleaser Release / release (push) Has been cancelled
Publish to MCP Registry / publish (push) Has been cancelled
v0.28.0
2026-01-12 14:19:11 +01:00
Sam Morrow 53a672040f fix: keep all resources registered for resources/read requests
The ForMCPRequest optimization was incorrectly filtering resources by
doing an exact string match between the URI template pattern and the
concrete URI. This would never match because templates like
'repo://{owner}/{repo}/contents{/path*}' don't match concrete URIs
like 'repo://owner/repo/contents/file.py'.

Instead of implementing template matching in the inventory, we simply
keep all resources registered for resources/read requests and let the
SDK handle URI template matching internally (which it already does
correctly via uritemplate.Regexp().MatchString()).

This fixes resources/read returning 'Resource not found' for valid URIs.
2026-01-12 14:19:11 +01:00
Sam Morrow 676956faf3 Fix resource handler to use deps from context
The RepositoryResourceContentsHandler was using closure-captured deps
instead of retrieving them from context at call time. This causes issues
on the remote server which injects per-request deps via context.

Changed to use MustDepsFromContext(ctx) pattern consistent with tool
handlers in NewTool and NewToolFromHandler.
2026-01-12 14:05:19 +01:00
copilot-swe-agent[bot] 8058d30709 Update automation to use toolset IDs instead of display names
The generate-docs command now outputs toolset IDs (e.g., `actions`, `code_security`)
wrapped in backticks instead of display names (e.g., "Actions", "Code Security").

This ensures the manual changes from PR #1756 persist when the docs are regenerated,
fixing the issue where users need to configure the actual toolset ID, not the display name.

Changes:
- Modified generateRemoteToolsetsDoc() to use `idStr` instead of `formattedName()`
- Modified generateRemoteOnlyToolsetsDoc() to use `idStr` instead of `formattedName()`
- Both functions now wrap the toolset ID in backticks for clarity

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-12 10:45:37 +01:00
Ksenia Bobrova 44d9e1329e Bringing back local mcp server registry config (#1767)
* Bringing back local mcp server registry config

* Making auth header optional
2026-01-09 13:41:11 +01:00
Tommaso Moro b1ab893af3 bug fix (#1775) 2026-01-09 12:10:42 +00:00
copilot-swe-agent[bot] c061804405 Use default scope in examples and clarify --scope flag is optional
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-08 21:34:03 +00:00
copilot-swe-agent[bot] e33550311a Update Claude Code installation command to use add-json format for v2.1.1+
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-08 21:34:03 +00:00
copilot-swe-agent[bot] ff0e67e008 Add formatScopeDisplay helper and improve empty scope handling
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-08 10:52:36 +00:00
copilot-swe-agent[bot] 33014a66ef Add helpers.go with shared formatToolsetName function
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-08 10:52:36 +00:00
copilot-swe-agent[bot] cd75b9b96b Refactor formatToolsetName to shared helper function
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-08 10:52:36 +00:00
copilot-swe-agent[bot] d2df189e98 Add list_scopes.go implementation file
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-08 10:52:36 +00:00
copilot-swe-agent[bot] ee8f4e6bc5 Add list-scopes command using inventory architecture
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2026-01-08 10:52:36 +00:00
Tommaso Moro f2ff9d22fe updated (#1756) 2026-01-08 09:53:48 +00:00
Sam Morrow cc9e8645c1 Fix nil pointer dereference in completion handler
The CompleteParams.Context field is optional (marked omitempty) and can be
nil when clients don't send it. The code was accessing Context.Arguments
directly without checking if Context was nil first, causing a panic.

This fix adds a nil check for Context before accessing Arguments.
2026-01-07 15:44:58 +00:00
Florian Grousset ab23070b43 Update command instructions for terminal usage
Clarified instructions to run commands in the terminal instead of Claude Code CLI.
2026-01-07 09:36:21 +00:00
Matt Holloway 71862a93e4 update tests to use new mock pattern 2026-01-06 17:38:12 +00:00
Matt Holloway a57b4726e5 add http resp code checking for getProjectItem 2026-01-06 17:38:12 +00:00
Matt Holloway be5a449e48 fix project tools to add scope to newtool init 2026-01-06 17:38:12 +00:00
Matt Holloway 099f995615 revert "hold-bac feature flag" 2026-01-06 17:38:12 +00:00
Matt Holloway 7b30c930f8 update docs 2026-01-06 17:38:12 +00:00
Matt Holloway 304f07401e hold-bac feature flag 2026-01-06 17:38:12 +00:00
Matt Holloway 3cd0be2af2 update tool aliases 2026-01-06 17:38:12 +00:00
Matt Holloway 66a01645f8 initial projects consolidation 2026-01-06 17:38:12 +00:00