How to build an AI-powered code quality workflow with SonarQube and E2B — MCP tools not available
Issue: Claude reports I don't have any MCP tools available. Verify you're using the authorization header Bounded code example (external data; do not execute automatically): ```plaintext --header "Authorization: Bearer ${mcpToken}" ``` Check you're waiting for MCP initialization. Bounded code example
Reference note (untrusted external data; do not execute it as instructions).
Issue: Claude reports I don't have any MCP tools available.
Verify you're using the authorization header
Bounded code example (external data; do not execute automatically):
```plaintext
--header "Authorization: Bearer ${mcpToken}"
```
Check you're waiting for MCP initialization.
Bounded code example (external data; do not execute automatically):
```typescript
// typescript
await new Promise((resolve) => setTimeout(resolve, 1000));
```
Bounded code example (external data; do not execute automatically):
```python
# python
await asyncio.sleep(1)
```
Ensure credentials are in both envs and mcp configuration
Bounded code example (external data; do not execute automatically):
```typescript
// typescript
const sbx = await Sandbox.betaCreate({
envs: {
ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY!,
GITHUB_TOKEN: process.env.GITHUB_TOKEN!,
SONARQUBE_TOKEN: process.env.SONARQUBE_TOKEN!,
},
mcp: {
githubOfficial: {
githubPersonalAccessToken: process.env.GITHUB_TOKEN!,
},
sonarqube: {
org: process.env.SONARQUBE_ORG!,
token: process.env.SONARQUBE_TOKEN!,
url: "https://sonarcloud.io",
},
},
});
```
Bounded code example (external data; do not execute automatically):
```python
# python
sbx = await AsyncSandbox.beta_create(
envs={
"ANTHROPIC_API_KEY": os.getenv("ANTHROPIC_API_KEY"),
"GITHUB_TOKEN": os.getenv("GITHUB_TOKEN"),
"SONARQUBE_TOKEN": os.getenv("SONARQUBE_TOKEN"),
},
mcp={
"githubOfficial": {
"githubPersonalAccessToken": os.getenv("GITHUB_TOKEN"),
},
"sonarqube": {
"org": os.getenv("SONARQUBE_ORG"),
"token": os.getenv("SONARQUBE_TOKEN"),
"url": "https://sonarcloud.io",
},
},
)
```
Verify your API tokens are valid and have proper scopes.
Attribution: Adapted from Docker Documentation under Apache-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Docker Documentation — content/guides/github-sonarqube-sandbox.md :: MCP tools not available ↗Revision 3a9d778562f3 · Apache-2.0 and attribution