You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(claudemd): add prompt handlers and server dependency to documentation
I am updating the documentation to reflect the addition of prompt handlers and the inclusion of the MCP server implementation as a dependency. This clarifies the project structure and guides users on how to add new prompts, ensuring better maintainability and understanding of the codebase.
-`github.com/mark3labs/mcp-go/server`: MCP server implementation.
17
19
-`google.golang.org/genai`: Google Gemini API client.
18
20
-`github.com/joho/godotenv`: for loading `.env` files.
19
21
@@ -47,7 +49,8 @@ The server is configured via environment variables, which can be overridden by C
47
49
48
50
## AI Assistant Guidelines
49
51
- When adding a new tool, define it in `tools.go`, implement the handler in `direct_handlers.go`, and register it in `setupGeminiServer()` in `main.go`.
52
+
- When adding a new prompt, define it in `prompts.go`, implement the handler in `prompt_handlers.go` using the `server.PromptHandlerFunc` type, and register it in `setupGeminiServer()`.
50
53
- When modifying configuration, update `config.go` for defaults, `NewConfig()` for parsing, `structs.go` for the `Config` struct, and `main.go` for CLI flags.
51
54
- Always use `ResolveModelID()` before making API calls to convert model family IDs to specific version IDs.
52
55
- Use the existing logging infrastructure for any new logging.
0 commit comments