Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions reference/mcp-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,20 @@ Click [here](goose://extension?cmd=npx&arg=-y&arg=mcp-remote&arg=https%3A%2F%2Fm
}
```

### Smithery

You can connect directly to `https://mcp.onkernel.com/mcp`, or use Smithery as a proxy if you prefer by using its provided URL.

- Use Smithery URL in any MCP client:
1. Open [Smithery: Kernel](https://smithery.ai/server/kernel).
2. Click "Get connection URL" and copy `https://server.smithery.ai/kernel/mcp`.
3. Paste it into your MCP client's "Add server" flow.

- Use Kernel in Smithery's Playground MCP client:
1. Open [Smithery Playground](https://smithery.ai/playground).
2. Click "Add servers", search for "Kernel", and add it.
3. Sign in and authorize Kernel when prompted.

### Others

Many other MCP-capable tools accept:
Expand Down
23 changes: 23 additions & 0 deletions snippets/openapi/delete-profiles-id_or_name.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<CodeGroup>
```typescript Typescript/Javascript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
apiKey: 'My API Key',
});

await client.profiles.delete('id_or_name');
```


```python Python
from kernel import Kernel

client = Kernel(
api_key="My API Key",
)
client.profiles.delete(
"id_or_name",
)
```
</CodeGroup>
31 changes: 31 additions & 0 deletions snippets/openapi/get-profiles-id_or_name-download.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<CodeGroup>
```typescript Typescript/Javascript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
apiKey: 'My API Key',
});

const response = await client.profiles.download('id_or_name');

console.log(response);

const content = await response.blob();
console.log(content);
```


```python Python
from kernel import Kernel

client = Kernel(
api_key="My API Key",
)
response = client.profiles.download(
"id_or_name",
)
print(response)
content = response.read()
print(content)
```
</CodeGroup>
26 changes: 26 additions & 0 deletions snippets/openapi/get-profiles-id_or_name.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<CodeGroup>
```typescript Typescript/Javascript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
apiKey: 'My API Key',
});

const profile = await client.profiles.retrieve('id_or_name');

console.log(profile.id);
```


```python Python
from kernel import Kernel

client = Kernel(
api_key="My API Key",
)
profile = client.profiles.retrieve(
"id_or_name",
)
print(profile.id)
```
</CodeGroup>
24 changes: 24 additions & 0 deletions snippets/openapi/get-profiles.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<CodeGroup>
```typescript Typescript/Javascript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
apiKey: 'My API Key',
});

const profiles = await client.profiles.list();

console.log(profiles);
```


```python Python
from kernel import Kernel

client = Kernel(
api_key="My API Key",
)
profiles = client.profiles.list()
print(profiles)
```
</CodeGroup>
24 changes: 24 additions & 0 deletions snippets/openapi/post-profiles.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<CodeGroup>
```typescript Typescript/Javascript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
apiKey: 'My API Key',
});

const profile = await client.profiles.create();

console.log(profile.id);
```


```python Python
from kernel import Kernel

client = Kernel(
api_key="My API Key",
)
profile = client.profiles.create()
print(profile.id)
```
</CodeGroup>