quantix-mcp 0.3.7 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/.claude/settings.local.json +2 -1
  2. package/.github/agents/copilot-instructions.md +32 -32
  3. package/.github/copilot-instructions.md +17 -17
  4. package/.github/workflows/publish.yaml +28 -28
  5. package/.opencode/command/speckit.analyze.md +184 -184
  6. package/.opencode/command/speckit.checklist.md +294 -294
  7. package/.opencode/command/speckit.clarify.md +181 -181
  8. package/.opencode/command/speckit.constitution.md +84 -84
  9. package/.opencode/command/speckit.implement.md +135 -135
  10. package/.opencode/command/speckit.plan.md +89 -89
  11. package/.opencode/command/speckit.specify.md +258 -258
  12. package/.opencode/command/speckit.tasks.md +137 -137
  13. package/.opencode/command/speckit.taskstoissues.md +30 -30
  14. package/.specify/memory/constitution.md +58 -58
  15. package/.specify/templates/constitution-template.md +50 -50
  16. package/.vscode/launch.json +14 -14
  17. package/CLAUDE.md +70 -64
  18. package/GEMINI.md +58 -0
  19. package/README.md +176 -176
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +14 -3
  22. package/dist/index.js.map +1 -1
  23. package/dist/tools/accounts.d.ts.map +1 -1
  24. package/dist/tools/accounts.js +55 -34
  25. package/dist/tools/accounts.js.map +1 -1
  26. package/dist/tools/categories.d.ts.map +1 -1
  27. package/dist/tools/categories.js +46 -20
  28. package/dist/tools/categories.js.map +1 -1
  29. package/dist/tools/credit-cards.d.ts.map +1 -1
  30. package/dist/tools/credit-cards.js +104 -33
  31. package/dist/tools/credit-cards.js.map +1 -1
  32. package/dist/tools/data.d.ts.map +1 -1
  33. package/dist/tools/data.js +19 -8
  34. package/dist/tools/data.js.map +1 -1
  35. package/dist/tools/settings.d.ts.map +1 -1
  36. package/dist/tools/settings.js +28 -12
  37. package/dist/tools/settings.js.map +1 -1
  38. package/dist/tools/subscriptions.d.ts +3 -0
  39. package/dist/tools/subscriptions.d.ts.map +1 -0
  40. package/dist/tools/subscriptions.js +128 -0
  41. package/dist/tools/subscriptions.js.map +1 -0
  42. package/dist/tools/summary.d.ts.map +1 -1
  43. package/dist/tools/summary.js +17 -11
  44. package/dist/tools/summary.js.map +1 -1
  45. package/dist/tools/transactions.d.ts.map +1 -1
  46. package/dist/tools/transactions.js +85 -50
  47. package/dist/tools/transactions.js.map +1 -1
  48. package/dist/tools/transfers.d.ts +3 -0
  49. package/dist/tools/transfers.d.ts.map +1 -0
  50. package/dist/tools/transfers.js +107 -0
  51. package/dist/tools/transfers.js.map +1 -0
  52. package/dist/types/schemas.d.ts +65 -0
  53. package/dist/types/schemas.d.ts.map +1 -1
  54. package/dist/types/schemas.js +69 -3
  55. package/dist/types/schemas.js.map +1 -1
  56. package/dist/utils/toolHelpers.d.ts +7 -0
  57. package/dist/utils/toolHelpers.d.ts.map +1 -0
  58. package/dist/utils/toolHelpers.js +11 -0
  59. package/dist/utils/toolHelpers.js.map +1 -0
  60. package/openapi.yaml +2279 -1828
  61. package/package.json +41 -41
  62. package/specs/001-mcp-api-integration/checklists/requirements.md +34 -34
  63. package/specs/001-mcp-api-integration/contracts/openapi.yaml +635 -635
  64. package/specs/001-mcp-api-integration/data-model.md +106 -106
  65. package/specs/001-mcp-api-integration/plan.md +73 -73
  66. package/specs/001-mcp-api-integration/quickstart.md +74 -74
  67. package/specs/001-mcp-api-integration/research.md +58 -58
  68. package/specs/001-mcp-api-integration/spec.md +119 -119
  69. package/specs/001-mcp-api-integration/tasks.md +64 -64
  70. package/src/config.ts +36 -36
  71. package/src/index.ts +60 -47
  72. package/src/services/apiClient.ts +49 -49
  73. package/src/tools/accounts.ts +122 -111
  74. package/src/tools/categories.ts +102 -81
  75. package/src/tools/credit-cards.ts +203 -147
  76. package/src/tools/data.ts +45 -36
  77. package/src/tools/settings.ts +64 -51
  78. package/src/tools/subscriptions.ts +159 -0
  79. package/src/tools/summary.ts +29 -24
  80. package/src/tools/transactions.ts +156 -128
  81. package/src/tools/transfers.ts +122 -0
  82. package/src/types/schemas.ts +304 -235
  83. package/src/utils/toolHelpers.ts +11 -0
  84. package/tests/benchmark.test.d.ts +1 -1
  85. package/tests/benchmark.test.js +32 -32
  86. package/tests/benchmark.test.ts +38 -38
  87. package/tests/server.test.d.ts +1 -1
  88. package/tests/server.test.js +12 -12
  89. package/tests/server.test.ts +14 -14
  90. package/tests/setup.d.ts +3 -3
  91. package/tests/setup.js +16 -16
  92. package/tests/setup.ts +20 -20
  93. package/tests/tools/accounts.test.ts +159 -118
  94. package/tests/tools/categories.test.d.ts +1 -1
  95. package/tests/tools/categories.test.js +62 -62
  96. package/tests/tools/categories.test.ts +120 -78
  97. package/tests/tools/credit-cards.test.d.ts +1 -1
  98. package/tests/tools/credit-cards.test.js +70 -70
  99. package/tests/tools/credit-cards.test.ts +131 -89
  100. package/tests/tools/data.test.ts +100 -0
  101. package/tests/tools/settings.test.ts +116 -0
  102. package/tests/tools/subscriptions.test.ts +173 -0
  103. package/tests/tools/summary.test.d.ts +1 -1
  104. package/tests/tools/summary.test.js +35 -35
  105. package/tests/tools/summary.test.ts +63 -42
  106. package/tests/tools/transactions.test.d.ts +1 -1
  107. package/tests/tools/transactions.test.js +66 -66
  108. package/tests/tools/transactions.test.ts +133 -82
  109. package/tests/tools/transfers.test.ts +141 -0
  110. package/tsconfig.json +52 -52
  111. package/vitest.config.d.ts +2 -2
  112. package/vitest.config.js +13 -13
  113. package/vitest.config.ts +14 -14
@@ -1,137 +1,137 @@
1
- ---
2
- description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
3
- handoffs:
4
- - label: Analyze For Consistency
5
- agent: speckit.analyze
6
- prompt: Run a project analysis for consistency
7
- send: true
8
- - label: Implement Project
9
- agent: speckit.implement
10
- prompt: Start the implementation in phases
11
- send: true
12
- ---
13
-
14
- ## User Input
15
-
16
- ```text
17
- $ARGUMENTS
18
- ```
19
-
20
- You **MUST** consider the user input before proceeding (if not empty).
21
-
22
- ## Outline
23
-
24
- 1. **Setup**: Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
25
-
26
- 2. **Load design documents**: Read from FEATURE_DIR:
27
- - **Required**: plan.md (tech stack, libraries, structure), spec.md (user stories with priorities)
28
- - **Optional**: data-model.md (entities), contracts/ (API endpoints), research.md (decisions), quickstart.md (test scenarios)
29
- - Note: Not all projects have all documents. Generate tasks based on what's available.
30
-
31
- 3. **Execute task generation workflow**:
32
- - Load plan.md and extract tech stack, libraries, project structure
33
- - Load spec.md and extract user stories with their priorities (P1, P2, P3, etc.)
34
- - If data-model.md exists: Extract entities and map to user stories
35
- - If contracts/ exists: Map endpoints to user stories
36
- - If research.md exists: Extract decisions for setup tasks
37
- - Generate tasks organized by user story (see Task Generation Rules below)
38
- - Generate dependency graph showing user story completion order
39
- - Create parallel execution examples per user story
40
- - Validate task completeness (each user story has all needed tasks, independently testable)
41
-
42
- 4. **Generate tasks.md**: Use `.specify/templates/tasks-template.md` as structure, fill with:
43
- - Correct feature name from plan.md
44
- - Phase 1: Setup tasks (project initialization)
45
- - Phase 2: Foundational tasks (blocking prerequisites for all user stories)
46
- - Phase 3+: One phase per user story (in priority order from spec.md)
47
- - Each phase includes: story goal, independent test criteria, tests (if requested), implementation tasks
48
- - Final Phase: Polish & cross-cutting concerns
49
- - All tasks must follow the strict checklist format (see Task Generation Rules below)
50
- - Clear file paths for each task
51
- - Dependencies section showing story completion order
52
- - Parallel execution examples per story
53
- - Implementation strategy section (MVP first, incremental delivery)
54
-
55
- 5. **Report**: Output path to generated tasks.md and summary:
56
- - Total task count
57
- - Task count per user story
58
- - Parallel opportunities identified
59
- - Independent test criteria for each story
60
- - Suggested MVP scope (typically just User Story 1)
61
- - Format validation: Confirm ALL tasks follow the checklist format (checkbox, ID, labels, file paths)
62
-
63
- Context for task generation: $ARGUMENTS
64
-
65
- The tasks.md should be immediately executable - each task must be specific enough that an LLM can complete it without additional context.
66
-
67
- ## Task Generation Rules
68
-
69
- **CRITICAL**: Tasks MUST be organized by user story to enable independent implementation and testing.
70
-
71
- **Tests are OPTIONAL**: Only generate test tasks if explicitly requested in the feature specification or if user requests TDD approach.
72
-
73
- ### Checklist Format (REQUIRED)
74
-
75
- Every task MUST strictly follow this format:
76
-
77
- ```text
78
- - [ ] [TaskID] [P?] [Story?] Description with file path
79
- ```
80
-
81
- **Format Components**:
82
-
83
- 1. **Checkbox**: ALWAYS start with `- [ ]` (markdown checkbox)
84
- 2. **Task ID**: Sequential number (T001, T002, T003...) in execution order
85
- 3. **[P] marker**: Include ONLY if task is parallelizable (different files, no dependencies on incomplete tasks)
86
- 4. **[Story] label**: REQUIRED for user story phase tasks only
87
- - Format: [US1], [US2], [US3], etc. (maps to user stories from spec.md)
88
- - Setup phase: NO story label
89
- - Foundational phase: NO story label
90
- - User Story phases: MUST have story label
91
- - Polish phase: NO story label
92
- 5. **Description**: Clear action with exact file path
93
-
94
- **Examples**:
95
-
96
- - ✅ CORRECT: `- [ ] T001 Create project structure per implementation plan`
97
- - ✅ CORRECT: `- [ ] T005 [P] Implement authentication middleware in src/middleware/auth.py`
98
- - ✅ CORRECT: `- [ ] T012 [P] [US1] Create User model in src/models/user.py`
99
- - ✅ CORRECT: `- [ ] T014 [US1] Implement UserService in src/services/user_service.py`
100
- - ❌ WRONG: `- [ ] Create User model` (missing ID and Story label)
101
- - ❌ WRONG: `T001 [US1] Create model` (missing checkbox)
102
- - ❌ WRONG: `- [ ] [US1] Create User model` (missing Task ID)
103
- - ❌ WRONG: `- [ ] T001 [US1] Create model` (missing file path)
104
-
105
- ### Task Organization
106
-
107
- 1. **From User Stories (spec.md)** - PRIMARY ORGANIZATION:
108
- - Each user story (P1, P2, P3...) gets its own phase
109
- - Map all related components to their story:
110
- - Models needed for that story
111
- - Services needed for that story
112
- - Endpoints/UI needed for that story
113
- - If tests requested: Tests specific to that story
114
- - Mark story dependencies (most stories should be independent)
115
-
116
- 2. **From Contracts**:
117
- - Map each contract/endpoint → to the user story it serves
118
- - If tests requested: Each contract → contract test task [P] before implementation in that story's phase
119
-
120
- 3. **From Data Model**:
121
- - Map each entity to the user story(ies) that need it
122
- - If entity serves multiple stories: Put in earliest story or Setup phase
123
- - Relationships → service layer tasks in appropriate story phase
124
-
125
- 4. **From Setup/Infrastructure**:
126
- - Shared infrastructure → Setup phase (Phase 1)
127
- - Foundational/blocking tasks → Foundational phase (Phase 2)
128
- - Story-specific setup → within that story's phase
129
-
130
- ### Phase Structure
131
-
132
- - **Phase 1**: Setup (project initialization)
133
- - **Phase 2**: Foundational (blocking prerequisites - MUST complete before user stories)
134
- - **Phase 3+**: User Stories in priority order (P1, P2, P3...)
135
- - Within each story: Tests (if requested) → Models → Services → Endpoints → Integration
136
- - Each phase should be a complete, independently testable increment
137
- - **Final Phase**: Polish & Cross-Cutting Concerns
1
+ ---
2
+ description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
3
+ handoffs:
4
+ - label: Analyze For Consistency
5
+ agent: speckit.analyze
6
+ prompt: Run a project analysis for consistency
7
+ send: true
8
+ - label: Implement Project
9
+ agent: speckit.implement
10
+ prompt: Start the implementation in phases
11
+ send: true
12
+ ---
13
+
14
+ ## User Input
15
+
16
+ ```text
17
+ $ARGUMENTS
18
+ ```
19
+
20
+ You **MUST** consider the user input before proceeding (if not empty).
21
+
22
+ ## Outline
23
+
24
+ 1. **Setup**: Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
25
+
26
+ 2. **Load design documents**: Read from FEATURE_DIR:
27
+ - **Required**: plan.md (tech stack, libraries, structure), spec.md (user stories with priorities)
28
+ - **Optional**: data-model.md (entities), contracts/ (API endpoints), research.md (decisions), quickstart.md (test scenarios)
29
+ - Note: Not all projects have all documents. Generate tasks based on what's available.
30
+
31
+ 3. **Execute task generation workflow**:
32
+ - Load plan.md and extract tech stack, libraries, project structure
33
+ - Load spec.md and extract user stories with their priorities (P1, P2, P3, etc.)
34
+ - If data-model.md exists: Extract entities and map to user stories
35
+ - If contracts/ exists: Map endpoints to user stories
36
+ - If research.md exists: Extract decisions for setup tasks
37
+ - Generate tasks organized by user story (see Task Generation Rules below)
38
+ - Generate dependency graph showing user story completion order
39
+ - Create parallel execution examples per user story
40
+ - Validate task completeness (each user story has all needed tasks, independently testable)
41
+
42
+ 4. **Generate tasks.md**: Use `.specify/templates/tasks-template.md` as structure, fill with:
43
+ - Correct feature name from plan.md
44
+ - Phase 1: Setup tasks (project initialization)
45
+ - Phase 2: Foundational tasks (blocking prerequisites for all user stories)
46
+ - Phase 3+: One phase per user story (in priority order from spec.md)
47
+ - Each phase includes: story goal, independent test criteria, tests (if requested), implementation tasks
48
+ - Final Phase: Polish & cross-cutting concerns
49
+ - All tasks must follow the strict checklist format (see Task Generation Rules below)
50
+ - Clear file paths for each task
51
+ - Dependencies section showing story completion order
52
+ - Parallel execution examples per story
53
+ - Implementation strategy section (MVP first, incremental delivery)
54
+
55
+ 5. **Report**: Output path to generated tasks.md and summary:
56
+ - Total task count
57
+ - Task count per user story
58
+ - Parallel opportunities identified
59
+ - Independent test criteria for each story
60
+ - Suggested MVP scope (typically just User Story 1)
61
+ - Format validation: Confirm ALL tasks follow the checklist format (checkbox, ID, labels, file paths)
62
+
63
+ Context for task generation: $ARGUMENTS
64
+
65
+ The tasks.md should be immediately executable - each task must be specific enough that an LLM can complete it without additional context.
66
+
67
+ ## Task Generation Rules
68
+
69
+ **CRITICAL**: Tasks MUST be organized by user story to enable independent implementation and testing.
70
+
71
+ **Tests are OPTIONAL**: Only generate test tasks if explicitly requested in the feature specification or if user requests TDD approach.
72
+
73
+ ### Checklist Format (REQUIRED)
74
+
75
+ Every task MUST strictly follow this format:
76
+
77
+ ```text
78
+ - [ ] [TaskID] [P?] [Story?] Description with file path
79
+ ```
80
+
81
+ **Format Components**:
82
+
83
+ 1. **Checkbox**: ALWAYS start with `- [ ]` (markdown checkbox)
84
+ 2. **Task ID**: Sequential number (T001, T002, T003...) in execution order
85
+ 3. **[P] marker**: Include ONLY if task is parallelizable (different files, no dependencies on incomplete tasks)
86
+ 4. **[Story] label**: REQUIRED for user story phase tasks only
87
+ - Format: [US1], [US2], [US3], etc. (maps to user stories from spec.md)
88
+ - Setup phase: NO story label
89
+ - Foundational phase: NO story label
90
+ - User Story phases: MUST have story label
91
+ - Polish phase: NO story label
92
+ 5. **Description**: Clear action with exact file path
93
+
94
+ **Examples**:
95
+
96
+ - ✅ CORRECT: `- [ ] T001 Create project structure per implementation plan`
97
+ - ✅ CORRECT: `- [ ] T005 [P] Implement authentication middleware in src/middleware/auth.py`
98
+ - ✅ CORRECT: `- [ ] T012 [P] [US1] Create User model in src/models/user.py`
99
+ - ✅ CORRECT: `- [ ] T014 [US1] Implement UserService in src/services/user_service.py`
100
+ - ❌ WRONG: `- [ ] Create User model` (missing ID and Story label)
101
+ - ❌ WRONG: `T001 [US1] Create model` (missing checkbox)
102
+ - ❌ WRONG: `- [ ] [US1] Create User model` (missing Task ID)
103
+ - ❌ WRONG: `- [ ] T001 [US1] Create model` (missing file path)
104
+
105
+ ### Task Organization
106
+
107
+ 1. **From User Stories (spec.md)** - PRIMARY ORGANIZATION:
108
+ - Each user story (P1, P2, P3...) gets its own phase
109
+ - Map all related components to their story:
110
+ - Models needed for that story
111
+ - Services needed for that story
112
+ - Endpoints/UI needed for that story
113
+ - If tests requested: Tests specific to that story
114
+ - Mark story dependencies (most stories should be independent)
115
+
116
+ 2. **From Contracts**:
117
+ - Map each contract/endpoint → to the user story it serves
118
+ - If tests requested: Each contract → contract test task [P] before implementation in that story's phase
119
+
120
+ 3. **From Data Model**:
121
+ - Map each entity to the user story(ies) that need it
122
+ - If entity serves multiple stories: Put in earliest story or Setup phase
123
+ - Relationships → service layer tasks in appropriate story phase
124
+
125
+ 4. **From Setup/Infrastructure**:
126
+ - Shared infrastructure → Setup phase (Phase 1)
127
+ - Foundational/blocking tasks → Foundational phase (Phase 2)
128
+ - Story-specific setup → within that story's phase
129
+
130
+ ### Phase Structure
131
+
132
+ - **Phase 1**: Setup (project initialization)
133
+ - **Phase 2**: Foundational (blocking prerequisites - MUST complete before user stories)
134
+ - **Phase 3+**: User Stories in priority order (P1, P2, P3...)
135
+ - Within each story: Tests (if requested) → Models → Services → Endpoints → Integration
136
+ - Each phase should be a complete, independently testable increment
137
+ - **Final Phase**: Polish & Cross-Cutting Concerns
@@ -1,30 +1,30 @@
1
- ---
2
- description: Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.
3
- tools: ['github/github-mcp-server/issue_write']
4
- ---
5
-
6
- ## User Input
7
-
8
- ```text
9
- $ARGUMENTS
10
- ```
11
-
12
- You **MUST** consider the user input before proceeding (if not empty).
13
-
14
- ## Outline
15
-
16
- 1. Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
17
- 1. From the executed script, extract the path to **tasks**.
18
- 1. Get the Git remote by running:
19
-
20
- ```bash
21
- git config --get remote.origin.url
22
- ```
23
-
24
- > [!CAUTION]
25
- > ONLY PROCEED TO NEXT STEPS IF THE REMOTE IS A GITHUB URL
26
-
27
- 1. For each task in the list, use the GitHub MCP server to create a new issue in the repository that is representative of the Git remote.
28
-
29
- > [!CAUTION]
30
- > UNDER NO CIRCUMSTANCES EVER CREATE ISSUES IN REPOSITORIES THAT DO NOT MATCH THE REMOTE URL
1
+ ---
2
+ description: Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.
3
+ tools: ['github/github-mcp-server/issue_write']
4
+ ---
5
+
6
+ ## User Input
7
+
8
+ ```text
9
+ $ARGUMENTS
10
+ ```
11
+
12
+ You **MUST** consider the user input before proceeding (if not empty).
13
+
14
+ ## Outline
15
+
16
+ 1. Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
17
+ 1. From the executed script, extract the path to **tasks**.
18
+ 1. Get the Git remote by running:
19
+
20
+ ```bash
21
+ git config --get remote.origin.url
22
+ ```
23
+
24
+ > [!CAUTION]
25
+ > ONLY PROCEED TO NEXT STEPS IF THE REMOTE IS A GITHUB URL
26
+
27
+ 1. For each task in the list, use the GitHub MCP server to create a new issue in the repository that is representative of the Git remote.
28
+
29
+ > [!CAUTION]
30
+ > UNDER NO CIRCUMSTANCES EVER CREATE ISSUES IN REPOSITORIES THAT DO NOT MATCH THE REMOTE URL
@@ -1,58 +1,58 @@
1
- <!--
2
- SYNC IMPACT REPORT
3
- Version Change: 0.0.0 (New) -> 1.0.0
4
- Modified Principles: All (Initial Definition)
5
- Added Sections: All
6
- Removed Sections: None
7
- Templates Requiring Updates: ✅ None (Templates are generic enough)
8
- Follow-up:
9
- - Verify ratification date is acceptable as today.
10
- -->
11
- # Morpheus MCP Constitution
12
-
13
- ## Core Principles
14
-
15
- ### I. Library-First
16
- Every feature or tool set should be implemented as a standalone module or library within the `src/tools/` or `src/lib/` structure. Avoid monolithic `index.ts` files. Modules must be self-contained, independently testable, and have a single clear responsibility.
17
-
18
- ### II. Standard Interface
19
- All tools must expose functionality via the Model Context Protocol (MCP) standard. Inputs must be strictly defined using Zod schemas to ensure type safety and validation at the boundary.
20
-
21
- ### III. Test-First (NON-NEGOTIABLE)
22
- Test-Driven Development (TDD) is mandatory for core logic. Write tests that define the expected behavior before implementing the functionality. Ensure a Red-Green-Refactor cycle.
23
-
24
- ### IV. Integration Testing
25
- Given the nature of MCP servers as API proxies, integration tests are critical. Usage of mocking frameworks to simulate external API responses is required to verify contract adherence without flakiness from external services.
26
-
27
- ### V. Simplicity & Robustness
28
- Keep code simple and readable. Avoid over-engineering. Handle errors gracefully and provide meaningful error messages to the LLM/Client. Strict typing is required throughout to prevent runtime surprises.
29
-
30
- ## Security & Compliance
31
-
32
- ### Authentication Management
33
- API keys and secrets must never be hardcoded. They must be loaded from environment variables (e.g., `QUANTIX_API_KEY`). The server should validate the presence of required configuration at startup.
34
-
35
- ### Data Privacy
36
- Do not log sensitive user data or full API keys. Logs should be structured and sanitized.
37
-
38
- ## Development Workflow
39
-
40
- ### Code Review Gates
41
- All Pull Requests must pass the automated build and test suite. Code reviews should verify adherence to the Library-First and Test-First principles.
42
-
43
- ### Documentation
44
- Every tool must have a clear description and argument documentation suitable for LLM consumption. `README.md` must be kept up-to-date with usage instructions.
45
-
46
- ## Governance
47
-
48
- This constitution serves as the primary source of truth for engineering practices within the Morpheus MCP project.
49
-
50
- ### Amendments
51
- Any changes to this constitution must be made via a Pull Request to `.specify/memory/constitution.md`.
52
- * Major changes (altering core principles) require a Consensus Review.
53
- * Minor changes (clarifications, new sections) require standard Maintainer Review.
54
-
55
- ### Compliance
56
- All new feature plans (Phase 0/1) must include a "Constitution Check" to verify alignment with these principles.
57
-
58
- **Version**: 1.0.0 | **Ratified**: 2026-01-31 | **Last Amended**: 2026-01-31
1
+ <!--
2
+ SYNC IMPACT REPORT
3
+ Version Change: 0.0.0 (New) -> 1.0.0
4
+ Modified Principles: All (Initial Definition)
5
+ Added Sections: All
6
+ Removed Sections: None
7
+ Templates Requiring Updates: ✅ None (Templates are generic enough)
8
+ Follow-up:
9
+ - Verify ratification date is acceptable as today.
10
+ -->
11
+ # Morpheus MCP Constitution
12
+
13
+ ## Core Principles
14
+
15
+ ### I. Library-First
16
+ Every feature or tool set should be implemented as a standalone module or library within the `src/tools/` or `src/lib/` structure. Avoid monolithic `index.ts` files. Modules must be self-contained, independently testable, and have a single clear responsibility.
17
+
18
+ ### II. Standard Interface
19
+ All tools must expose functionality via the Model Context Protocol (MCP) standard. Inputs must be strictly defined using Zod schemas to ensure type safety and validation at the boundary.
20
+
21
+ ### III. Test-First (NON-NEGOTIABLE)
22
+ Test-Driven Development (TDD) is mandatory for core logic. Write tests that define the expected behavior before implementing the functionality. Ensure a Red-Green-Refactor cycle.
23
+
24
+ ### IV. Integration Testing
25
+ Given the nature of MCP servers as API proxies, integration tests are critical. Usage of mocking frameworks to simulate external API responses is required to verify contract adherence without flakiness from external services.
26
+
27
+ ### V. Simplicity & Robustness
28
+ Keep code simple and readable. Avoid over-engineering. Handle errors gracefully and provide meaningful error messages to the LLM/Client. Strict typing is required throughout to prevent runtime surprises.
29
+
30
+ ## Security & Compliance
31
+
32
+ ### Authentication Management
33
+ API keys and secrets must never be hardcoded. They must be loaded from environment variables (e.g., `QUANTIX_API_KEY`). The server should validate the presence of required configuration at startup.
34
+
35
+ ### Data Privacy
36
+ Do not log sensitive user data or full API keys. Logs should be structured and sanitized.
37
+
38
+ ## Development Workflow
39
+
40
+ ### Code Review Gates
41
+ All Pull Requests must pass the automated build and test suite. Code reviews should verify adherence to the Library-First and Test-First principles.
42
+
43
+ ### Documentation
44
+ Every tool must have a clear description and argument documentation suitable for LLM consumption. `README.md` must be kept up-to-date with usage instructions.
45
+
46
+ ## Governance
47
+
48
+ This constitution serves as the primary source of truth for engineering practices within the Morpheus MCP project.
49
+
50
+ ### Amendments
51
+ Any changes to this constitution must be made via a Pull Request to `.specify/memory/constitution.md`.
52
+ * Major changes (altering core principles) require a Consensus Review.
53
+ * Minor changes (clarifications, new sections) require standard Maintainer Review.
54
+
55
+ ### Compliance
56
+ All new feature plans (Phase 0/1) must include a "Constitution Check" to verify alignment with these principles.
57
+
58
+ **Version**: 1.0.0 | **Ratified**: 2026-01-31 | **Last Amended**: 2026-01-31
@@ -1,50 +1,50 @@
1
- # [PROJECT_NAME] Constitution
2
- <!-- Example: Spec Constitution, TaskFlow Constitution, etc. -->
3
-
4
- ## Core Principles
5
-
6
- ### [PRINCIPLE_1_NAME]
7
- <!-- Example: I. Library-First -->
8
- [PRINCIPLE_1_DESCRIPTION]
9
- <!-- Example: Every feature starts as a standalone library; Libraries must be self-contained, independently testable, documented; Clear purpose required - no organizational-only libraries -->
10
-
11
- ### [PRINCIPLE_2_NAME]
12
- <!-- Example: II. CLI Interface -->
13
- [PRINCIPLE_2_DESCRIPTION]
14
- <!-- Example: Every library exposes functionality via CLI; Text in/out protocol: stdin/args → stdout, errors → stderr; Support JSON + human-readable formats -->
15
-
16
- ### [PRINCIPLE_3_NAME]
17
- <!-- Example: III. Test-First (NON-NEGOTIABLE) -->
18
- [PRINCIPLE_3_DESCRIPTION]
19
- <!-- Example: TDD mandatory: Tests written → User approved → Tests fail → Then implement; Red-Green-Refactor cycle strictly enforced -->
20
-
21
- ### [PRINCIPLE_4_NAME]
22
- <!-- Example: IV. Integration Testing -->
23
- [PRINCIPLE_4_DESCRIPTION]
24
- <!-- Example: Focus areas requiring integration tests: New library contract tests, Contract changes, Inter-service communication, Shared schemas -->
25
-
26
- ### [PRINCIPLE_5_NAME]
27
- <!-- Example: V. Observability, VI. Versioning & Breaking Changes, VII. Simplicity -->
28
- [PRINCIPLE_5_DESCRIPTION]
29
- <!-- Example: Text I/O ensures debuggability; Structured logging required; Or: MAJOR.MINOR.BUILD format; Or: Start simple, YAGNI principles -->
30
-
31
- ## [SECTION_2_NAME]
32
- <!-- Example: Additional Constraints, Security Requirements, Performance Standards, etc. -->
33
-
34
- [SECTION_2_CONTENT]
35
- <!-- Example: Technology stack requirements, compliance standards, deployment policies, etc. -->
36
-
37
- ## [SECTION_3_NAME]
38
- <!-- Example: Development Workflow, Review Process, Quality Gates, etc. -->
39
-
40
- [SECTION_3_CONTENT]
41
- <!-- Example: Code review requirements, testing gates, deployment approval process, etc. -->
42
-
43
- ## Governance
44
- <!-- Example: Constitution supersedes all other practices; Amendments require documentation, approval, migration plan -->
45
-
46
- [GOVERNANCE_RULES]
47
- <!-- Example: All PRs/reviews must verify compliance; Complexity must be justified; Use [GUIDANCE_FILE] for runtime development guidance -->
48
-
49
- **Version**: [CONSTITUTION_VERSION] | **Ratified**: [RATIFICATION_DATE] | **Last Amended**: [LAST_AMENDED_DATE]
50
- <!-- Example: Version: 2.1.1 | Ratified: 2025-06-13 | Last Amended: 2025-07-16 -->
1
+ # [PROJECT_NAME] Constitution
2
+ <!-- Example: Spec Constitution, TaskFlow Constitution, etc. -->
3
+
4
+ ## Core Principles
5
+
6
+ ### [PRINCIPLE_1_NAME]
7
+ <!-- Example: I. Library-First -->
8
+ [PRINCIPLE_1_DESCRIPTION]
9
+ <!-- Example: Every feature starts as a standalone library; Libraries must be self-contained, independently testable, documented; Clear purpose required - no organizational-only libraries -->
10
+
11
+ ### [PRINCIPLE_2_NAME]
12
+ <!-- Example: II. CLI Interface -->
13
+ [PRINCIPLE_2_DESCRIPTION]
14
+ <!-- Example: Every library exposes functionality via CLI; Text in/out protocol: stdin/args → stdout, errors → stderr; Support JSON + human-readable formats -->
15
+
16
+ ### [PRINCIPLE_3_NAME]
17
+ <!-- Example: III. Test-First (NON-NEGOTIABLE) -->
18
+ [PRINCIPLE_3_DESCRIPTION]
19
+ <!-- Example: TDD mandatory: Tests written → User approved → Tests fail → Then implement; Red-Green-Refactor cycle strictly enforced -->
20
+
21
+ ### [PRINCIPLE_4_NAME]
22
+ <!-- Example: IV. Integration Testing -->
23
+ [PRINCIPLE_4_DESCRIPTION]
24
+ <!-- Example: Focus areas requiring integration tests: New library contract tests, Contract changes, Inter-service communication, Shared schemas -->
25
+
26
+ ### [PRINCIPLE_5_NAME]
27
+ <!-- Example: V. Observability, VI. Versioning & Breaking Changes, VII. Simplicity -->
28
+ [PRINCIPLE_5_DESCRIPTION]
29
+ <!-- Example: Text I/O ensures debuggability; Structured logging required; Or: MAJOR.MINOR.BUILD format; Or: Start simple, YAGNI principles -->
30
+
31
+ ## [SECTION_2_NAME]
32
+ <!-- Example: Additional Constraints, Security Requirements, Performance Standards, etc. -->
33
+
34
+ [SECTION_2_CONTENT]
35
+ <!-- Example: Technology stack requirements, compliance standards, deployment policies, etc. -->
36
+
37
+ ## [SECTION_3_NAME]
38
+ <!-- Example: Development Workflow, Review Process, Quality Gates, etc. -->
39
+
40
+ [SECTION_3_CONTENT]
41
+ <!-- Example: Code review requirements, testing gates, deployment approval process, etc. -->
42
+
43
+ ## Governance
44
+ <!-- Example: Constitution supersedes all other practices; Amendments require documentation, approval, migration plan -->
45
+
46
+ [GOVERNANCE_RULES]
47
+ <!-- Example: All PRs/reviews must verify compliance; Complexity must be justified; Use [GUIDANCE_FILE] for runtime development guidance -->
48
+
49
+ **Version**: [CONSTITUTION_VERSION] | **Ratified**: [RATIFICATION_DATE] | **Last Amended**: [LAST_AMENDED_DATE]
50
+ <!-- Example: Version: 2.1.1 | Ratified: 2025-06-13 | Last Amended: 2025-07-16 -->
@@ -1,14 +1,14 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "type": "node",
6
- "request": "launch",
7
- "name": "Launch Program",
8
- "skipFiles": ["<node_internals>/**"],
9
- "program": "${workspaceFolder}/src/index.ts",
10
- "preLaunchTask": "build",
11
- "outFiles": ["${workspaceFolder}/dist/**/*.js"]
12
- }
13
- ]
14
- }
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "type": "node",
6
+ "request": "launch",
7
+ "name": "Launch Program",
8
+ "skipFiles": ["<node_internals>/**"],
9
+ "program": "${workspaceFolder}/src/index.ts",
10
+ "preLaunchTask": "build",
11
+ "outFiles": ["${workspaceFolder}/dist/**/*.js"]
12
+ }
13
+ ]
14
+ }