Skip to content

Commit 5fa7bad

Browse files
committed
Rename chat_completions to ask_question and revise input/output schema for clarity
1 parent 2452e7b commit 5fa7bad

File tree

3 files changed

+166
-179
lines changed

3 files changed

+166
-179
lines changed

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This is a Model Context Protocol (MCP) server that provides AI clients with acce
4848
### Core Components
4949

5050
- **`codealive_mcp_server.py`**: Main server implementation using FastMCP framework
51-
- **Three main tools**: `chat_completions`, `search_code`, `get_data_sources`
51+
- **Three main tools**: `ask_question`, `search_code`, `get_data_sources`
5252
- **CodeAliveContext**: Manages HTTP client and API credentials
5353
- **Async lifespan management**: Handles client setup/teardown
5454

@@ -63,7 +63,7 @@ This is a Model Context Protocol (MCP) server that provides AI clients with acce
6363
### Data Flow
6464

6565
1. AI client connects to MCP server via stdio/SSE transport
66-
2. Client calls tools (`get_data_sources``search_code``chat_completions`)
66+
2. Client calls tools (`get_data_sources``search_code``ask_question`)
6767
3. MCP server translates tool calls to CodeAlive API requests
6868
4. CodeAlive API returns semantic search results or chat completions
6969
5. Server formats and returns results to AI client

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Once connected, you'll have access to these powerful tools:
2323

2424
1. **`get_data_sources`** - List your indexed repositories and workspaces
2525
2. **`search_code`** - Semantic code search across your codebase
26-
3. **`chat_completions`** - AI chat with full project context
26+
3. **`ask_question`** - AI chat with full project context
2727

2828
## 🎯 Usage Examples
2929

3030
After setup, try these commands with your AI assistant:
3131

3232
- *"Show me all available repositories"* → Uses `get_data_sources`
3333
- *"Find authentication code in the user service"* → Uses `search_code`
34-
- *"Explain how the payment flow works in this codebase"* → Uses `chat_completions`
34+
- *"Explain how the payment flow works in this codebase"* → Uses `ask_question`
3535

3636
## Table of Contents
3737

0 commit comments

Comments
 (0)