Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions app/en/references/mcp/_meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const meta: MetaRecord = {
python: {
title: "Python",
},
typescript: {
title: "TypeScript",
},
telemetry: {
title: "Telemetry",
},
Expand Down
24 changes: 20 additions & 4 deletions app/en/references/mcp/python/server/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@ Initialize MCP server.
| `arcade_api_key` | `str \| None` | Arcade API key (overrides settings) | `None` |
| `arcade_api_url` | `str \| None` | Arcade API URL (overrides settings) | `None` |

#### `start`

```python
async start()
```

Initialize the server. Call before running a transport.

#### `stop`

```python
async stop()
```

Gracefully shut down the server.

#### `handle_message`

```python
Expand Down Expand Up @@ -122,13 +138,13 @@ from arcade_mcp_server.transports.stdio import StdioTransport
async def main():
catalog = ToolCatalog()
server = MCPServer(catalog=catalog, name="example", version="1.0.0")
await server._start()
await server.start()
try:
# Run stdio transport loop
transport = StdioTransport()
await transport.run(server)
finally:
await server._stop()
await server.stop()

if __name__ == "__main__":
asyncio.run(main())
Expand All @@ -145,12 +161,12 @@ from arcade_mcp_server.transports.http_streamable import HTTPStreamableTransport
async def run_http():
catalog = ToolCatalog()
server = MCPServer(catalog=catalog)
await server._start()
await server.start()
try:
transport = HTTPStreamableTransport(host="0.0.0.0", port=8000)
await transport.run(server)
finally:
await server._stop()
await server.stop()

asyncio.run(run_http())
```
2 changes: 1 addition & 1 deletion app/en/references/mcp/python/transports/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ app.run(transport="stdio")
For Claude Desktop, use the `arcade configure` command:

```bash
arcade configure claude --host local
arcade configure claude
```

Or manually edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
Expand Down
38 changes: 38 additions & 0 deletions app/en/references/mcp/typescript/_meta.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import type { MetaRecord } from "nextra";

const meta: MetaRecord = {
"*": {
theme: {
breadcrumb: true,
layout: "full",
toc: true,
copyPage: true,
},
},
overview: {
title: "Overview",
},
examples: {
title: "Examples",
},
transports: {
title: "Transports",
},
server: {
title: "Server",
},
middleware: {
title: "Middleware",
},
types: {
title: "Types",
},
errors: {
title: "Errors",
},
settings: {
title: "Settings",
},
};

export default meta;
Loading