Skip to content

Commit 82f6c1c

Browse files
committed
docs: add MCP integration documentation and changeset
1 parent d50c93d commit 82f6c1c

2 files changed

Lines changed: 43 additions & 1 deletion

File tree

.changeset/sweet-carrots-walk.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@srcbook/api': patch
3+
'srcbook': patch
4+
---
5+
6+
Add Model Context Protocol (MCP) integration to enhance AI capabilities. This update includes:
7+
8+
- MCP client implementation for connecting to MCP servers
9+
- Tool discovery and execution functionality
10+
- Integration with app generation pipeline
11+
- Documentation in README.md
12+
13+
MCP enables AI models to access external tools and data sources, significantly expanding the capabilities of AI-generated applications.

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<a href="https://srcbook.com">Online app builder</a> ·
1414
<a href="https://discord.gg/shDEGBSe2d">Discord</a> ·
1515
<a href="https://www.youtube.com/@srcbook">Youtube</a> ·
16-
<a href="https://hub.srcbook.com">Hub</a>
16+
<a href="https://hub.srcbook.com">Hub</a>
1717
</p>
1818

1919
## Srcbook
@@ -33,6 +33,7 @@ Srcbook is open-source (apache2) and runs locally on your machine. You'll need t
3333
- Create, edit and run web apps
3434
- Use AI to generate the boilerplate, modify the code, and fix things
3535
- Edit the app with a hot-reloading web preview
36+
- MCP (Model Context Protocol) integration for enhanced AI capabilities
3637

3738
<picture>
3839
<source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/lLJPZOs.png">
@@ -137,6 +138,34 @@ In order to improve Srcbook, we collect some behavioral analytics. We don't coll
137138

138139
If you want to disable tracking, you can run Srcbook with `SRCBOOK_DISABLE_ANALYTICS=true` set in the environment.
139140

141+
## MCP Integration
142+
143+
Srcbook now includes support for the Model Context Protocol (MCP), enabling AI models to access external tools and data sources. This integration enhances the capabilities of AI-generated applications by allowing them to:
144+
145+
- Access external data sources and APIs
146+
- Perform web searches and retrieve information
147+
- Execute specialized tools during app generation
148+
149+
MCP servers can be configured in the `packages/api/srcbook_mcp_config.json` file. The MCP client automatically discovers and makes available all tools provided by configured MCP servers.
150+
151+
### Configuring MCP Servers
152+
153+
To add an MCP server, update the configuration file with the server details:
154+
155+
```json
156+
{
157+
"mcpServers": {
158+
"server-id": {
159+
"command": "command-to-run-server",
160+
"args": ["arg1", "arg2"],
161+
"env": {
162+
"API_KEY": "your-api-key"
163+
}
164+
}
165+
}
166+
}
167+
```
168+
140169
## Contributing
141170

142171
For development instructions, see [CONTRIBUTING.md](https://github.com/srcbookdev/srcbook/blob/main/CONTRIBUTING.md).

0 commit comments

Comments
 (0)