docs: add getting started guide for building UCP servers - #645
Conversation
… guide Fixes a syntax error (Python comment in TS block) and adds missing Express server startup code to make the Node.js example runnable. TAG=agy CONV=867f757c-56a2-4920-b01b-bdc6da20e369
ac31bbc to
0de8aed
Compare
|
Hi Federico, Thanks for putting this together! Having a practical getting started guide for both Python and TypeScript is a great addition. I tested the guide locally and have a few suggestions: 1. Placement in navigation: Overview vs SpecificationRight now, the guide is located under The Specification section is strictly versioned with spec releases and intended for normative specifications. In contrast, the Overview section is where developers look for high-level intro and onboarding content. Would it make sense to move this to 2. Full file code referenceBecause the Could we include an expandable tab or code block at the end with the full 3. Developer experience refinements
Thanks again! |
On 1., I thought about this. I feel like the "Getting Started" should be versioned (similarly to the Playground) as we might introduce breaking changes and/or add new SDK languages for future releases. I also think we might need to create similar pages for other verticals, and in that case those would live under "Specifications". Let me know if you disagree. Addressed 2 and 3, PTAL - thanks! |
|
@ptiper comments addressed, PTAL |
|
Hi Federico, I walked through the entire guide from scratch to test all steps locally. The Python walkthrough worked great! For the Node.js walkthrough, I ran into two small issues when following the steps:
import {
CheckoutCreateRequestSchema,
CheckoutResponseSchema,
type CheckoutResponse
} from '@ucp-js/sdk';
Once those two tweaks are in, this should be ready to merge. Thanks! |
|
Done @ptiper ! |
|
Hi Federico, Quick update now that UCP
Happy to push these tweaks directly to your branch while you are away if you'd like, let me know! |
|
Hi @damaz91 👋🏼 , really nice addition. Would be super helpful for Businesses currently building towards UCP, and I think they'll be the main audience for it. Two small suggestions:
Happy to push these as a follow-up commit. |
… in getting started guide
Description
This PR adds a new "Getting Started" section to the UCP documentation site (in the "Specification" section), providing a step-by-step guide for developers to build core UCP endpoints (Create Checkout and Get Checkout) using either the Python SDK (FastAPI) or the Node.js/TypeScript SDK (Express).
Key features of this guide:
Category (Required)
ucp-schematool (resolver, linter, validator). (Requires Maintainer approval)Related Issues
None.
Checklist
!for breaking changes).Screenshots / Logs (if applicable)