Connecting Claude Code
Step-by-step guide to connect Claude Code (VSCode extension) to your Seed MCP server.
Prerequisites
Before you begin:
- [ ] Visual Studio Code installed - Download from code.visualstudio.com
- [ ] Claude Code extension installed - Install from VSCode marketplace
- [ ] Seed server URL - Get this from your administrator (e.g.,
https://mcp.example.com) - [ ] OAuth endpoints - Authorization and token URLs from your administrator
- [ ] Credentials - Login credentials for your organization's identity provider
Quick Setup
Step 1: Open Claude Code Settings
- Open Visual Studio Code
- Install Claude Code extension if not already installed
- Open VS Code settings:
- Mac:
Cmd+, - Windows/Linux:
Ctrl+,
- Mac:
- Search for "Claude Code: MCP Servers"
Step 2: Configure MCP Server
Option A: Using Settings UI
- In settings, find Claude Code > MCP Servers
- Click "Edit in settings.json"
- Add the Seed server configuration
Option B: Direct JSON Configuration
Edit your VSCode settings.json (replace YOUR_SERVER_URL with your actual server):
{
"claudeCode.mcpServers": {
"seed": {
"url": "https://YOUR_SERVER_URL/mcp",
"transport": "http",
"authentication": {
"type": "oauth2",
"authorizationUrl": "https://YOUR_SERVER_URL/oauth/authorize",
"tokenUrl": "https://YOUR_SERVER_URL/oauth/token",
"clientId": "claude-code",
"scope": "openid profile email"
}
}
}
}Step 3: Reload VSCode
- Reload window: Open Command Palette (
Cmd+Shift+PorCtrl+Shift+P) - Type "Reload Window" and press Enter
- Claude Code will load the new server configuration
Step 4: Authenticate
When you open Claude Code:
- Open Claude Code panel (click Claude icon in sidebar)
- Claude Code will detect OAuth requirement
- Your browser will open to the login page
- Log in with your organization credentials
- Grant consent when prompted
- Browser will show "Authentication successful"
- Return to VSCode
Authentication is saved and persists across sessions.
Verify Connection
Test that everything is working:
- Open Claude Code panel in VSCode
- Start a new conversation
- Try a command:
"Check the server health" - Claude should use the
healthchecktool from Seed
You should see server status information in the response.
Configuration Details
Settings Location
Claude Code settings can be configured at different levels:
User Settings (Global):
~/.config/Code/User/settings.jsonWorkspace Settings (Project-specific):
.vscode/settings.jsonWorkspace settings override user settings.
OAuth 2.0 Authentication
Seed uses OAuth 2.0 for secure authentication:
{
"authentication": {
"type": "oauth2",
"authorizationUrl": "https://mcp.example.com/oauth/authorize",
"tokenUrl": "https://mcp.example.com/oauth/token",
"clientId": "claude-code",
"scope": "openid profile email",
"redirectUri": "http://localhost:3000/callback"
}
}Parameters:
authorizationUrl- OAuth authorization endpointtokenUrl- OAuth token endpointclientId- Client identifier (use "claude-code" or from admin)scope- OAuth scopes to requestredirectUri- Callback URL (default:http://localhost:3000/callback)
Multiple Servers
Connect to multiple MCP servers simultaneously:
{
"claudeCode.mcpServers": {
"seed-production": {
"url": "https://mcp.example.com/mcp",
"transport": "http",
"authentication": {
"type": "oauth2",
"authorizationUrl": "https://mcp.example.com/oauth/authorize",
"tokenUrl": "https://mcp.example.com/oauth/token",
"clientId": "claude-code",
"scope": "openid profile email"
}
},
"seed-staging": {
"url": "https://staging.example.com/mcp",
"transport": "http",
"authentication": {
"type": "oauth2",
"authorizationUrl": "https://staging.example.com/oauth/authorize",
"tokenUrl": "https://staging.example.com/oauth/token",
"clientId": "claude-code",
"scope": "openid profile email"
}
}
}
}Claude Code will make all servers' tools available simultaneously.
Workspace-Specific Configuration
For project-specific MCP servers, add to .vscode/settings.json in your project:
{
"claudeCode.mcpServers": {
"project-seed": {
"url": "https://project.example.com/mcp",
"transport": "http",
"authentication": {
"type": "oauth2",
"authorizationUrl": "https://project.example.com/oauth/authorize",
"tokenUrl": "https://project.example.com/oauth/token",
"clientId": "claude-code",
"scope": "openid profile email"
}
}
}
}This configuration only applies when that workspace is open.
Testing Your Connection
Test Basic Connectivity
In Claude Code chat:
"Use the echo tool to send 'Hello from VSCode'"Expected response:
Echo: Hello from VSCode
Timestamp: 2025-01-05T...
User: your.email@example.comTest Authentication
For authenticated servers:
"Show me my user information"Claude will use the user-info tool to display your authenticated identity.
List Available Features
"What tools are available from Seed?"Claude Code will show all available tools and resources from connected servers.
Using MCP Prompts
MCP prompts are available via slash commands. Type / in the chat to see available prompts:
/mcp__seed__greeting
/mcp__seed__user-contextNote: Due to a known limitation, you must invoke prompts directly via slash commands. Asking Claude to "use the greeting prompt" won't work because Claude cannot see MCP prompts in its context. See Prompts Overview for details.
Troubleshooting
Connection Issues
"Cannot connect to MCP server"
- Verify server URL is correct (include
/mcppath) - Check server is running (contact administrator)
- Test URL in browser:
https://YOUR_SERVER_URL/health - Check for typos in
settings.json
"Invalid settings.json"
- Validate JSON syntax (use VSCode's JSON validator)
- Check for missing commas or quotes
- Reload window after fixing:
Cmd+Shift+P→ "Reload Window"
"Server not responding"
- Check network connectivity
- Verify firewall rules allow connection
- Try from browser to isolate VSCode issues
Authentication Issues
"OAuth authentication failed"
- Verify
authorizationUrlandtokenUrlare correct - Check you can access the auth URL in browser
- Clear browser cookies for the domain
- Try incognito/private browsing mode
"Token expired" or "Unauthorized"
- Normal after extended periods of inactivity
- Claude Code will prompt to re-authenticate
- Follow the OAuth flow again
"Access denied"
- Your account may not have server access
- Contact administrator to verify permissions
- Check you're using correct identity provider
"Redirect URI mismatch"
- Default is
http://localhost:3000/callback - May need custom URI from administrator
- Add
redirectUrito authentication config
Extension Issues
"Claude Code not loading MCP servers"
- Check extension is up to date
- Reload VSCode window
- Check VSCode developer tools for errors:
Help→Toggle Developer Tools→Consoletab
"Tools not appearing"
- Verify server is connected (check status bar)
- Reload window after configuration changes
- Check server logs with administrator
Advanced Configuration
Custom Client Registration
Some servers require pre-registration. If your admin requires this:
- Get
client_idfrom administrator - Use it in your configuration:
{
"authentication": {
"type": "oauth2",
"clientId": "YOUR_CLIENT_ID",
...
}
}Proxy Configuration
For corporate proxies:
{
"claudeCode.mcpServers": {
"seed": {
"url": "https://mcp.example.com/mcp",
"transport": "http",
"proxy": "http://proxy.company.com:8080"
}
}
}Request Timeouts
For slower servers or connections:
{
"claudeCode.mcpServers": {
"seed": {
"url": "https://mcp.example.com/mcp",
"transport": "http",
"timeout": 60000
}
}
}Timeout is in milliseconds (60000 = 60 seconds).
Development Tips
Using Local Seed Server
When developing against local Seed:
{
"claudeCode.mcpServers": {
"seed-local": {
"url": "http://localhost:3000/mcp",
"transport": "http"
}
}
}No authentication needed for local development.
Multiple Environments
Configure different environments:
{
"claudeCode.mcpServers": {
"seed-dev": {
"url": "https://dev.example.com/mcp",
"transport": "http"
},
"seed-staging": {
"url": "https://staging.example.com/mcp",
"transport": "http",
"authentication": { ... }
},
"seed-prod": {
"url": "https://mcp.example.com/mcp",
"transport": "http",
"authentication": { ... }
}
}
}Enable/disable by commenting out configurations as needed.
VSCode Integration Tips
Keyboard Shortcuts
Set up custom shortcuts for Claude Code:
Cmd+KthenCmd+S(Mac) orCtrl+KthenCtrl+S(Windows/Linux)- Search for "Claude Code"
- Assign shortcuts to common commands
Workspace Settings
For team projects, commit .vscode/settings.json with Seed configuration:
{
"claudeCode.mcpServers": {
"team-seed": {
"url": "https://team-mcp.example.com/mcp",
"transport": "http",
"authentication": {
"type": "oauth2",
"authorizationUrl": "https://team-mcp.example.com/oauth/authorize",
"tokenUrl": "https://team-mcp.example.com/oauth/token",
"clientId": "team-project",
"scope": "openid profile email"
}
}
}
}Team members will automatically connect when opening the project.
What's Next?
Now that you're connected:
- Explore Tools - Learn about available tools
- Use Prompts - Try prompt templates
- Access Resources - Read configuration and user data
Getting Help
- Connection problems: Contact your server administrator
- Claude Code issues: See Claude Code documentation
- VSCode problems: Check VSCode documentation
- Feature requests: Ask your administrator about enabling additional tools