Skip to content

feat: migrate options package to mcp/options/v1 and add typed field c…#1

Merged
ZergsLaw merged 3 commits intomasterfrom
feat/options-package-migration
Mar 18, 2026
Merged

feat: migrate options package to mcp/options/v1 and add typed field c…#1
ZergsLaw merged 3 commits intomasterfrom
feat/options-package-migration

Conversation

@ZergsLaw
Copy link
Copy Markdown
Contributor

…onstraints

  • Move options.proto from api/mcp/options/v1 to mcp/options/v1
  • Add typed ExampleValue/ExampleObject/ExampleArray proto messages
  • Add FieldOptions: examples, default_value, string/number/array constraints
  • Add MessageOptions (title, description, examples)
  • Add EnumOptions (title, description) and EnumValueOptions (description, hidden)
  • Propagate standard protobuf deprecated option from MethodOptions
  • Remove dead hidden/disabled/required/optional fields from MethodOptions/FieldOptions
  • Update schema builder to apply string, number, and array constraints
  • Update codegen to materialize typed examples and defaults
  • Add property-based tests for round-trip, constraints, message/enum options
  • Update example proto, generated code, golden snapshot, and all tests
  • Update easyp.yaml and AGENTS.md to reflect new package path

…onstraints

- Move options.proto from api/mcp/options/v1 to mcp/options/v1
- Add typed ExampleValue/ExampleObject/ExampleArray proto messages
- Add FieldOptions: examples, default_value, string/number/array constraints
- Add MessageOptions (title, description, examples)
- Add EnumOptions (title, description) and EnumValueOptions (description, hidden)
- Propagate standard protobuf deprecated option from MethodOptions
- Remove dead hidden/disabled/required/optional fields from MethodOptions/FieldOptions
- Update schema builder to apply string, number, and array constraints
- Update codegen to materialize typed examples and defaults
- Add property-based tests for round-trip, constraints, message/enum options
- Update example proto, generated code, golden snapshot, and all tests
- Update easyp.yaml and AGENTS.md to reflect new package path

// format defines a built-in JSON Schema format (e.g., "email", "uri", "uuid", "date-time", "ipv4", "hostname").
// See: https://json-schema.org/understanding-json-schema/reference/string.html#format
string format = 11;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Кстати, может стоит заменить format на энум, надо подумать будет

// - Null: { null_value: true }
// - Object: { object_value: { properties: { "key": { string_value: "val" } } } }
// - Array: { array_value: { items: [{ number_value: 1 }, { number_value: 2 }] } }
message ExampleValue {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Самая важная деталь, я вот думаю может отказаться от единичного элемента и оставить только массив

…onstraints

- Move options.proto from api/mcp/options/v1 to mcp/options/v1
- Add typed ExampleValue/ExampleObject/ExampleArray proto messages
- Add FieldOptions: examples, default_value, string/number/array constraints
- Add MessageOptions (title, description, examples)
- Add EnumOptions (title, description) and EnumValueOptions (description, hidden)
- Propagate standard protobuf deprecated option from MethodOptions
- Remove dead hidden/disabled/required/optional fields from MethodOptions/FieldOptions
- Update schema builder to apply string, number, and array constraints
- Update codegen to materialize typed examples and defaults
- Add property-based tests for round-trip, constraints, message/enum options
- Update example proto, generated code, golden snapshot, and all tests
- Update easyp.yaml and AGENTS.md to reflect new package path
…onstraints

- Move options.proto from api/mcp/options/v1 to mcp/options/v1
- Add typed ExampleValue/ExampleObject/ExampleArray proto messages
- Add FieldOptions: examples, default_value, string/number/array constraints
- Add MessageOptions (title, description, examples)
- Add EnumOptions (title, description) and EnumValueOptions (description, hidden)
- Propagate standard protobuf deprecated option from MethodOptions
- Remove dead hidden/disabled/required/optional fields from MethodOptions/FieldOptions
- Update schema builder to apply string, number, and array constraints
- Update codegen to materialize typed examples and defaults
- Add property-based tests for round-trip, constraints, message/enum options
- Update example proto, generated code, golden snapshot, and all tests
- Update easyp.yaml and AGENTS.md to reflect new package path
@ZergsLaw ZergsLaw merged commit d437575 into master Mar 18, 2026
1 check failed
@ZergsLaw ZergsLaw deleted the feat/options-package-migration branch March 18, 2026 20:41
ZergsLaw added a commit that referenced this pull request Mar 29, 2026
#1)

* feat: migrate options package to mcp/options/v1 and add typed field constraints

- Move options.proto from api/mcp/options/v1 to mcp/options/v1
- Add typed ExampleValue/ExampleObject/ExampleArray proto messages
- Add FieldOptions: examples, default_value, string/number/array constraints
- Add MessageOptions (title, description, examples)
- Add EnumOptions (title, description) and EnumValueOptions (description, hidden)
- Propagate standard protobuf deprecated option from MethodOptions
- Remove dead hidden/disabled/required/optional fields from MethodOptions/FieldOptions
- Update schema builder to apply string, number, and array constraints
- Update codegen to materialize typed examples and defaults
- Add property-based tests for round-trip, constraints, message/enum options
- Update example proto, generated code, golden snapshot, and all tests
- Update easyp.yaml and AGENTS.md to reflect new package path
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