You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add Tag struct with custom JSON marshal/unmarshal for API asymmetry
- change Prompt.ID from int to string
- add helper functions: NewTags(), TagNames(), NewTag()
- update integration test setup for mcp-contextforge-gateway==1.0.0b1
- update all examples and tests for new types
@@ -1149,7 +1167,9 @@ This SDK follows the service-oriented architecture pattern established by [googl
1149
1167
1150
1168
-**FlexibleID** - Handles API inconsistencies where IDs may be returned as integers or strings
1151
1169
-**Timestamp** - Custom timestamp parsing for API responses without timezone information
1170
+
-**Tag** - Handles tag objects with `ID` and `Label` fields; custom JSON marshal/unmarshal for API compatibility
1152
1171
-**Pointer helpers** - `String()`, `Int()`, `Bool()`, `Time()` for working with optional fields
1172
+
-**Tag helpers** - `NewTags()`, `NewTag()`, `TagNames()` for converting between `[]string` and `[]Tag`
1153
1173
1154
1174
## Links
1155
1175
@@ -1162,7 +1182,7 @@ This SDK follows the service-oriented architecture pattern established by [googl
1162
1182
1163
1183
### Upstream ContextForge API Bugs
1164
1184
1165
-
The SDK integration tests have identified six bugs in ContextForge v0.8.0. These bugs are in the upstream API, not the SDK implementation. Affected tests are skipped and will be re-enabled once upstream bugs are fixed.
1185
+
The SDK integration tests have identified six bugs in ContextForge (confirmed in both v0.8.0 and v1.0.0-BETA-1). These bugs are in the upstream API, not the SDK implementation. Affected tests are skipped and will be re-enabled once upstream bugs are fixed.
1166
1186
1167
1187
**CONTEXTFORGE-001: Toggle Endpoints Return Stale State**
1168
1188
The `POST /prompts/{id}/toggle` and `POST /resources/{id}/toggle` endpoints return stale `isActive` state despite correctly updating the database. See [`docs/upstream-bugs/prompt-toggle.md`](docs/upstream-bugs/prompt-toggle.md).
fmt.Fprint(w, `{"id":"456","name":"new-agent","slug":"new-agent","endpointUrl":"https://example.com/new-agent","description":"A new agent","agentType":"generic","protocolVersion":"1.0","enabled":true,"reachable":false,"tags":["test"]}`)
134
+
fmt.Fprint(w, `{"id":"456","name":"new-agent","slug":"new-agent","endpointUrl":"https://example.com/new-agent","description":"A new agent","agentType":"generic","protocolVersion":"1.0","enabled":true,"reachable":false,"tags":[{"id":"test","label":"test"}]}`)
fmt.Fprint(w, `{"id":456,"name":"new-prompt","description":"A new prompt","template":"Hello {{name}}","arguments":[{"name":"name","required":true}],"isActive":true,"tags":["test"],"metrics":{"totalExecutions":0,"successfulExecutions":0,"failedExecutions":0,"failureRate":0}}`)
271
+
fmt.Fprint(w, `{"id":"456","name":"new-prompt","description":"A new prompt","template":"Hello {{name}}","arguments":[{"name":"name","required":true}],"isActive":true,"tags":[{"id":"test","label":"test"}],"metrics":{"totalExecutions":0,"successfulExecutions":0,"failedExecutions":0,"failureRate":0}}`)
fmt.Fprint(w, `{"id":"456","name":"new-server","description":"A new server","isActive":true,"tags":["test"],"metrics":{"totalExecutions":0,"successfulExecutions":0,"failedExecutions":0,"failureRate":0}}`)
126
+
fmt.Fprint(w, `{"id":"456","name":"new-server","description":"A new server","isActive":true,"tags":[{"id":"test","label":"test"}],"metrics":{"totalExecutions":0,"successfulExecutions":0,"failedExecutions":0,"failureRate":0}}`)
0 commit comments