@decaf-ts/mcp-server 0.0.2 → 0.0.4

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 (93) hide show
  1. package/LICENSE.md +86 -21
  2. package/README.md +13 -13
  3. package/dist/mcp-server.cjs +893 -187
  4. package/dist/mcp-server.esm.cjs +888 -180
  5. package/lib/McpWrapper.cjs +189 -0
  6. package/lib/McpWrapper.d.ts +101 -0
  7. package/lib/bin/cli.cjs +30 -54
  8. package/lib/bin/cli.d.ts +18 -44
  9. package/lib/constants.cjs +12 -0
  10. package/lib/constants.d.ts +8 -0
  11. package/lib/esm/McpWrapper.d.ts +101 -0
  12. package/lib/esm/McpWrapper.js +182 -0
  13. package/lib/esm/bin/cli.d.ts +18 -44
  14. package/lib/esm/bin/cli.js +28 -55
  15. package/lib/esm/constants.d.ts +8 -0
  16. package/lib/esm/constants.js +9 -0
  17. package/lib/esm/index.d.ts +5 -26
  18. package/lib/esm/index.js +6 -27
  19. package/lib/esm/mcp/index.d.ts +1 -0
  20. package/lib/esm/mcp/index.js +2 -0
  21. package/lib/esm/metadata.d.ts +9 -0
  22. package/lib/esm/metadata.js +22 -0
  23. package/lib/esm/modules/decoration/index.d.ts +0 -0
  24. package/lib/esm/modules/decoration/index.js +2 -0
  25. package/lib/esm/modules/mcp/decoration-assist.d.ts +39 -0
  26. package/lib/esm/modules/mcp/decoration-assist.js +353 -0
  27. package/lib/esm/modules/mcp/decorator-tools.d.ts +118 -0
  28. package/lib/esm/modules/mcp/decorator-tools.js +237 -0
  29. package/lib/esm/modules/mcp/index.d.ts +2 -0
  30. package/lib/esm/modules/mcp/index.js +3 -0
  31. package/lib/esm/modules/mcp/mcp-module.d.ts +230 -0
  32. package/lib/esm/modules/mcp/mcp-module.js +406 -0
  33. package/lib/esm/types.d.ts +15 -0
  34. package/lib/esm/types.js +2 -0
  35. package/lib/esm/utils.d.ts +54 -13
  36. package/lib/esm/utils.js +78 -15
  37. package/lib/index.cjs +6 -28
  38. package/lib/index.d.ts +5 -26
  39. package/lib/mcp/index.cjs +17 -0
  40. package/lib/mcp/index.d.ts +1 -0
  41. package/lib/metadata.cjs +25 -0
  42. package/lib/metadata.d.ts +9 -0
  43. package/lib/modules/decoration/index.cjs +2 -0
  44. package/lib/modules/decoration/index.d.ts +0 -0
  45. package/lib/modules/mcp/decoration-assist.cjs +360 -0
  46. package/lib/modules/mcp/decoration-assist.d.ts +39 -0
  47. package/lib/modules/mcp/decorator-tools.cjs +243 -0
  48. package/lib/modules/mcp/decorator-tools.d.ts +118 -0
  49. package/lib/modules/mcp/index.cjs +24 -0
  50. package/lib/modules/mcp/index.d.ts +2 -0
  51. package/lib/modules/mcp/mcp-module.cjs +452 -0
  52. package/lib/modules/mcp/mcp-module.d.ts +230 -0
  53. package/lib/types.cjs +3 -0
  54. package/lib/types.d.ts +15 -0
  55. package/lib/utils.cjs +116 -16
  56. package/lib/utils.d.ts +54 -13
  57. package/package.json +35 -7
  58. package/lib/esm/namespace/Class.d.ts +0 -74
  59. package/lib/esm/namespace/Class.js +0 -73
  60. package/lib/esm/namespace/Interface.d.ts +0 -17
  61. package/lib/esm/namespace/Interface.js +0 -2
  62. package/lib/esm/namespace/children/ChildClass.d.ts +0 -44
  63. package/lib/esm/namespace/children/ChildClass.js +0 -43
  64. package/lib/esm/namespace/children/ChildInterface.d.ts +0 -22
  65. package/lib/esm/namespace/children/ChildInterface.js +0 -2
  66. package/lib/esm/namespace/children/Enum.d.ts +0 -14
  67. package/lib/esm/namespace/children/Enum.js +0 -16
  68. package/lib/esm/namespace/children/function.d.ts +0 -31
  69. package/lib/esm/namespace/children/function.js +0 -33
  70. package/lib/esm/namespace/children/index.d.ts +0 -25
  71. package/lib/esm/namespace/children/index.js +0 -26
  72. package/lib/esm/namespace/index.d.ts +0 -18
  73. package/lib/esm/namespace/index.js +0 -19
  74. package/lib/esm/namespace/type.d.ts +0 -28
  75. package/lib/esm/namespace/type.js +0 -2
  76. package/lib/namespace/Class.cjs +0 -77
  77. package/lib/namespace/Class.d.ts +0 -74
  78. package/lib/namespace/Interface.cjs +0 -3
  79. package/lib/namespace/Interface.d.ts +0 -17
  80. package/lib/namespace/children/ChildClass.cjs +0 -47
  81. package/lib/namespace/children/ChildClass.d.ts +0 -44
  82. package/lib/namespace/children/ChildInterface.cjs +0 -3
  83. package/lib/namespace/children/ChildInterface.d.ts +0 -22
  84. package/lib/namespace/children/Enum.cjs +0 -19
  85. package/lib/namespace/children/Enum.d.ts +0 -14
  86. package/lib/namespace/children/function.cjs +0 -36
  87. package/lib/namespace/children/function.d.ts +0 -31
  88. package/lib/namespace/children/index.cjs +0 -42
  89. package/lib/namespace/children/index.d.ts +0 -25
  90. package/lib/namespace/index.cjs +0 -35
  91. package/lib/namespace/index.d.ts +0 -18
  92. package/lib/namespace/type.cjs +0 -3
  93. package/lib/namespace/type.d.ts +0 -28
package/LICENSE.md CHANGED
@@ -1,21 +1,86 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Tiago Venceslau
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ # Decaf Framework MCP License (AGPL-3.0 with Extended Clauses)
2
+
3
+ Copyright (c) 2025 Tiago Venceslau
4
+ All rights reserved.
5
+
6
+ ---
7
+
8
+ ## 1. License Overview
9
+
10
+ This project, including its source code, specifications, and related assets,
11
+ is licensed under the **GNU Affero General Public License v3.0 (AGPL-3.0)**,
12
+ with the clarifications and additional notices below.
13
+
14
+ Full text: <https://www.gnu.org/licenses/agpl-3.0.html>
15
+
16
+ You may copy, modify, and distribute this software in accordance with the AGPL-3.0 terms,
17
+ provided that all modifications, derivative works, and network-accessible deployments
18
+ make the complete source code available to users.
19
+
20
+ ---
21
+
22
+ ## 2. Specification, Protocol, and Format Coverage
23
+
24
+ This license applies not only to the implementation, but also to:
25
+ - The **API specifications**,
26
+ - The **data formats**, and
27
+ - The **protocols or wire formats** defined by this project.
28
+
29
+ Re-use of these definitions verbatim or in substantial part constitutes use under this license.
30
+ (This does not restrict lawful interoperability under applicable fair-use or competition law.)
31
+
32
+ ---
33
+
34
+ ## 3. Trademarks and Branding
35
+
36
+ The names, logos, and visual identifiers associated with this project —
37
+ including “Decaf,” “Decaf-TS,” and related marks — are **not licensed** under the AGPL.
38
+ No right is granted to use them in modified or derivative works without
39
+ express written permission from Tiago Venceslau or the Decaf project governance body.
40
+
41
+ All other rights are reserved.
42
+
43
+ ---
44
+
45
+ ## 4. Attribution and Moral Rights
46
+
47
+ All derivative or substantially similar works must include clear and prominent attribution to the original authors
48
+ and a visible link to the official repository: <https://github.com/decaf-framework>.
49
+
50
+ Attribution must appear in:
51
+ - Documentation, and
52
+ - End-user interfaces (e.g., “About” dialogs, help sections, or splash screens).
53
+
54
+ Nothing in this license waives the moral rights of the authors as recognized under applicable law.
55
+
56
+ ---
57
+
58
+ ## 5. Funding and Nonprofit Context
59
+
60
+ The Decaf Framework is developed and maintained as a **nonprofit initiative**.
61
+ Licensing proceeds, sponsorships, and donations are used solely to support open, ethical AI tooling and community development.
62
+
63
+ Commercial users are encouraged to contribute via sponsorships or service contracts
64
+ to sustain the framework’s long-term health.
65
+
66
+ See [FUNDING.md](./FUNDING.md) for details.
67
+
68
+ ---
69
+
70
+ ## 6. Additional Notices
71
+
72
+ - You **must not remove or obscure copyright, license, or attribution notices**.
73
+ - You **must not misrepresent derived works** as being affiliated with or endorsed by the Decaf project.
74
+ - You **must provide access to complete corresponding source code** for all deployed instances or network services as required by AGPL-3.0.
75
+ - Any violation of these conditions may result in termination of rights under Section 8 of the AGPL.
76
+
77
+ ---
78
+
79
+ ## 7. Warranty and Liability Disclaimer
80
+
81
+ This software is provided **“as is”**, without warranty of any kind.
82
+ See the full AGPL-3.0 text for complete disclaimer and limitation-of-liability terms.
83
+
84
+ ---
85
+
86
+ **End of License**
package/README.md CHANGED
@@ -37,17 +37,17 @@ Now you can create new repositories from this template and enjoy having everythi
37
37
 
38
38
  ### How to Use
39
39
 
40
- - [Initial Setup](./tutorials/For%20Developers.md#_initial-setup_)
41
- - [Installation](./tutorials/For%20Developers.md#installation)
42
- - [Scripts](./tutorials/For%20Developers.md#scripts)
43
- - [Linting](./tutorials/For%20Developers.md#testing)
44
- - [CI/CD](./tutorials/For%20Developers.md#continuous-integrationdeployment)
45
- - [Publishing](./tutorials/For%20Developers.md#publishing)
46
- - [Structure](./tutorials/For%20Developers.md#repository-structure)
47
- - [IDE Integrations](./tutorials/For%20Developers.md#ide-integrations)
48
- - [VSCode(ium)](./tutorials/For%20Developers.md#visual-studio-code-vscode)
49
- - [WebStorm](./tutorials/For%20Developers.md#webstorm)
50
- - [Considerations](./tutorials/For%20Developers.md#considerations)
40
+ - [Initial Setup](./workdocs/tutorials/For%20Developers.md#_initial-setup_)
41
+ - [Installation](./workdocs/tutorials/For%20Developers.md#installation)
42
+ - [Scripts](./workdocs/tutorials/For%20Developers.md#scripts)
43
+ - [Linting](./workdocs/tutorials/For%20Developers.md#testing)
44
+ - [CI/CD](./workdocs/tutorials/For%20Developers.md#continuous-integrationdeployment)
45
+ - [Publishing](./workdocs/tutorials/For%20Developers.md#publishing)
46
+ - [Structure](./workdocs/tutorials/For%20Developers.md#repository-structure)
47
+ - [IDE Integrations](./workdocs/tutorials/For%20Developers.md#ide-integrations)
48
+ - [VSCode(ium)](./workdocs/tutorials/For%20Developers.md#visual-studio-code-vscode)
49
+ - [WebStorm](./workdocs/tutorials/For%20Developers.md#webstorm)
50
+ - [Considerations](./workdocs/tutorials/For%20Developers.md#considerations)
51
51
 
52
52
 
53
53
 
@@ -88,6 +88,6 @@ So if you can, if this project in any way. either by learning something or simpl
88
88
 
89
89
  ## License
90
90
 
91
- This project is released under the [MIT License](./LICENSE.md).
91
+ This project is released under MIT with an AGPL-3.0 trigger for AI-generated code usage; MIT covers standard development, but AI-driven Decaf code generation activates full AGPL obligations—see [LICENSE.md](./LICENSE.md) for full terms.
92
92
 
93
- By developers, for developers...
93
+ By developers, for developers...