This commit is contained in:
2025-05-22 23:53:24 +09:00
parent f97da41595
commit ef6605ff64
4 changed files with 17 additions and 3 deletions

View File

@ -22,7 +22,7 @@ def main():
command = sys.argv[1]
if command in {"summarize", "ask", "setup"}:
if command in {"summarize", "ask", "setup", "server"}:
run_script(command)
else:
print(f"❓ 未知のコマンド: {command}")

13
mcp/scripts/server.py Normal file
View File

@ -0,0 +1,13 @@
# server.py
from fastmcp import FastMCP
mcp = FastMCP(
name="aigpt-agent",
host="127.0.0.1",
port=5000,
timeout=30
)
if __name__ == "__main__":
print("Starting MCP server...")
mcp.run()

View File

@ -2,8 +2,7 @@
from setuptools import setup
setup(
name='mcp',
version='0.1.0',
name='aigpt-mcp',
py_modules=['cli'],
entry_points={
'console_scripts': [