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
Reorganize file structure and tests to reduce context issues for AI (#20)
* Update configuration files and enhance documentation
- Added missing newlines at the end of several configuration files (.eslintrc.json, .prettierrc, tsconfig.json, jest.config.js, jest.integration.config.js).
- Updated README.md to include additional environment variable setup instructions for Azure DevOps.
- Improved documentation across various files, ensuring clarity and completeness, particularly in authentication and project setup sections.
- Removed deprecated files and tests to streamline the codebase and improve maintainability.
* Refactor test structure and enhance error handling
- Updated test files to follow colocation patterns, improving organization and maintainability.
- Added tasks to fix specific test files by co-locating or moving individual tests to appropriate files.
- Enhanced error handling in authentication tests to provide clearer error messages for token acquisition failures.
- Updated mock implementations in tests to ensure accurate behavior and error handling for Azure DevOps API interactions.
* Enhance error handling in authentication and repository listing tests
- Added tests to handle non-Error objects in catch blocks for both listRepositories and listWorkItems functions, ensuring proper error messages are thrown.
- Updated existing tests to convert generic error messages into specific Azure DevOps error types, improving clarity and robustness in error handling.
- Refactored mock implementations in authentication tests to simulate various error scenarios, enhancing test coverage and reliability.
* Remove obsolete test files and refactor existing tests for improved organization
- Deleted outdated test files including server-coverage.test.ts, server-client.test.ts, auth.test.ts, and server-auth.test.ts to streamline the codebase.
- Refactored existing tests to enhance clarity and maintainability, ensuring they follow updated patterns and practices.
- Improved error handling in authentication tests, ensuring comprehensive coverage for various authentication scenarios.
- Updated mock implementations to accurately simulate Azure DevOps API interactions, enhancing test reliability.
* Reorganize test structure to follow co-location pattern
This PR completes the test reorganization task by moving tests to follow the co-location pattern, ensuring proper organization and maintainability of the codebase.
* Complete task to reorganize repository structure around "Screaming Architecture" and "Vertical Slices"
This commit finalizes the restructuring of the codebase to emphasize business domains over technical layers, implementing a feature-based module organization. All tasks related to the refactor have been completed, including the migration of tests to co-locate with their respective implementations, enhancing clarity and maintainability. The old layer-based directories have been removed, and the new structure has been validated with passing tests across all features.
* Refactor setup_env.sh to remove PAT creation logic and update authentication method
This commit simplifies the setup_env.sh script by removing the Personal Access Token (PAT) creation process, which included both automated and manual methods. The script now defaults to using Azure Identity for authentication, streamlining the setup process. Additionally, the .env file has been updated to reflect the new authentication method, enhancing clarity and maintainability.
---------
Co-authored-by: Micah Rairdon <[email protected]>
For detailed troubleshooting information for each authentication method, see the [Authentication Guide](docs/authentication.md#troubleshooting-authentication-issues).
129
139
130
140
Common issues include:
141
+
131
142
- Invalid or expired credentials
132
143
- Insufficient permissions
133
144
- Network connectivity problems
@@ -142,23 +153,27 @@ For technical details about how authentication is implemented in the Azure DevOp
142
153
The Azure DevOps MCP server provides a variety of tools for interacting with Azure DevOps resources. For detailed documentation on each tool, please refer to the corresponding documentation.
143
154
144
155
### Core Navigation Tools
156
+
145
157
-`list_organizations`: List all accessible organizations
146
158
-`list_projects`: List all accessible projects
147
159
-`list_repositories`: List all repositories in a project
148
160
149
161
For comprehensive documentation on all core navigation tools, see the [Core Navigation Tools Guide](docs/tools/core-navigation.md).
150
162
151
163
### Project Tools
164
+
152
165
-`get_project`: Get details of a specific project
153
166
154
167
For project-specific tool documentation, see the [Projects Tools Guide](docs/tools/projects.md).
155
168
156
169
### Repository Tools
170
+
157
171
-`get_repository`: Get repository details
158
172
159
173
For repository-specific tool documentation, see the [Repositories Tools Guide](docs/tools/repositories.md).
160
174
161
175
### Work Item Tools
176
+
162
177
-`get_work_item`: Retrieve a work item by ID
163
178
-`create_work_item`: Create a new work item
164
179
@@ -177,6 +192,7 @@ npm run test:unit
177
192
Integration tests require a connection to a real Azure DevOps instance. To run them:
178
193
179
194
1. Ensure your `.env` file is configured with valid Azure DevOps credentials:
0 commit comments