1AI Agents & MCP 1 Problem Statements
Step-by-Step Guide
-
Set Up Your Account & Keys: Sign up on the Graftcode Portal and generate your unique Project Keys.
-
Write Your Backend Service: Build a class or module with public static methods (in Python, JavaScript, .NET, Java, PHP, or Ruby) containing your core business logic.
-
Expose via Graftcode Gateway: Run your module on Graftcode Gateway—it automatically generates an MCP endpoint for your public methods out of the box.
-
Connect Your AI Agent: Copy the MCP configuration from the Graftcode Vision portal and connect it to your LLM agent or MCP client so the agent can call your backend functions directly.
-
Secure & Push to GitHub: Store your Project Keys in
.env(never commit them), push the complete codebase to a public GitHub repo, and document your MCP architecture in theREADME.md.
2Microservices & Distributed Systems 1 Problem Statements
Step-by-Step Guide
-
Set Up Your Account & Keys: Register on the Graftcode Portal and generate your Project Keys.
-
Host Your Backend Services: Write your backend services in any supported language and run them on Graftcode Gateway to expose their public methods automatically.
-
Install Strongly-Typed Grafts: In your frontend (e.g., React, Next.js, Vue) or secondary backend service, install the auto-generated Graft package using your standard package manager (
npm,pip,NuGet,Maven). -
Call Remote Methods Locally: Import the Graft dependency and call remote backend methods just like local functions—no HTTP routing or manual serialization required.
-
Secure & Push to GitHub: Keep your Project Keys hidden via environment variables, push your code to a public GitHub repository, and write a
README.mddetailing setup steps and how Graftcode connects your services.
3Application Modernization 1 Problem Statements
Step-by-Step Guide
-
Set Up Your Account & Keys: Create an account on the Graftcode Portal and generate your Project Keys.
-
Identify & Isolate Modules: Pick a tightly coupled module inside an existing monolith (e.g., billing, notifications, or analytics) and expose its operations as clean public methods.
-
Graft the Module: Run the extracted module on Graftcode Gateway and replace direct internal calls in the main application with its auto-generated Graft dependency.
-
Demonstrate Zero-Rewrite Switching: Show how the module can run in-process or as an independent remote microservice simply by updating your Graftcode configuration—without changing business logic or writing new endpoints.
-
Secure & Push to GitHub: Store keys safely in
.env, upload the full project to a public GitHub repository, and explain the before-and-after modernization flow in yourREADME.md.



