mcp-rpcs1
prevents llm from overload, freeze and oscillation
README
RPCS-1 SDK — AI Agent Tuner
<!-- mcp-name: io.github.travisbergen2/rpcs1-agent-tuner -->
Configure AI agents that don't oscillate, overload, or freeze.
A configuration framework for AI agents that translates environmental characteristics (entropy, stakes, predictability) into specific LLM parameter recommendations — grounded in RPCS-1 receiver dynamics.
Repository Structure
rpcs1-sdk/
├── packages/core/ # TypeScript recommendation engine (@rpcs1/core)
├── sdk/python/ # Python SDK (pip install rpcs1)
└── .github/workflows/ # CI/CD
Quick Start — Python SDK
pip install rpcs1
from rpcs1 import recommend_params
config = recommend_params(
task_description="Customer support agent",
environment_entropy="dynamic",
environment_predictability="somewhat_predictable",
stakes="high",
target_platform="anthropic",
)
print(config.platform_parameters.temperature) # e.g. 0.52
print(config.predicted_regime) # 'stable'
print(config.reasoning) # cites Matching Principle
Quick Start — TypeScript Core
import { recommend } from '@rpcs1/core';
const rec = recommend({
task: { task_summary: 'Customer support agent' },
environment: {
entropy: 'dynamic',
predictability: 'somewhat_predictable',
stakes: 'high',
context_relevance: 'medium',
commitment_style: 'cautious',
},
target_platform: 'anthropic',
});
console.log(rec.platform_parameters.temperature);
console.log(rec.predicted_regime);
Development
# Install pnpm
npm install -g pnpm
# Install dependencies
pnpm install
# Build and test TypeScript core
pnpm --filter @rpcs1/core build
pnpm --filter @rpcs1/core test
# Test Python SDK
cd sdk/python
pip install -e ".[dev]"
pytest -v
The Matching Principle
The SDK implements Pred-09-5 from IMM Paper 9:
Stable receivers in an environment with entropy H satisfy TI ~ 1/H.
High-entropy environments → short attention windows (TI ~ 10). Low-entropy environments → long attention windows (TI ~ 90).
Every parameter recommendation traces back to this principle or the basin stability geometry (oscillation/overload/freeze boundary conditions).
Web App
Interactive tuner: https://rpcs1.dev
MCP Server
RPCS-1 is also available as a public, anonymous, read-only MCP server:
https://rpcs1.dev/mcp
It exposes one focused tool:
recommend_agent_configuration— use when designing, tuning, or diagnosing an AI agent against environmental entropy, predictability, stakes, context horizon, and commitment style.
Connection details and client compatibility notes are available at https://rpcs1.dev/docs/mcp. Practical coding, support, and research examples are available at https://rpcs1.dev/docs/examples.
Hyperagent uses the fixed public OAuth client hyperagent-rpcs1 with PKCE and the registered
callback https://hyperagent.com/api/mcp-servers/callback. No client secret is required.
The MCP surface intentionally wraps the existing deterministic recommendation engine. Broader communication, market, and decision-analysis tools should be added only after their scoring contracts are implemented and tested in the core package.
Discovery metadata:
- OpenAPI: https://rpcs1.dev/openapi.json
- LLM overview: https://rpcs1.dev/llms.txt
- MCP Registry manifest:
server.json
Production controls:
MCP_HOURLY_LIMITcontrols per-instance MCP throttling (default:120requests per IP/hour).MCP_MAX_BODY_BYTESlimits request bodies (default:65536bytes).MCP_ALLOWED_HOSTSis a comma-separated production host allowlist.MCP_OAUTH_JWT_SECRETsigns short-lived OAuth authorization codes and access tokens./api/healthreports deployment and MCP readiness metadata.
For globally consistent abuse protection across Vercel instances, configure a Vercel Firewall
rate-limit rule for /mcp. The in-process limiter is defense in depth, not a distributed quota.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.