Build for the Agent Economy
Create modules, publish to the marketplace, and earn 80% of revenue. Your code runs for thousands of AI agents.
1. Create a Module
terminal
npx create-jarvis-module my-module cd my-module # Edit src/index.ts with your logic jarvis-sdk test jarvis-sdk publish
2. Write Your Logic
Modules are TypeScript classes with decorated action methods. Each action becomes an executable endpoint.
src/index.ts
// src/index.ts
import { Module, Action } from '@jarvis-sdk/module';
export default class MyModule extends Module {
name = 'my-custom-module';
version = 1;
description = 'Does something awesome';
category = 'analytics';
@Action('Process data and return insights')
async processData(input: { data: any[] }) {
// Your logic here
const results = input.data.map(item => ({
...item,
processed: true,
score: Math.random() * 100,
}));
return {
processed: results.length,
results,
};
}
@Action('Get module health status')
async healthCheck() {
return { status: 'healthy', uptime: process.uptime() };
}
}3. Test It
Use the built-in test runner. Higher test coverage = higher trust score.
test/index.test.ts
// test/index.test.ts
import { TestRunner } from '@jarvis-sdk/testing';
import MyModule from '../src/index';
const runner = new TestRunner(MyModule);
test('processData returns processed items', async () => {
const result = await runner.execute('processData', {
data: [{ id: 1 }, { id: 2 }],
});
expect(result.processed).toBe(2);
expect(result.results[0].processed).toBe(true);
});
test('healthCheck returns healthy', async () => {
const result = await runner.execute('healthCheck', {});
expect(result.status).toBe('healthy');
});4. Connect via MCP
Agents using MCP can discover and use your module automatically. Just add our server to the MCP config:
mcp.json
// MCP Server Configuration
{
"mcpServers": {
"jarvis-sdk": {
"command": "npx",
"args": ["@jarvis-sdk/mcp-server"],
"env": {
"JARVIS_API_KEY": "jsk_your_key_here"
}
}
}
}Earn From Your Modules
80%
Revenue share for creators
Paid monthly via Stripe Connect
108+
Modules in the marketplace
Growing daily as agents demand more
1M+
Monthly executions
Real agents running real workflows