Skip to content

Conversation

@S0okJu
Copy link
Collaborator

@S0okJu S0okJu commented Sep 1, 2025

Overview

  • Add create-project tools in identity tools

Key Changes

  • Add create-project tool
  • Tests are updated and passing

Related Issues

Additional context

  • Add a project
Pasted image 20250901170521
  • Add a project that has a parent project
image
  • Get projects to check project structure.
image

@S0okJu S0okJu added the feature Request for new feature or functionality enhancement label Sep 1, 2025
@S0okJu S0okJu requested a review from Copilot September 1, 2025 08:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new create_project tool to the identity tools module, enabling users to create OpenStack projects with optional parent project hierarchies.

  • Implements a new create_project method in the IdentityTools class
  • Registers the new tool with the FastMCP framework
  • Adds comprehensive test coverage for various creation scenarios and error conditions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/openstack_mcp_server/tools/identity_tools.py Implements the create_project method and registers it as a tool
tests/tools/test_identity_tools.py Adds comprehensive test cases covering success scenarios and various error conditions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@S0okJu S0okJu requested a review from jja6312 September 1, 2025 08:25
@choieastsea
Copy link
Collaborator

@S0okJu
tool에서 하는 역할에 비해 테스트 코드가 많아 보입니다. 해당 테스트 코드로 검증하려는 것은 (1) 호출된 인자가 sdk에 잘 전달되는지, (2) sdk의 응답을 제대로 변환하여 응답하는지 정도라서요.

sdk의 동작 자체를 테스트하거나, 발생가능한 여러 오류들을 모두 모킹하여 테스트할 필요는 없을 것 같아요.

@S0okJu
Copy link
Collaborator Author

S0okJu commented Sep 2, 2025

@choieastsea
부모 프로젝트, 도메인 존재 확인 로직은 create_project 코드 내에 작동되는 동작이네요.
수정해보겠습니다!

좋은 의견 감사합니다.

Copy link
Collaborator

@choieastsea choieastsea left a comment

Choose a reason for hiding this comment

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

LGTM

@S0okJu S0okJu merged commit a18baf2 into develop Sep 3, 2025
6 checks passed
@S0okJu S0okJu linked an issue Sep 3, 2025 that may be closed by this pull request
5 tasks
halucinor pushed a commit that referenced this pull request Oct 23, 2025
* feat(identity): Add get-project, get-projects tool(#58)

- Add get-project, get-projects tool
- Test code are updated and passing

* chore(identity): ruff format(#58)

* chore(identity): ruff format(#58)

* fix(identity): Remove _version.py(#58)

* feat(identity): Add create project tool(#58)

- Add create-project tool
- Tests are updated ans passing

* fix(identity): Fix unnecessary test codes(#?58)
halucinor pushed a commit that referenced this pull request Oct 24, 2025
* feat(identity): Add get-project, get-projects tool(#58)

- Add get-project, get-projects tool
- Test code are updated and passing

* chore(identity): ruff format(#58)

* chore(identity): ruff format(#58)

* fix(identity): Remove _version.py(#58)

* feat(identity): Add create project tool(#58)

- Add create-project tool
- Tests are updated ans passing

* fix(identity): Fix unnecessary test codes(#?58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Request for new feature or functionality enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Add project related tools to mcp server

3 participants