mcp-guide 1.0.0__tar.gz

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 (312) hide show
  1. mcp_guide-1.0.0/LICENSE.md +21 -0
  2. mcp_guide-1.0.0/PKG-INFO +171 -0
  3. mcp_guide-1.0.0/README.md +110 -0
  4. mcp_guide-1.0.0/pyproject.toml +137 -0
  5. mcp_guide-1.0.0/src/mcp_guide/__init__.py +17 -0
  6. mcp_guide-1.0.0/src/mcp_guide/agent_detection.py +112 -0
  7. mcp_guide-1.0.0/src/mcp_guide/agents/README.md +62 -0
  8. mcp_guide-1.0.0/src/mcp_guide/agents/claude/README.md +71 -0
  9. mcp_guide-1.0.0/src/mcp_guide/agents/claude/guide-review.md +71 -0
  10. mcp_guide-1.0.0/src/mcp_guide/agents/claude/guide-spec.md +68 -0
  11. mcp_guide-1.0.0/src/mcp_guide/agents/claude/guide.md +41 -0
  12. mcp_guide-1.0.0/src/mcp_guide/agents/claude/install.dir +1 -0
  13. mcp_guide-1.0.0/src/mcp_guide/agents/claude/install.pattern +1 -0
  14. mcp_guide-1.0.0/src/mcp_guide/agents/copilot/README.md +78 -0
  15. mcp_guide-1.0.0/src/mcp_guide/agents/copilot/guide-review.agent.md +106 -0
  16. mcp_guide-1.0.0/src/mcp_guide/agents/copilot/guide-spec.agent.md +107 -0
  17. mcp_guide-1.0.0/src/mcp_guide/agents/copilot/guide.agent.md +55 -0
  18. mcp_guide-1.0.0/src/mcp_guide/agents/copilot/install.dir +2 -0
  19. mcp_guide-1.0.0/src/mcp_guide/agents/copilot/install.pattern +1 -0
  20. mcp_guide-1.0.0/src/mcp_guide/agents/kiro/README.md +145 -0
  21. mcp_guide-1.0.0/src/mcp_guide/agents/kiro/guide-review.json +43 -0
  22. mcp_guide-1.0.0/src/mcp_guide/agents/kiro/guide-spec.json +43 -0
  23. mcp_guide-1.0.0/src/mcp_guide/agents/kiro/guide.json +43 -0
  24. mcp_guide-1.0.0/src/mcp_guide/agents/kiro/install.dir +1 -0
  25. mcp_guide-1.0.0/src/mcp_guide/agents/kiro/install.pattern +1 -0
  26. mcp_guide-1.0.0/src/mcp_guide/cli.py +287 -0
  27. mcp_guide-1.0.0/src/mcp_guide/commands/__init__.py +1 -0
  28. mcp_guide-1.0.0/src/mcp_guide/commands/formatting.py +14 -0
  29. mcp_guide-1.0.0/src/mcp_guide/commands/security.py +155 -0
  30. mcp_guide-1.0.0/src/mcp_guide/config_constants.py +11 -0
  31. mcp_guide-1.0.0/src/mcp_guide/config_paths.py +96 -0
  32. mcp_guide-1.0.0/src/mcp_guide/content/__init__.py +1 -0
  33. mcp_guide-1.0.0/src/mcp_guide/content/formatters/__init__.py +1 -0
  34. mcp_guide-1.0.0/src/mcp_guide/content/formatters/base.py +23 -0
  35. mcp_guide-1.0.0/src/mcp_guide/content/formatters/mime.py +259 -0
  36. mcp_guide-1.0.0/src/mcp_guide/content/formatters/plain.py +54 -0
  37. mcp_guide-1.0.0/src/mcp_guide/content/formatters/selection.py +120 -0
  38. mcp_guide-1.0.0/src/mcp_guide/content/gathering.py +264 -0
  39. mcp_guide-1.0.0/src/mcp_guide/content/utils.py +281 -0
  40. mcp_guide-1.0.0/src/mcp_guide/context/__init__.py +1 -0
  41. mcp_guide-1.0.0/src/mcp_guide/context/rendering.py +29 -0
  42. mcp_guide-1.0.0/src/mcp_guide/context/tasks.py +137 -0
  43. mcp_guide-1.0.0/src/mcp_guide/core/README.md +65 -0
  44. mcp_guide-1.0.0/src/mcp_guide/core/__init__.py +26 -0
  45. mcp_guide-1.0.0/src/mcp_guide/core/arguments.py +98 -0
  46. mcp_guide-1.0.0/src/mcp_guide/core/file_reader.py +47 -0
  47. mcp_guide-1.0.0/src/mcp_guide/core/mcp_log.py +480 -0
  48. mcp_guide-1.0.0/src/mcp_guide/core/mcp_log_filter.py +24 -0
  49. mcp_guide-1.0.0/src/mcp_guide/core/path_security.py +65 -0
  50. mcp_guide-1.0.0/src/mcp_guide/core/path_watcher.py +146 -0
  51. mcp_guide-1.0.0/src/mcp_guide/core/prompt_decorator.py +85 -0
  52. mcp_guide-1.0.0/src/mcp_guide/core/py.typed +1 -0
  53. mcp_guide-1.0.0/src/mcp_guide/core/resource_decorator.py +88 -0
  54. mcp_guide-1.0.0/src/mcp_guide/core/result.py +165 -0
  55. mcp_guide-1.0.0/src/mcp_guide/core/result_handler.py +60 -0
  56. mcp_guide-1.0.0/src/mcp_guide/core/tool_arguments.py +7 -0
  57. mcp_guide-1.0.0/src/mcp_guide/core/tool_decorator.py +368 -0
  58. mcp_guide-1.0.0/src/mcp_guide/core/validation.py +179 -0
  59. mcp_guide-1.0.0/src/mcp_guide/core/watcher_registry.py +83 -0
  60. mcp_guide-1.0.0/src/mcp_guide/decorators.py +39 -0
  61. mcp_guide-1.0.0/src/mcp_guide/discovery/__init__.py +1 -0
  62. mcp_guide-1.0.0/src/mcp_guide/discovery/commands.py +174 -0
  63. mcp_guide-1.0.0/src/mcp_guide/discovery/files.py +329 -0
  64. mcp_guide-1.0.0/src/mcp_guide/discovery/patterns.py +245 -0
  65. mcp_guide-1.0.0/src/mcp_guide/feature_flags/__init__.py +1 -0
  66. mcp_guide-1.0.0/src/mcp_guide/feature_flags/constants.py +23 -0
  67. mcp_guide-1.0.0/src/mcp_guide/feature_flags/feature_flags.py +38 -0
  68. mcp_guide-1.0.0/src/mcp_guide/feature_flags/project_flags.py +51 -0
  69. mcp_guide-1.0.0/src/mcp_guide/feature_flags/protocol.py +41 -0
  70. mcp_guide-1.0.0/src/mcp_guide/feature_flags/resolution.py +51 -0
  71. mcp_guide-1.0.0/src/mcp_guide/feature_flags/types.py +27 -0
  72. mcp_guide-1.0.0/src/mcp_guide/feature_flags/utils.py +33 -0
  73. mcp_guide-1.0.0/src/mcp_guide/feature_flags/validators.py +230 -0
  74. mcp_guide-1.0.0/src/mcp_guide/file_lock.py +86 -0
  75. mcp_guide-1.0.0/src/mcp_guide/filesystem/__init__.py +5 -0
  76. mcp_guide-1.0.0/src/mcp_guide/filesystem/cache.py +140 -0
  77. mcp_guide-1.0.0/src/mcp_guide/filesystem/path_validator.py +60 -0
  78. mcp_guide-1.0.0/src/mcp_guide/filesystem/read_write_security.py +203 -0
  79. mcp_guide-1.0.0/src/mcp_guide/filesystem/security.py +73 -0
  80. mcp_guide-1.0.0/src/mcp_guide/filesystem/system_directories.py +66 -0
  81. mcp_guide-1.0.0/src/mcp_guide/filesystem/temp_directories.py +32 -0
  82. mcp_guide-1.0.0/src/mcp_guide/filesystem/tools.py +403 -0
  83. mcp_guide-1.0.0/src/mcp_guide/guide.py +50 -0
  84. mcp_guide-1.0.0/src/mcp_guide/installer/__init__.py +1 -0
  85. mcp_guide-1.0.0/src/mcp_guide/installer/core.py +584 -0
  86. mcp_guide-1.0.0/src/mcp_guide/installer/integration.py +32 -0
  87. mcp_guide-1.0.0/src/mcp_guide/lazy_path.py +80 -0
  88. mcp_guide-1.0.0/src/mcp_guide/main.py +123 -0
  89. mcp_guide-1.0.0/src/mcp_guide/mcp_context.py +188 -0
  90. mcp_guide-1.0.0/src/mcp_guide/middleware/__init__.py +1 -0
  91. mcp_guide-1.0.0/src/mcp_guide/middleware/logging_middleware.py +27 -0
  92. mcp_guide-1.0.0/src/mcp_guide/models/__init__.py +42 -0
  93. mcp_guide-1.0.0/src/mcp_guide/models/config.py +40 -0
  94. mcp_guide-1.0.0/src/mcp_guide/models/constants.py +22 -0
  95. mcp_guide-1.0.0/src/mcp_guide/models/exceptions.py +35 -0
  96. mcp_guide-1.0.0/src/mcp_guide/models/expression.py +20 -0
  97. mcp_guide-1.0.0/src/mcp_guide/models/formatting.py +96 -0
  98. mcp_guide-1.0.0/src/mcp_guide/models/profile.py +152 -0
  99. mcp_guide-1.0.0/src/mcp_guide/models/profile_config.py +23 -0
  100. mcp_guide-1.0.0/src/mcp_guide/models/project.py +210 -0
  101. mcp_guide-1.0.0/src/mcp_guide/models/session.py +11 -0
  102. mcp_guide-1.0.0/src/mcp_guide/openspec/__init__.py +1 -0
  103. mcp_guide-1.0.0/src/mcp_guide/openspec/rendering.py +27 -0
  104. mcp_guide-1.0.0/src/mcp_guide/openspec/task.py +547 -0
  105. mcp_guide-1.0.0/src/mcp_guide/prompts/README.md +191 -0
  106. mcp_guide-1.0.0/src/mcp_guide/prompts/__init__.py +28 -0
  107. mcp_guide-1.0.0/src/mcp_guide/prompts/command_parser.py +133 -0
  108. mcp_guide-1.0.0/src/mcp_guide/prompts/guide_prompt.py +532 -0
  109. mcp_guide-1.0.0/src/mcp_guide/render/README.md +132 -0
  110. mcp_guide-1.0.0/src/mcp_guide/render/__init__.py +27 -0
  111. mcp_guide-1.0.0/src/mcp_guide/render/cache.py +598 -0
  112. mcp_guide-1.0.0/src/mcp_guide/render/content.py +86 -0
  113. mcp_guide-1.0.0/src/mcp_guide/render/context.py +308 -0
  114. mcp_guide-1.0.0/src/mcp_guide/render/deduplicate.py +99 -0
  115. mcp_guide-1.0.0/src/mcp_guide/render/frontmatter.py +285 -0
  116. mcp_guide-1.0.0/src/mcp_guide/render/frontmatter_types.py +39 -0
  117. mcp_guide-1.0.0/src/mcp_guide/render/functions.py +130 -0
  118. mcp_guide-1.0.0/src/mcp_guide/render/partials.py +154 -0
  119. mcp_guide-1.0.0/src/mcp_guide/render/renderer.py +287 -0
  120. mcp_guide-1.0.0/src/mcp_guide/render/rendering.py +104 -0
  121. mcp_guide-1.0.0/src/mcp_guide/render/requires.py +52 -0
  122. mcp_guide-1.0.0/src/mcp_guide/render/template.py +119 -0
  123. mcp_guide-1.0.0/src/mcp_guide/resources.py +47 -0
  124. mcp_guide-1.0.0/src/mcp_guide/result.py +10 -0
  125. mcp_guide-1.0.0/src/mcp_guide/result_constants.py +40 -0
  126. mcp_guide-1.0.0/src/mcp_guide/scripts/__init__.py +1 -0
  127. mcp_guide-1.0.0/src/mcp_guide/scripts/guide_agent_install.py +148 -0
  128. mcp_guide-1.0.0/src/mcp_guide/scripts/mcp_guide_install.py +254 -0
  129. mcp_guide-1.0.0/src/mcp_guide/server.py +289 -0
  130. mcp_guide-1.0.0/src/mcp_guide/session.py +868 -0
  131. mcp_guide-1.0.0/src/mcp_guide/session_listener.py +26 -0
  132. mcp_guide-1.0.0/src/mcp_guide/startup.py +51 -0
  133. mcp_guide-1.0.0/src/mcp_guide/startup_listener.py +72 -0
  134. mcp_guide-1.0.0/src/mcp_guide/task_manager/__init__.py +14 -0
  135. mcp_guide-1.0.0/src/mcp_guide/task_manager/interception.py +24 -0
  136. mcp_guide-1.0.0/src/mcp_guide/task_manager/manager.py +839 -0
  137. mcp_guide-1.0.0/src/mcp_guide/task_manager/protocol.py +53 -0
  138. mcp_guide-1.0.0/src/mcp_guide/task_manager/subscription.py +48 -0
  139. mcp_guide-1.0.0/src/mcp_guide/tasks/__init__.py +1 -0
  140. mcp_guide-1.0.0/src/mcp_guide/tasks/retry_task.py +85 -0
  141. mcp_guide-1.0.0/src/mcp_guide/tasks/update_task.py +129 -0
  142. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_partials/_project.mustache +32 -0
  143. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_partials/_security.mustache +12 -0
  144. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_partials/_taskmanager.mustache +27 -0
  145. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_partials/_workflow-status.mustache +11 -0
  146. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_partials/phase-transitions.mustache +26 -0
  147. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_workflow/check.mustache +56 -0
  148. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_workflow/discussion.mustache +43 -0
  149. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_workflow/implementation.mustache +47 -0
  150. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_workflow/planning.mustache +43 -0
  151. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/_workflow/review.mustache +56 -0
  152. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/create/category.mustache +18 -0
  153. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/create/collection.mustache +17 -0
  154. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/help.mustache +57 -0
  155. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/info/agent.mustache +19 -0
  156. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/info/flags.mustache +27 -0
  157. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/info/project.mustache +13 -0
  158. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/info/system.mustache +46 -0
  159. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/info.mustache +12 -0
  160. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/openspec/archive.mustache +28 -0
  161. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/openspec/init.mustache +18 -0
  162. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/openspec/list.mustache +18 -0
  163. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/openspec/propose.mustache +51 -0
  164. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/openspec/schemas.mustache +9 -0
  165. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/openspec/show.mustache +34 -0
  166. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/openspec/status.mustache +41 -0
  167. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/openspec/validate.mustache +26 -0
  168. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/perm/read-add.mustache +39 -0
  169. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/perm/read-del.mustache +39 -0
  170. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/perm/write-add.mustache +39 -0
  171. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/perm/write-del.mustache +39 -0
  172. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/perm.mustache +22 -0
  173. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/status.mustache +16 -0
  174. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/check.mustache +20 -0
  175. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/discuss.mustache +30 -0
  176. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/implement.mustache +15 -0
  177. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/issue.mustache +54 -0
  178. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/phase.mustache +15 -0
  179. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/plan.mustache +21 -0
  180. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/reset.mustache +75 -0
  181. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/review.mustache +23 -0
  182. mcp_guide-1.0.0/src/mcp_guide/templates/_commands/workflow/show.mustache +18 -0
  183. mcp_guide-1.0.0/src/mcp_guide/templates/_context/client-context-detailed.mustache +72 -0
  184. mcp_guide-1.0.0/src/mcp_guide/templates/_context/client-context-setup.mustache +22 -0
  185. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/_changes-format.mustache +15 -0
  186. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/_error-format.mustache +17 -0
  187. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/_list-format.mustache +31 -0
  188. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/_show-format.mustache +30 -0
  189. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/_status-format.mustache +19 -0
  190. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/change/new.mustache +39 -0
  191. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/openspec-cli-check.mustache +25 -0
  192. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/openspec-get-changes.mustache +17 -0
  193. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/openspec-project-check.mustache +13 -0
  194. mcp_guide-1.0.0/src/mcp_guide/templates/_openspec/openspec-version-check.mustache +1 -0
  195. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/_default.yaml +51 -0
  196. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/bdd.yaml +6 -0
  197. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/c-plusplus.yaml +6 -0
  198. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/c-sharp.yaml +6 -0
  199. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/django.yaml +6 -0
  200. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/expressjs.yaml +6 -0
  201. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/fastapi.yaml +6 -0
  202. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/flask.yaml +6 -0
  203. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/go.yaml +6 -0
  204. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/groovy.yaml +6 -0
  205. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/java.yaml +6 -0
  206. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/javascript.yaml +6 -0
  207. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/jira.yaml +7 -0
  208. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/jquery.yaml +6 -0
  209. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/kotlin.yaml +6 -0
  210. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/markdown.yaml +6 -0
  211. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/nextjs.yaml +6 -0
  212. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/php.yaml +6 -0
  213. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/python.yaml +6 -0
  214. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/react.yaml +6 -0
  215. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/rust.yaml +6 -0
  216. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/solid.yaml +7 -0
  217. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/solidjs.yaml +6 -0
  218. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/spring.yaml +6 -0
  219. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/sql.yaml +6 -0
  220. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/tdd.yaml +6 -0
  221. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/typescript.yaml +6 -0
  222. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/vue.yaml +6 -0
  223. mcp_guide-1.0.0/src/mcp_guide/templates/_profiles/yagni.yaml +7 -0
  224. mcp_guide-1.0.0/src/mcp_guide/templates/_startup.mustache +12 -0
  225. mcp_guide-1.0.0/src/mcp_guide/templates/_update.mustache +8 -0
  226. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/01-discussion.mustache +39 -0
  227. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/02-planning.mustache +52 -0
  228. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/03-implementation.mustache +52 -0
  229. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/04-check.mustache +51 -0
  230. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/05-review.mustache +58 -0
  231. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/monitoring-reminder.mustache +6 -0
  232. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/monitoring-result.mustache +8 -0
  233. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/monitoring-setup.mustache +8 -0
  234. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/phase-changed.mustache +18 -0
  235. mcp_guide-1.0.0/src/mcp_guide/templates/_workflow/state-format.mustache +23 -0
  236. mcp_guide-1.0.0/src/mcp_guide/templates/checks/instructions.mustache +11 -0
  237. mcp_guide-1.0.0/src/mcp_guide/templates/checks/python.mustache +33 -0
  238. mcp_guide-1.0.0/src/mcp_guide/templates/checks/testing.mustache +54 -0
  239. mcp_guide-1.0.0/src/mcp_guide/templates/context/freeform.mustache +33 -0
  240. mcp_guide-1.0.0/src/mcp_guide/templates/context/jira.mustache +43 -0
  241. mcp_guide-1.0.0/src/mcp_guide/templates/context/openspec.mustache +140 -0
  242. mcp_guide-1.0.0/src/mcp_guide/templates/docs/guide-uri-scheme.md +35 -0
  243. mcp_guide-1.0.0/src/mcp_guide/templates/docs/tracking.mustache +111 -0
  244. mcp_guide-1.0.0/src/mcp_guide/templates/guide/bdd.mustache +59 -0
  245. mcp_guide-1.0.0/src/mcp_guide/templates/guide/ddd.mustache +64 -0
  246. mcp_guide-1.0.0/src/mcp_guide/templates/guide/general.mustache +64 -0
  247. mcp_guide-1.0.0/src/mcp_guide/templates/guide/solid.mustache +66 -0
  248. mcp_guide-1.0.0/src/mcp_guide/templates/guide/tdd.mustache +44 -0
  249. mcp_guide-1.0.0/src/mcp_guide/templates/guide/yagni.mustache +97 -0
  250. mcp_guide-1.0.0/src/mcp_guide/templates/lang/c-plusplus.mustache +77 -0
  251. mcp_guide-1.0.0/src/mcp_guide/templates/lang/c-sharp.mustache +65 -0
  252. mcp_guide-1.0.0/src/mcp_guide/templates/lang/django.mustache +63 -0
  253. mcp_guide-1.0.0/src/mcp_guide/templates/lang/expressjs.mustache +56 -0
  254. mcp_guide-1.0.0/src/mcp_guide/templates/lang/fastapi.mustache +66 -0
  255. mcp_guide-1.0.0/src/mcp_guide/templates/lang/flask.mustache +60 -0
  256. mcp_guide-1.0.0/src/mcp_guide/templates/lang/go.mustache +37 -0
  257. mcp_guide-1.0.0/src/mcp_guide/templates/lang/groovy.mustache +51 -0
  258. mcp_guide-1.0.0/src/mcp_guide/templates/lang/java.mustache +57 -0
  259. mcp_guide-1.0.0/src/mcp_guide/templates/lang/javascript.mustache +35 -0
  260. mcp_guide-1.0.0/src/mcp_guide/templates/lang/jquery.mustache +41 -0
  261. mcp_guide-1.0.0/src/mcp_guide/templates/lang/kotlin.mustache +63 -0
  262. mcp_guide-1.0.0/src/mcp_guide/templates/lang/markdown.mustache +67 -0
  263. mcp_guide-1.0.0/src/mcp_guide/templates/lang/nextjs.mustache +56 -0
  264. mcp_guide-1.0.0/src/mcp_guide/templates/lang/php.mustache +71 -0
  265. mcp_guide-1.0.0/src/mcp_guide/templates/lang/python.mustache +266 -0
  266. mcp_guide-1.0.0/src/mcp_guide/templates/lang/react.mustache +48 -0
  267. mcp_guide-1.0.0/src/mcp_guide/templates/lang/rust.mustache +58 -0
  268. mcp_guide-1.0.0/src/mcp_guide/templates/lang/solidjs.mustache +40 -0
  269. mcp_guide-1.0.0/src/mcp_guide/templates/lang/spring.mustache +70 -0
  270. mcp_guide-1.0.0/src/mcp_guide/templates/lang/sql.mustache +69 -0
  271. mcp_guide-1.0.0/src/mcp_guide/templates/lang/typescript.mustache +40 -0
  272. mcp_guide-1.0.0/src/mcp_guide/templates/lang/vue.mustache +52 -0
  273. mcp_guide-1.0.0/src/mcp_guide/templates/review/commit.mustache +43 -0
  274. mcp_guide-1.0.0/src/mcp_guide/templates/review/general.mustache +34 -0
  275. mcp_guide-1.0.0/src/mcp_guide/templates/review/pr.mustache +50 -0
  276. mcp_guide-1.0.0/src/mcp_guide/templates/review/quick.mustache +34 -0
  277. mcp_guide-1.0.0/src/mcp_guide/templates/review/tagged.mustache +56 -0
  278. mcp_guide-1.0.0/src/mcp_guide/tools/README.md +166 -0
  279. mcp_guide-1.0.0/src/mcp_guide/tools/__init__.py +41 -0
  280. mcp_guide-1.0.0/src/mcp_guide/tools/tool_category.py +845 -0
  281. mcp_guide-1.0.0/src/mcp_guide/tools/tool_collection.py +532 -0
  282. mcp_guide-1.0.0/src/mcp_guide/tools/tool_content.py +228 -0
  283. mcp_guide-1.0.0/src/mcp_guide/tools/tool_discovery.py +118 -0
  284. mcp_guide-1.0.0/src/mcp_guide/tools/tool_feature_flags.py +348 -0
  285. mcp_guide-1.0.0/src/mcp_guide/tools/tool_filesystem.py +147 -0
  286. mcp_guide-1.0.0/src/mcp_guide/tools/tool_project.py +855 -0
  287. mcp_guide-1.0.0/src/mcp_guide/tools/tool_result.py +79 -0
  288. mcp_guide-1.0.0/src/mcp_guide/tools/tool_update.py +112 -0
  289. mcp_guide-1.0.0/src/mcp_guide/tools/tool_utility.py +143 -0
  290. mcp_guide-1.0.0/src/mcp_guide/transports/__init__.py +84 -0
  291. mcp_guide-1.0.0/src/mcp_guide/transports/base.py +32 -0
  292. mcp_guide-1.0.0/src/mcp_guide/transports/http.py +167 -0
  293. mcp_guide-1.0.0/src/mcp_guide/transports/stdio.py +41 -0
  294. mcp_guide-1.0.0/src/mcp_guide/types.py +16 -0
  295. mcp_guide-1.0.0/src/mcp_guide/uri_parser.py +44 -0
  296. mcp_guide-1.0.0/src/mcp_guide/utils/__init__.py +0 -0
  297. mcp_guide-1.0.0/src/mcp_guide/utils/client_path.py +37 -0
  298. mcp_guide-1.0.0/src/mcp_guide/utils/duration_formatter.py +28 -0
  299. mcp_guide-1.0.0/src/mcp_guide/utils/project_hash.py +87 -0
  300. mcp_guide-1.0.0/src/mcp_guide/validation.py +54 -0
  301. mcp_guide-1.0.0/src/mcp_guide/watchers/__init__.py +1 -0
  302. mcp_guide-1.0.0/src/mcp_guide/watchers/config_watcher.py +24 -0
  303. mcp_guide-1.0.0/src/mcp_guide/workflow/__init__.py +5 -0
  304. mcp_guide-1.0.0/src/mcp_guide/workflow/change_detection.py +93 -0
  305. mcp_guide-1.0.0/src/mcp_guide/workflow/constants.py +29 -0
  306. mcp_guide-1.0.0/src/mcp_guide/workflow/context.py +173 -0
  307. mcp_guide-1.0.0/src/mcp_guide/workflow/flags.py +298 -0
  308. mcp_guide-1.0.0/src/mcp_guide/workflow/instruction_generator.py +23 -0
  309. mcp_guide-1.0.0/src/mcp_guide/workflow/parser.py +64 -0
  310. mcp_guide-1.0.0/src/mcp_guide/workflow/rendering.py +19 -0
  311. mcp_guide-1.0.0/src/mcp_guide/workflow/schema.py +20 -0
  312. mcp_guide-1.0.0/src/mcp_guide/workflow/tasks.py +232 -0
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2025 David L Nugent
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.
@@ -0,0 +1,171 @@
1
+ Metadata-Version: 2.3
2
+ Name: mcp-guide
3
+ Version: 1.0.0
4
+ Summary: MCP Server for handling guidelines, project rules and a controlled development workflow
5
+ Author: David Nugent
6
+ Author-email: David Nugent <davidn@uniquode.io>
7
+ License: # MIT License
8
+
9
+ Copyright (c) 2025 David L Nugent
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+ Classifier: Development Status :: 4 - Beta
29
+ Classifier: Intended Audience :: Developers
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Classifier: Programming Language :: Python :: 3
32
+ Classifier: Programming Language :: Python :: 3.11
33
+ Classifier: Programming Language :: Python :: 3.12
34
+ Classifier: Programming Language :: Python :: 3.13
35
+ Classifier: Programming Language :: Python :: 3.14
36
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
37
+ Classifier: Topic :: Communications
38
+ Requires-Dist: mcp[cli]>=1.16.0
39
+ Requires-Dist: pydantic>=2.0
40
+ Requires-Dist: pyyaml>=6.0
41
+ Requires-Dist: aioshutil>=1.6
42
+ Requires-Dist: aiofiles>=23.2.1
43
+ Requires-Dist: chevron>=0.14.0
44
+ Requires-Dist: click>=8.3.0
45
+ Requires-Dist: uuid7>=0.1.0
46
+ Requires-Dist: patch-ng>=1.19.0
47
+ Requires-Dist: packaging>=24.0
48
+ Requires-Dist: mkdocs>=1.5.0 ; extra == 'docs'
49
+ Requires-Dist: mkdocs-material>=9.5.0 ; extra == 'docs'
50
+ Requires-Dist: mike>=2.0.0 ; extra == 'docs'
51
+ Requires-Dist: yq>=3.0.0 ; extra == 'docs'
52
+ Requires-Dist: uvicorn>=0.27.0 ; extra == 'http'
53
+ Requires-Python: >=3.11
54
+ Project-URL: Homepage, https://github.com/deeprave/mcp-guide
55
+ Project-URL: Documentation, https://deeprave.github.io/mcp-guide/
56
+ Project-URL: Repository, https://github.com/deeprave/mcp-guide
57
+ Project-URL: Issues, https://github.com/deeprave/mcp-guide/issues
58
+ Provides-Extra: docs
59
+ Provides-Extra: http
60
+ Description-Content-Type: text/markdown
61
+
62
+ # mcp-guide
63
+
64
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/deeprave/mcp-guide/python-mcp-docs.yml?branch=main&label=docs&logo=github)](https://github.com/deeprave/mcp-guide/actions/workflows/python-mcp-docs.yml)
65
+ [![Security](https://img.shields.io/github/actions/workflow/status/deeprave/mcp-guide/codeql.yml?branch=main&label=security&logo=github)](https://github.com/deeprave/mcp-guide/security/code-scanning)
66
+ [![Maintenance](https://img.shields.io/badge/maintenance-active-brightgreen.svg)](https://github.com/deeprave/mcp-guide)
67
+ [![PyPI version](https://img.shields.io/pypi/v/mcp-guide.svg?logo=pypi&logoColor=white)](https://pypi.org/project/mcp-guide/)
68
+ [![PyPI downloads](https://img.shields.io/pypi/dm/mcp-guide.svg?logo=pypi&logoColor=white)](https://pypi.org/project/mcp-guide/)
69
+ [![Python versions](https://img.shields.io/pypi/pyversions/mcp-guide.svg?logo=python&logoColor=white)](https://pypi.org/project/mcp-guide/)
70
+
71
+ **Structured content delivery for AI agents via Model Context Protocol**
72
+
73
+ mcp-guide is an MCP server that provides AI agents with organised access to project guidelines, documentation, and context. It helps agents understand your project's standards, follow development workflows, and access relevant information through a flexible content management system.
74
+
75
+ ## Key Features
76
+
77
+ - **Content Management** - Organise documents, instructions and prompts by category and collection
78
+ - **Template Support** - Dynamic content with Mustache/Chevron templates
79
+ - **Multiple Transports** - STDIO, HTTP, and HTTPS modes
80
+ - **Feature Flags** - Project-specific and global configuration
81
+ - **Workflow Management** - Structured development phase tracking
82
+ - **Profile System** - Pre-configured setups for common scenarios
83
+ - **Docker Support** - Containerised deployment with SSL
84
+ - **OpenSpec Integration** - Spec-driven development workflow
85
+
86
+ ## Quick Start
87
+
88
+ mcp-guide is run using your AI Agent's MCP configuration, and not usually run directly, at least in stdio transport mode.
89
+ In stdio mode, standard input and output are used to communicate with the MCP so the agent needs to control both in order
90
+ to operate.
91
+ In http mode, however, the server provides web server (http) transport, and this may be started in standalone mode, not
92
+ necessarily by the agent directly (although typically it does).
93
+
94
+ The configurations below detail configuration with some cli agents, but almost all of them will be similar.
95
+
96
+ ### Configure with AI Agents
97
+
98
+ #### JSON configuration
99
+
100
+ These blocks can be used as is and inserted into the agent's configuration.
101
+ The stdio mode is a straightforward configuration, although it requires the uv tool to be installed.
102
+
103
+ ##### Stdio
104
+ ```json
105
+ {
106
+ "mcpServers": {
107
+ "mcp-guide": {
108
+ "command": "uvx",
109
+ "args": ["mcp-guide"]
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ If the "mcpServers" block already exists, add the "mcp-guide" block at the end, ensuring that the previously last item, if any, has a terminating comma.
116
+
117
+ #### Kiro-CLI
118
+
119
+ Add the above JSON block to `~/.kiro/settings/mcp.json`.
120
+
121
+ #### Claude Code
122
+
123
+ Add the above JSON block to `~/.claude/settings.json`.
124
+
125
+ #### GitHub Copilot CLI
126
+
127
+ Add this JSON block to `~/.config/.copilot/mcp.json`.
128
+
129
+ Other clients will offer similar configuration, some also
130
+
131
+ See the [Installation Guide](docs/user/installation.md) for more detail in use with various clients, use with docker and using the http/sse transport mode.
132
+
133
+ ## Content Organisation
134
+
135
+ mcp-guide organises content using **frontmatter** (optional YAML metadata at the start of documents) to define document properties and behaviour.
136
+
137
+ Content is classified into three types via the `type:` field in frontmatter:
138
+
139
+ - **user/information** - Content displayed to users
140
+ - **agent/information** - Context for AI agents
141
+ - **agent/instruction** - Directives for agent behaviour
142
+
143
+ Content is organised using **categories** (file patterns and directories) and **collections** (groups of categories). Collections act as "macros" to provide targeted context for specific tasks or purposes.
144
+
145
+ See [Content Management](docs/user/content-management.md) for details.
146
+
147
+ ## Feature Flags
148
+
149
+ Feature flags control behaviour, capabilities and special features and may be set globally or per project:
150
+
151
+ - **workflow** - Enable workflow phase tracking
152
+ - **openspec** - Enable OpenSpec integration
153
+ - **content-style** - Output format (None, plain, mime)
154
+
155
+ See [Feature Flags](docs/user/feature-flags.md) for more information.
156
+
157
+ ## Documentation
158
+
159
+ - **[Documentation Index](docs/index.md)** - Documentation overview
160
+ - **[Getting Started](docs/user/getting-started.md)** - First-time setup and basic concepts
161
+ - **[Changelog](CHANGELOG.md)** - Release notes and version history
162
+
163
+ ## Links
164
+
165
+ - **Documentation**: [docs/user/](docs/index.md)
166
+ - **Issues**: [GitHub Issues](https://github.com/deeprave/mcp-guide/issues)
167
+ - **MCP Protocol**: [modelcontextprotocol.io](https://modelcontextprotocol.io/)
168
+
169
+ ## License
170
+
171
+ MIT License - See [LICENSE.md](LICENSE.md) for details.
@@ -0,0 +1,110 @@
1
+ # mcp-guide
2
+
3
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/deeprave/mcp-guide/python-mcp-docs.yml?branch=main&label=docs&logo=github)](https://github.com/deeprave/mcp-guide/actions/workflows/python-mcp-docs.yml)
4
+ [![Security](https://img.shields.io/github/actions/workflow/status/deeprave/mcp-guide/codeql.yml?branch=main&label=security&logo=github)](https://github.com/deeprave/mcp-guide/security/code-scanning)
5
+ [![Maintenance](https://img.shields.io/badge/maintenance-active-brightgreen.svg)](https://github.com/deeprave/mcp-guide)
6
+ [![PyPI version](https://img.shields.io/pypi/v/mcp-guide.svg?logo=pypi&logoColor=white)](https://pypi.org/project/mcp-guide/)
7
+ [![PyPI downloads](https://img.shields.io/pypi/dm/mcp-guide.svg?logo=pypi&logoColor=white)](https://pypi.org/project/mcp-guide/)
8
+ [![Python versions](https://img.shields.io/pypi/pyversions/mcp-guide.svg?logo=python&logoColor=white)](https://pypi.org/project/mcp-guide/)
9
+
10
+ **Structured content delivery for AI agents via Model Context Protocol**
11
+
12
+ mcp-guide is an MCP server that provides AI agents with organised access to project guidelines, documentation, and context. It helps agents understand your project's standards, follow development workflows, and access relevant information through a flexible content management system.
13
+
14
+ ## Key Features
15
+
16
+ - **Content Management** - Organise documents, instructions and prompts by category and collection
17
+ - **Template Support** - Dynamic content with Mustache/Chevron templates
18
+ - **Multiple Transports** - STDIO, HTTP, and HTTPS modes
19
+ - **Feature Flags** - Project-specific and global configuration
20
+ - **Workflow Management** - Structured development phase tracking
21
+ - **Profile System** - Pre-configured setups for common scenarios
22
+ - **Docker Support** - Containerised deployment with SSL
23
+ - **OpenSpec Integration** - Spec-driven development workflow
24
+
25
+ ## Quick Start
26
+
27
+ mcp-guide is run using your AI Agent's MCP configuration, and not usually run directly, at least in stdio transport mode.
28
+ In stdio mode, standard input and output are used to communicate with the MCP so the agent needs to control both in order
29
+ to operate.
30
+ In http mode, however, the server provides web server (http) transport, and this may be started in standalone mode, not
31
+ necessarily by the agent directly (although typically it does).
32
+
33
+ The configurations below detail configuration with some cli agents, but almost all of them will be similar.
34
+
35
+ ### Configure with AI Agents
36
+
37
+ #### JSON configuration
38
+
39
+ These blocks can be used as is and inserted into the agent's configuration.
40
+ The stdio mode is a straightforward configuration, although it requires the uv tool to be installed.
41
+
42
+ ##### Stdio
43
+ ```json
44
+ {
45
+ "mcpServers": {
46
+ "mcp-guide": {
47
+ "command": "uvx",
48
+ "args": ["mcp-guide"]
49
+ }
50
+ }
51
+ }
52
+ ```
53
+
54
+ If the "mcpServers" block already exists, add the "mcp-guide" block at the end, ensuring that the previously last item, if any, has a terminating comma.
55
+
56
+ #### Kiro-CLI
57
+
58
+ Add the above JSON block to `~/.kiro/settings/mcp.json`.
59
+
60
+ #### Claude Code
61
+
62
+ Add the above JSON block to `~/.claude/settings.json`.
63
+
64
+ #### GitHub Copilot CLI
65
+
66
+ Add this JSON block to `~/.config/.copilot/mcp.json`.
67
+
68
+ Other clients will offer similar configuration, some also
69
+
70
+ See the [Installation Guide](docs/user/installation.md) for more detail in use with various clients, use with docker and using the http/sse transport mode.
71
+
72
+ ## Content Organisation
73
+
74
+ mcp-guide organises content using **frontmatter** (optional YAML metadata at the start of documents) to define document properties and behaviour.
75
+
76
+ Content is classified into three types via the `type:` field in frontmatter:
77
+
78
+ - **user/information** - Content displayed to users
79
+ - **agent/information** - Context for AI agents
80
+ - **agent/instruction** - Directives for agent behaviour
81
+
82
+ Content is organised using **categories** (file patterns and directories) and **collections** (groups of categories). Collections act as "macros" to provide targeted context for specific tasks or purposes.
83
+
84
+ See [Content Management](docs/user/content-management.md) for details.
85
+
86
+ ## Feature Flags
87
+
88
+ Feature flags control behaviour, capabilities and special features and may be set globally or per project:
89
+
90
+ - **workflow** - Enable workflow phase tracking
91
+ - **openspec** - Enable OpenSpec integration
92
+ - **content-style** - Output format (None, plain, mime)
93
+
94
+ See [Feature Flags](docs/user/feature-flags.md) for more information.
95
+
96
+ ## Documentation
97
+
98
+ - **[Documentation Index](docs/index.md)** - Documentation overview
99
+ - **[Getting Started](docs/user/getting-started.md)** - First-time setup and basic concepts
100
+ - **[Changelog](CHANGELOG.md)** - Release notes and version history
101
+
102
+ ## Links
103
+
104
+ - **Documentation**: [docs/user/](docs/index.md)
105
+ - **Issues**: [GitHub Issues](https://github.com/deeprave/mcp-guide/issues)
106
+ - **MCP Protocol**: [modelcontextprotocol.io](https://modelcontextprotocol.io/)
107
+
108
+ ## License
109
+
110
+ MIT License - See [LICENSE.md](LICENSE.md) for details.
@@ -0,0 +1,137 @@
1
+ [project]
2
+ name = "mcp-guide"
3
+ version = "1.0.0"
4
+ description = "MCP Server for handling guidelines, project rules and a controlled development workflow"
5
+ readme = "README.md"
6
+ license = {file = "LICENSE.md"}
7
+ authors = [{name = "David Nugent", email = "davidn@uniquode.io"}]
8
+ requires-python = ">=3.11"
9
+ dependencies = [
10
+ "mcp[cli]>=1.16.0",
11
+ "pydantic>=2.0",
12
+ "pyyaml>=6.0",
13
+ "aioshutil>=1.6",
14
+ "aiofiles>=23.2.1",
15
+ "chevron>=0.14.0",
16
+ "click>=8.3.0",
17
+ "uuid7>=0.1.0",
18
+ "patch-ng>=1.19.0",
19
+ "packaging>=24.0",
20
+ ]
21
+ classifiers = [
22
+ "Development Status :: 4 - Beta",
23
+ "Intended Audience :: Developers",
24
+ "License :: OSI Approved :: MIT License",
25
+ "Programming Language :: Python :: 3",
26
+ "Programming Language :: Python :: 3.11",
27
+ "Programming Language :: Python :: 3.12",
28
+ "Programming Language :: Python :: 3.13",
29
+ "Programming Language :: Python :: 3.14",
30
+ "Topic :: Software Development :: Libraries :: Python Modules",
31
+ "Topic :: Communications",
32
+ ]
33
+
34
+ [project.urls]
35
+ Homepage = "https://github.com/deeprave/mcp-guide"
36
+ Documentation = "https://deeprave.github.io/mcp-guide/"
37
+ Repository = "https://github.com/deeprave/mcp-guide"
38
+ Issues = "https://github.com/deeprave/mcp-guide/issues"
39
+
40
+ [project.optional-dependencies]
41
+ http = ["uvicorn>=0.27.0"]
42
+ docs = [
43
+ "mkdocs>=1.5.0",
44
+ "mkdocs-material>=9.5.0",
45
+ "mike>=2.0.0",
46
+ "yq>=3.0.0",
47
+ ]
48
+
49
+ [project.scripts]
50
+ mcp-guide = "mcp_guide.main:main"
51
+ mcp-install = "mcp_guide.scripts.mcp_guide_install:cli"
52
+ guide-agent-install = "mcp_guide.scripts.guide_agent_install:main"
53
+
54
+ [build-system]
55
+ requires = ["uv_build"]
56
+ build-backend = "uv_build"
57
+
58
+ [tool.uv]
59
+ package = true
60
+
61
+ [tool.uv.build-backend]
62
+ module-name = ["mcp_guide"]
63
+ source-exclude = [
64
+ ".DS_Store",
65
+ ".localized",
66
+ ]
67
+ wheel-exclude = [
68
+ ".DS_Store",
69
+ ".localized",
70
+ ]
71
+
72
+ [tool.pytest.ini_options]
73
+ testpaths = ["tests"]
74
+ pythonpath = ["src"]
75
+ asyncio_mode = "auto"
76
+ filterwarnings = ["error"]
77
+ addopts = [
78
+ "--strict-markers",
79
+ "--strict-config",
80
+ "--cov=src/mcp_guide",
81
+ "--cov-report=term-missing",
82
+ ]
83
+ markers = [
84
+ "e2e: marks tests as end-to-end tests",
85
+ "slow: marks tests as slow running",
86
+ ]
87
+
88
+ [tool.ruff]
89
+ src = ["src"]
90
+ target-version = "py313"
91
+ line-length = 120
92
+
93
+ [tool.ruff.lint]
94
+ select = ["I", "F401"] # I = isort, F401 = unused imports
95
+
96
+ [tool.ruff.lint.isort]
97
+ known-first-party = ["mcp_guide"]
98
+
99
+ [tool.mypy]
100
+ python_version = "3.13"
101
+ mypy_path = "src"
102
+ files = ["src"]
103
+ strict = true
104
+ namespace_packages = true
105
+
106
+ [[tool.mypy.overrides]]
107
+ module = "fastmcp"
108
+ ignore_missing_imports = true
109
+
110
+ [[tool.mypy.overrides]]
111
+ module = "uuid_extensions"
112
+ ignore_missing_imports = true
113
+
114
+ [[tool.mypy.overrides]]
115
+ module = "debugpy"
116
+ ignore_missing_imports = true
117
+
118
+ [dependency-groups]
119
+ dev = [
120
+ "pytest>=8.4.2",
121
+ "pytest-asyncio>=1.2.0",
122
+ "pytest-cov>=7.0.0",
123
+ "coverage>=7.10.7",
124
+ "ruff>=0.13.2",
125
+ "mypy>=1.18.2",
126
+ "pre-commit>=4.0.0",
127
+ "types-aiofiles>=24.1.0.20250822",
128
+ "types-pyyaml>=6.0.12.20250915",
129
+ "types-chevron>=0.14.2.20250103",
130
+ "watchdog>=6.0.0",
131
+ "bandit>=1.9.2",
132
+ "pyright>=1.1.407",
133
+ "osvcheck>=1.0.0b1",
134
+ ]
135
+ debug = [
136
+ "debugpy>=1.8.0",
137
+ ]
@@ -0,0 +1,17 @@
1
+ """Guide-specific MCP server implementation."""
2
+
3
+ try:
4
+ from importlib.metadata import version
5
+
6
+ __version__ = version("mcp-guide")
7
+ except Exception:
8
+ # Fallback: read from pyproject.toml during development
9
+ import tomllib
10
+ from pathlib import Path
11
+
12
+ pyproject = Path(__file__).parent.parent.parent / "pyproject.toml"
13
+ if pyproject.exists():
14
+ with open(pyproject, "rb") as f:
15
+ __version__ = tomllib.load(f)["project"]["version"]
16
+ else:
17
+ __version__ = "unknown"
@@ -0,0 +1,112 @@
1
+ """Agent detection and information formatting."""
2
+
3
+ import re
4
+ from dataclasses import dataclass
5
+ from typing import Any, Optional, Union
6
+
7
+
8
+ @dataclass
9
+ class AgentInfo:
10
+ """Information about the MCP client/agent."""
11
+
12
+ name: str
13
+ normalized_name: str
14
+ version: Optional[str]
15
+ prompt_prefix: str
16
+
17
+
18
+ AGENT_PATTERNS = [
19
+ (r"q\s+dev", "q-dev"),
20
+ (r"kiro", "kiro"),
21
+ (r"claude", "claude"),
22
+ (r"copilot", "copilot"),
23
+ (r"gemini", "gemini"),
24
+ (r"cascade|windsurf", "windsurf"),
25
+ ]
26
+
27
+ AGENT_PREFIX_MAP = {
28
+ "q-dev": "@",
29
+ "kiro": "@",
30
+ "claude": "/",
31
+ "copilot": "/",
32
+ "gemini": "/",
33
+ "windsurf": "/",
34
+ "unknown": "/",
35
+ }
36
+
37
+
38
+ def normalize_agent_name(name: str) -> str:
39
+ """Normalise agent name to lowercase canonical form.
40
+
41
+ Converts agent names to a consistent format:
42
+ - Whitespace is collapsed and converted to hyphens
43
+ - Underscores are removed (e.g., "Agent_Name" → "agentname")
44
+ - Hyphens are preserved (e.g., "Agent-Name" → "agent-name")
45
+ - Special characters are stripped
46
+ - Returns "unknown" if result is empty
47
+ """
48
+ # Strip and validate input
49
+ name = name.strip()
50
+ if not name:
51
+ return "unknown"
52
+
53
+ name_lower = name.lower()
54
+
55
+ for pattern, normalized in AGENT_PATTERNS:
56
+ if re.search(pattern, name_lower):
57
+ return normalized
58
+
59
+ # Normalise whitespace: collapse multiple spaces to single hyphen
60
+ normalized = re.sub(r"\s+", "-", name_lower)
61
+ # Remove special characters except hyphens
62
+ normalized = re.sub(r"[^a-z0-9-]", "", normalized)
63
+ # Remove leading/trailing hyphens
64
+ normalized = normalized.strip("-")
65
+
66
+ return normalized if normalized else "unknown"
67
+
68
+
69
+ def detect_agent(client_params: Union[dict[str, Any], Any]) -> AgentInfo:
70
+ """Detect agent from client parameters.
71
+
72
+ Args:
73
+ client_params: Either InitializeRequestParams object or dict with clientInfo
74
+
75
+ Returns:
76
+ AgentInfo with detected agent information
77
+ """
78
+ # Handle Pydantic model (InitializeRequestParams)
79
+ if hasattr(client_params, "clientInfo"):
80
+ client_info = client_params.clientInfo
81
+ name = client_info.name if client_info else "Unknown"
82
+ version = client_info.version if client_info else None
83
+ # Handle dict format (for tests)
84
+ elif isinstance(client_params, dict):
85
+ client_info = client_params.get("clientInfo", {})
86
+ name = client_info.get("name", "Unknown")
87
+ version = client_info.get("version")
88
+ else:
89
+ name = "Unknown"
90
+ version = None
91
+
92
+ normalized_name = normalize_agent_name(name)
93
+ prompt_prefix = AGENT_PREFIX_MAP.get(normalized_name, "/")
94
+
95
+ return AgentInfo(name=name, normalized_name=normalized_name, version=version, prompt_prefix=prompt_prefix)
96
+
97
+
98
+ def format_agent_info(agent_info: AgentInfo, mcp_name: str) -> str:
99
+ """Format agent info for display."""
100
+ prompt_prefix = agent_info.prompt_prefix.replace("{mcp_name}", mcp_name)
101
+
102
+ lines = [
103
+ f"Agent: {agent_info.name}",
104
+ f"Normalised Name: {agent_info.normalized_name}",
105
+ ]
106
+
107
+ if agent_info.version:
108
+ lines.append(f"Version: {agent_info.version}")
109
+
110
+ lines.append(f"Command Prefix: {prompt_prefix}")
111
+
112
+ return "\n".join(lines)
@@ -0,0 +1,62 @@
1
+ # Agent Configurations
2
+
3
+ This directory contains specialised agent configurations for various agentic CLIs. Each subdirectory contains agent definitions for a specific CLI tool.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Install agents for a specific CLI
9
+ guide-agent-install <agent> <dirname>
10
+
11
+ # Examples
12
+ guide-agent-install kiro ~ # Install kiro agents to ~/.kiro/agents/
13
+ guide-agent-install kiro . # Install kiro agents to ./.kiro/agents/
14
+ guide-agent-install kiro /path/dir # Install kiro agents to /path/dir/.kiro/agents/
15
+ ```
16
+
17
+ ## Available Agent Sets
18
+
19
+ ### kiro
20
+
21
+ Agent configurations for [Kiro CLI](https://github.com/aws/amazon-q-developer-cli). See [kiro/README.md](kiro/README.md) for detailed documentation.
22
+
23
+ **Agents**:
24
+ - `guide` - Structured development workflow with phase-based progression
25
+ - `guide-review` - Code review focusing on correctness, security, and consistency
26
+ - `guide-spec` - Requirements gathering and OpenSpec specification authoring
27
+
28
+ ### claude
29
+
30
+ Agent configurations for [Claude Code](https://code.claude.com/). See [claude/README.md](claude/README.md) for detailed documentation.
31
+
32
+ **Agents**:
33
+ - `guide` - Structured development workflow with phase-based progression
34
+ - `guide-review` - Code review focusing on correctness, security, and consistency
35
+ - `guide-spec` - Requirements gathering and OpenSpec specification authoring
36
+
37
+ ### copilot
38
+
39
+ Agent configurations for [GitHub Copilot](https://github.com/features/copilot). See [copilot/README.md](copilot/README.md) for detailed documentation.
40
+
41
+ **Agents**:
42
+ - `guide` - Structured development workflow with phase-based progression
43
+ - `guide-review` - Code review focusing on correctness, security, and consistency
44
+ - `guide-spec` - Requirements gathering and OpenSpec specification authoring
45
+
46
+ ## Common Concepts
47
+
48
+ ### Resources
49
+
50
+ Agents typically have access to:
51
+ - Project documentation (`README.md`, `AGENTS.md`)
52
+ - OpenSpec documentation (`openspec/AGENTS.md`)
53
+ - Project and user-specific rules (`.kiro/rules/**/*.md`, `~/.kiro/rules/**/*.md`)
54
+
55
+ ### Agent Purposes
56
+
57
+ Agents are designed for specific workflows:
58
+ - **Development workflow agent**: Guide through structured development phases
59
+ - **Review agent**: Analyse code changes for issues and improvements
60
+ - **Specification agent**: Create/maintain technical specs and documentation
61
+
62
+ Each agent set may have different capabilities and tool access depending on the CLI tool they're designed for.