Claude AI models and API access
## Anthropic MCP Server: Claude AI Integration The **Anthropic MCP Server** provides direct integration with Anthropic's Claude models within Google Antigravity. This enables seamless access to Claude's advanced reasoning, coding, and analysis capabilities throughout your development workflow. ### Why Anthropic MCP? Claude offers unique advantages for developers: - **Advanced Reasoning**: Superior logical analysis and problem-solving - **Long Context**: 200K token context window for large codebases - **Constitutional AI**: Built-in safety and helpfulness - **Tool Use**: Native function calling capabilities - **Vision**: Analyze images, diagrams, and screenshots ### Key Features #### 1. Chat Completions ```python import anthropic client = anthropic.Anthropic() message = client.messages.create( model="claude-3-5-sonnet-20241022", max_tokens=4096, messages=[ {"role": "user", "content": "Review this code for security issues"} ] ) print(message.content[0].text) ``` #### 2. Streaming Responses ```python with client.messages.stream( model="claude-3-5-sonnet-20241022", max_tokens=1024, messages=[{"role": "user", "content": prompt}] ) as stream: for text in stream.text_stream: print(text, end="", flush=True) ``` #### 3. Tool Use ```python response = client.messages.create( model="claude-3-5-sonnet-20241022", tools=[{ "name": "execute_code", "description": "Run Python code", "input_schema": { "type": "object", "properties": {"code": {"type": "string"}} } }], messages=[{"role": "user", "content": "Calculate factorial of 10"}] ) ``` ### Configuration ```json { "mcpServers": { "anthropic": { "command": "npx", "args": ["-y", "@anthropic/mcp-anthropic"], "env": { "ANTHROPIC_API_KEY": "sk-ant-your-key" } } } } ``` ### Use Cases **Code Review**: Leverage Claude's deep understanding to catch bugs and security issues. **Documentation**: Generate comprehensive documentation from complex codebases. **Problem Solving**: Get step-by-step solutions to complex technical challenges. The Anthropic MCP Server brings Claude's intelligence directly into Antigravity.
{
"mcpServers": {
"anthropic": {
"mcpServers": {
"anthropic": {
"env": {
"ANTHROPIC_API_KEY": "your-anthropic-api-key"
},
"args": [
"-y",
"@anthropic-ai/mcp-server"
],
"command": "npx"
}
}
}
}
}