Skip to content

statespace-tech/ssp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Statespace

Self-documenting AI applications

Test Suite License crates.io Discord X


Website: https://statespace.com

Documentation: https://docs.statespace.com


AI doesn't know your data. Statespace helps you build self-documenting data applications that describe themselves to agents. Build RAG, text-to-SQL, and knowledge bases that agents can maintain and improve over time. Once you’ve created an app, you can deploy, manage, and share it from our cloud platform.

Quickstart

Get up and running with your first app by asking your coding agent:

claude "Create a Statespace app: https://statespace.com/AGENTS.md"

Example

1. Create it

Create a new PostgreSQL app with:

statespace init --text-to-sql postgresql://user:pass@host:port/db

This creates an app skeleton with just enough tools and instructions for your agent to explore your database:

---
tools:
  - [psql, -d, $DB, -c, { regex: "^SELECT\\b.*" }]
---

# Instructions
- Learn the schema by exploring tables, columns, and relationships
- Translate the user's question into a query that answers it

2. Build it

Build your full app by iterating on it with your coding agent:

claude "Document my database's schema and add a script to summarize them"

Your agent will spin up a local server to test your app:

statespace serve .demo/ --port 8000

The result is a self-documenting app that any agent can understand and use:

demo/
├── README.md         # from above
├── script.py
└── schema/
    ├── users.md
    └── products.md

3. Ship it

Optionally, create a free Statespace account to deploy your app and get a shareable URL:

statespace deploy path/to/app/

Then, connect any agent to your app through our API or MCP.

API

Pass the public URL to your agent:

claude "Use the API at https://demo.statespace.app to find out the number of users"
MCP

Configure the MCP client:

"statespace": {
  "command": "uvx",
  "args": ["statespace-mcp", "https://demo.statespace.app"]
}

Example skeletons

Community & Contributing

License

This project is licensed under the terms of the MIT license.

About

The only MCP you'll need for text-to-SQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages