Skip to content

Commit d4eb25f

Browse files
committed
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.
1 parent bf7e9e7 commit d4eb25f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CLAUDE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ This project is a Go-based MCP (Model Control Protocol) server that acts as a br
1010
- **Core Logic**:
1111
- `gemini_server.go`: Gemini service implementation.
1212
- `direct_handlers.go`: Handlers for the MCP tools.
13+
- `prompt_handlers.go`: Handlers for MCP prompts.
1314
- `tools.go`: Definitions of the MCP tools.
1415
- **Transport**: Supports `stdio` and `http` (with JWT authentication).
1516
- **Dependencies**:
1617
- `github.com/mark3labs/mcp-go/mcp`: MCP protocol implementation.
18+
- `github.com/mark3labs/mcp-go/server`: MCP server implementation.
1719
- `google.golang.org/genai`: Google Gemini API client.
1820
- `github.com/joho/godotenv`: for loading `.env` files.
1921

@@ -47,7 +49,8 @@ The server is configured via environment variables, which can be overridden by C
4749

4850
## AI Assistant Guidelines
4951
- 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()`.
5053
- When modifying configuration, update `config.go` for defaults, `NewConfig()` for parsing, `structs.go` for the `Config` struct, and `main.go` for CLI flags.
5154
- Always use `ResolveModelID()` before making API calls to convert model family IDs to specific version IDs.
5255
- Use the existing logging infrastructure for any new logging.
53-
- Follow the existing code style and patterns.
56+
- Follow the existing code style and patterns.

0 commit comments

Comments
 (0)