kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: add xmcp to docs
rodzic
cd1ed46432
commit
35ed49496c
|
@ -86,8 +86,9 @@
|
|||
"pages": [
|
||||
"publishing/guides/existing-mcp-server",
|
||||
"publishing/guides/existing-openapi-service",
|
||||
"publishing/guides/ts-modelfetch",
|
||||
"publishing/guides/ts-xmcp",
|
||||
"publishing/guides/ts-fastmcp",
|
||||
"publishing/guides/ts-modelfetch",
|
||||
"publishing/guides/ts-mcp-hono",
|
||||
"publishing/guides/ts-openapi-hono",
|
||||
"publishing/guides/py-fastmcp"
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
---
|
||||
title: TypeScript xmcp
|
||||
description: This guide will show you how to publish an MCP server to Agentic using the TypeScript xmcp package with Vercel hosting.
|
||||
---
|
||||
|
||||
[xmcp](https://github.com/basementstudio/xmcp) is an excellent OSS TS framework for deploying MCP servers, with a familiar DX to Next.js and deployed to [Vercel](https://vercel.com).
|
||||
|
||||
## 1. Create an xmcp server
|
||||
|
||||
<Info>
|
||||
**Prerequisite**: Please install [Node.js](https://nodejs.org) before
|
||||
proceeding.
|
||||
</Info>
|
||||
|
||||
```bash
|
||||
npx create-xmcp-app@latest
|
||||
```
|
||||
|
||||
Follow [xmcp's quickstart guide](https://xmcp.dev/docs#getting-started) for more details.
|
||||
|
||||
<Note>
|
||||
Make sure that the MCP server has the Streamable HTTP transport enabled (it's
|
||||
enabled by default).
|
||||
</Note>
|
||||
|
||||
You should be able to run your MCP server locally with `xmcp dev` and see the
|
||||
MCP server running at `http://localhost:3002/mcp`.
|
||||
|
||||
## 2. Deploy your MCP server remotely
|
||||
|
||||
Deploy your MCP server publicly (we recommend Vercel for xmcp):
|
||||
|
||||
```bash
|
||||
xmcp build --vercel
|
||||
```
|
||||
|
||||
```bash
|
||||
vercel deploy --prod --prebuilt
|
||||
```
|
||||
|
||||
## 4. Deploy your origin MCP server to Agentic
|
||||
|
||||
Now that you have a publicly available MCP server, you can follow the [existing MCP server guide](/publishing/guides/existing-mcp-server) to deploy it to Agentic.
|
|
@ -29,13 +29,22 @@ description: Deploy your first MCP product to Agentic in minutes.
|
|||
<Tab title="TypeScript">
|
||||
<Columns cols={2}>
|
||||
<Card
|
||||
title='TS ModelFetch'
|
||||
href='/publishing/guides/ts-modelfetch'
|
||||
icon='cube'
|
||||
title='TS xmcp'
|
||||
href='/publishing/guides/ts-xmcp'
|
||||
icon={(
|
||||
<svg viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="512" height="512" fill="#0D969D"></rect>
|
||||
<path d="M86 145.542H102.4V162.25H86V145.542ZM102.4 429.583V379.458H118.8V362.75H135.2V346.042H168V329.333H184.4V312.625H200.8V346.042H233.6V362.75H250V379.458H266.4V396.167H250V412.875H233.6V429.583H217.2V412.875H200.8V396.167H168V412.875H151.6V446.292H168V463H135.2V446.292H118.8V429.583H102.4ZM102.4 145.542V112.125H118.8V95.4167H135.2V78.7083H200.8V95.4167H233.6V112.125H250V145.542H266.4V162.25H282.8V178.958H299.2V195.667H282.8V212.375H364.8V229.083H348.4V245.792H315.6V279.208H332V295.917H348.4V312.625H364.8V346.042H381.2V362.75H397.6V379.458H364.8V396.167H348.4V412.875H332V396.167H315.6V362.75H299.2V329.333H282.8V312.625H266.4V279.208H233.6V262.5H118.8V245.792H135.2V229.083H151.6V212.375H217.2V195.667H200.8V162.25H184.4V128.833H168V112.125H151.6V128.833H118.8V145.542H102.4ZM200.8 312.625V295.917H217.2V312.625H200.8ZM217.2 295.917V279.208H233.6V295.917H217.2ZM266.4 379.458V362.75H282.8V379.458H266.4ZM266.4 145.542V128.833H282.8V145.542H266.4ZM282.8 128.833V112.125H299.2V78.7083H332V95.4167H364.8V78.7083H397.6V128.833H381.2V145.542H348.4V162.25H332V145.542H315.6V178.958H299.2V128.833H282.8ZM397.6 362.75V346.042H414V362.75H397.6ZM397.6 78.7083V62H414V78.7083H397.6Z" fill="white"></path>
|
||||
</svg>
|
||||
)}
|
||||
>
|
||||
Create a new MCP server and deploy it to Agentic using ModelFetch SDK.
|
||||
Create a new MCP server and deploy it to Agentic using xmcp and Vercel.
|
||||
</Card>
|
||||
|
||||
<Card title='TS ModelFetch' href='/publishing/guides/ts-modelfetch' icon='cube'>
|
||||
Create a new MCP server and deploy it to Agentic using ModelFetch SDK.
|
||||
</Card>
|
||||
|
||||
<Card
|
||||
title='TS FastMCP Server'
|
||||
href='/publishing/guides/ts-fastmcp'
|
||||
|
|
Ładowanie…
Reference in New Issue